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

  • Log In
  • Sign Up

mlx-community
/
lille-130m-instruct-8bit

Text Generation
MLX
Safetensors
English
lille-130m
conversational
Eval Results (legacy)
8-bit precision
Model card Files Files and versions
xet
Community

Instructions to use mlx-community/lille-130m-instruct-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use mlx-community/lille-130m-instruct-8bit 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("mlx-community/lille-130m-instruct-8bit")
    
    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 mlx-community/lille-130m-instruct-8bit with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "mlx-community/lille-130m-instruct-8bit"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "mlx-community/lille-130m-instruct-8bit"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "mlx-community/lille-130m-instruct-8bit",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
lille-130m-instruct-8bit
146 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Goekdeniz-Guelmez's picture
Goekdeniz-Guelmez
Add files using upload-large-folder tool
fb2acaf verified 8 months ago
  • .gitattributes
    1.52 kB
    initial commit 8 months ago
  • README.md
    2.52 kB
    Add files using upload-large-folder tool 8 months ago
  • chat_template.jinja
    233 Bytes
    Add files using upload-large-folder tool 8 months ago
  • config.json
    565 Bytes
    Add files using upload-large-folder tool 8 months ago
  • generation_config.json
    73 Bytes
    Add files using upload-large-folder tool 8 months ago
  • merges.txt
    290 kB
    Add files using upload-large-folder tool 8 months ago
  • model.safetensors
    143 MB
    xet
    Add files using upload-large-folder tool 8 months ago
  • model.safetensors.index.json
    33.4 kB
    Add files using upload-large-folder tool 8 months ago
  • special_tokens_map.json
    657 Bytes
    Add files using upload-large-folder tool 8 months ago
  • tokenizer.json
    2.3 MB
    Add files using upload-large-folder tool 8 months ago
  • tokenizer_config.json
    1.33 kB
    Add files using upload-large-folder tool 8 months ago
  • vocab.json
    510 kB
    Add files using upload-large-folder tool 8 months ago