Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

nikimoriOne
/
EuroLLM-1.7B-Pretype-5bit

Text Generation
MLX
Safetensors
llama
autocomplete
text-completion
grammar-correction
on-device
apple-silicon
conversational
5-bit
Model card Files Files and versions
xet
Community

Instructions to use nikimoriOne/EuroLLM-1.7B-Pretype-5bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use nikimoriOne/EuroLLM-1.7B-Pretype-5bit 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("nikimoriOne/EuroLLM-1.7B-Pretype-5bit")
    
    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 nikimoriOne/EuroLLM-1.7B-Pretype-5bit with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "nikimoriOne/EuroLLM-1.7B-Pretype-5bit"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "nikimoriOne/EuroLLM-1.7B-Pretype-5bit"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "nikimoriOne/EuroLLM-1.7B-Pretype-5bit",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
  • Atomic Chat
EuroLLM-1.7B-Pretype-5bit
1.16 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
nikimori's picture
nikimori
Card: the repo moved to nikimoriOne
06e08ac verified 1 day ago
  • .gitattributes
    1.62 kB
    Model card 1 day ago
  • README.md
    6.12 kB
    Card: the repo moved to nikimoriOne 1 day ago
  • chart-models.png
    200 kB
    xet
    Model card 1 day ago
  • chat_template.jinja
    424 Bytes
    EuroLLM-1.7B-Pretype, 5-bit MLX 1 day ago
  • config.json
    920 Bytes
    EuroLLM-1.7B-Pretype, 5-bit MLX 1 day ago
  • generation_config.json
    127 Bytes
    EuroLLM-1.7B-Pretype, 5-bit MLX 1 day ago
  • model.safetensors
    1.14 GB
    xet
    EuroLLM-1.7B-Pretype, 5-bit MLX 1 day ago
  • model.safetensors.index.json
    39.4 kB
    EuroLLM-1.7B-Pretype, 5-bit MLX 1 day ago
  • tokenizer.json
    15.7 MB
    xet
    EuroLLM-1.7B-Pretype, 5-bit MLX 1 day ago
  • tokenizer_config.json
    437 Bytes
    EuroLLM-1.7B-Pretype, 5-bit MLX 1 day ago