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

  • Log In
  • Sign Up

Wwayu
/
CodeQwen1.5-7B-Chat-mlx-6Bit

Text Generation
MLX
Safetensors
English
qwen2
chat
mlx-my-repo
conversational
6-bit
Model card Files Files and versions
xet
Community

Instructions to use Wwayu/CodeQwen1.5-7B-Chat-mlx-6Bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use Wwayu/CodeQwen1.5-7B-Chat-mlx-6Bit 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("Wwayu/CodeQwen1.5-7B-Chat-mlx-6Bit")
    
    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
  • MLX LM

    How to use Wwayu/CodeQwen1.5-7B-Chat-mlx-6Bit with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "Wwayu/CodeQwen1.5-7B-Chat-mlx-6Bit"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "Wwayu/CodeQwen1.5-7B-Chat-mlx-6Bit"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "Wwayu/CodeQwen1.5-7B-Chat-mlx-6Bit",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
CodeQwen1.5-7B-Chat-mlx-6Bit
Ctrl+K
Ctrl+K
  • 1 contributor
History: 11 commits
Wwayu's picture
Wwayu
Upload README.md with huggingface_hub
73039b4 verified 2 months ago
  • .gitattributes
    1.52 kB
    initial commit 2 months ago
  • README.md
    1.03 kB
    Upload README.md with huggingface_hub 2 months ago
  • chat_template.jinja
    328 Bytes
    Upload chat_template.jinja with huggingface_hub 2 months ago
  • config.json
    962 Bytes
    Upload config.json with huggingface_hub 2 months ago
  • generation_config.json
    212 Bytes
    Upload generation_config.json with huggingface_hub 2 months ago
  • model-00001-of-00002.safetensors
    5.33 GB
    xet
    Upload model-00001-of-00002.safetensors with huggingface_hub 2 months ago
  • model-00002-of-00002.safetensors
    562 MB
    xet
    Upload model-00002-of-00002.safetensors with huggingface_hub 2 months ago
  • model.safetensors.index.json
    71.7 kB
    Upload model.safetensors.index.json with huggingface_hub 2 months ago
  • special_tokens_map.json
    724 Bytes
    Upload special_tokens_map.json with huggingface_hub 2 months ago
  • tokenizer.json
    7.71 MB
    Upload tokenizer.json with huggingface_hub 2 months ago
  • tokenizer_config.json
    237 kB
    Upload tokenizer_config.json with huggingface_hub 2 months ago