Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

masato25
/
Llama-3.2-Taiwan-3B-Instruct-Arbor-4bit

Text Generation
MLX
Safetensors
Chinese
English
llama
mlx-lm
4-bit precision
quantized
llama3.2
Taiwan
ROC
zh-tw
instruct
chat
conversational
Model card Files Files and versions
xet
Community

Instructions to use masato25/Llama-3.2-Taiwan-3B-Instruct-Arbor-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use masato25/Llama-3.2-Taiwan-3B-Instruct-Arbor-4bit 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("masato25/Llama-3.2-Taiwan-3B-Instruct-Arbor-4bit")
    
    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 Settings
  • LM Studio
  • MLX LM

    How to use masato25/Llama-3.2-Taiwan-3B-Instruct-Arbor-4bit with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "masato25/Llama-3.2-Taiwan-3B-Instruct-Arbor-4bit"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "masato25/Llama-3.2-Taiwan-3B-Instruct-Arbor-4bit"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "masato25/Llama-3.2-Taiwan-3B-Instruct-Arbor-4bit",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
Llama-3.2-Taiwan-3B-Instruct-Arbor-4bit
1.82 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
masato25's picture
masato25
Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model
5f40758 verified 2 months ago
  • .gitattributes
    1.57 kB
    Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model 2 months ago
  • NOTICE
    3.52 kB
    Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model 2 months ago
  • README.md
    5.34 kB
    Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model 2 months ago
  • chat_template.jinja
    656 Bytes
    Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model 2 months ago
  • config.json
    1.12 kB
    Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model 2 months ago
  • generation_config.json
    180 Bytes
    Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model 2 months ago
  • model.safetensors
    1.81 GB
    xet
    Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model 2 months ago
  • model.safetensors.index.json
    45.8 kB
    Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model 2 months ago
  • tokenizer.json
    17.2 MB
    xet
    Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model 2 months ago
  • tokenizer_config.json
    413 Bytes
    Add MLX 4-bit quantized Llama-3.2-Taiwan-3B-Instruct Arbor model 2 months ago