Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

TeoHug
/
Osaka-Swallow-8B

Text Generation
MLX
Safetensors
Japanese
qwen3
osaka
kansai
dialect
japanese
qlora
conversational
4-bit precision
Model card Files Files and versions
xet
Community

Instructions to use TeoHug/Osaka-Swallow-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use TeoHug/Osaka-Swallow-8B with MLX:

    # Make sure mlx-lm is installed
    # pip install --upgrade mlx-lm
    
    # Generate text with mlx-lm
    from mlx_lm import load, generate
    
    model, tokenizer = load("TeoHug/Osaka-Swallow-8B")
    
    prompt = "Write a story about Einstein"
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True
    )
    
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
  • Pi new

    How to use TeoHug/Osaka-Swallow-8B with Pi:

    Start the MLX server
    # Install MLX LM:
    uv tool install mlx-lm
    # Start a local OpenAI-compatible server:
    mlx_lm.server --model "TeoHug/Osaka-Swallow-8B"
    Configure the model in Pi
    # Install Pi:
    npm install -g @mariozechner/pi-coding-agent
    # Add to ~/.pi/agent/models.json:
    {
      "providers": {
        "mlx-lm": {
          "baseUrl": "http://localhost:8080/v1",
          "api": "openai-completions",
          "apiKey": "none",
          "models": [
            {
              "id": "TeoHug/Osaka-Swallow-8B"
            }
          ]
        }
      }
    }
    Run Pi
    # Start Pi in your project directory:
    pi
  • MLX LM

    How to use TeoHug/Osaka-Swallow-8B with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "TeoHug/Osaka-Swallow-8B"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "TeoHug/Osaka-Swallow-8B"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "TeoHug/Osaka-Swallow-8B",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
Osaka-Swallow-8B
4.62 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
TeoHug's picture
TeoHug
Initial upload: Osaka-Swallow-8B (MLX fused model)
342d412 verified about 1 month ago
  • .gitattributes
    1.57 kB
    Initial upload: Osaka-Swallow-8B (MLX fused model) about 1 month ago
  • README.md
    4.81 kB
    Initial upload: Osaka-Swallow-8B (MLX fused model) about 1 month ago
  • chat_template.jinja
    4.17 kB
    Initial upload: Osaka-Swallow-8B (MLX fused model) about 1 month ago
  • config.json
    1.98 kB
    Initial upload: Osaka-Swallow-8B (MLX fused model) about 1 month ago
  • generation_config.json
    244 Bytes
    Initial upload: Osaka-Swallow-8B (MLX fused model) about 1 month ago
  • model.safetensors
    4.61 GB
    xet
    Initial upload: Osaka-Swallow-8B (MLX fused model) about 1 month ago
  • model.safetensors.index.json
    64.1 kB
    Initial upload: Osaka-Swallow-8B (MLX fused model) about 1 month ago
  • tokenizer.json
    11.4 MB
    xet
    Initial upload: Osaka-Swallow-8B (MLX fused model) about 1 month ago
  • tokenizer_config.json
    409 Bytes
    Initial upload: Osaka-Swallow-8B (MLX fused model) about 1 month ago