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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Rafii
/
f1llama

Text Generation
MLX
Safetensors
PyTorch
English
llama
facebook
meta
llama-3
conversational
Model card Files Files and versions
xet
Community
2

Instructions to use Rafii/f1llama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use Rafii/f1llama 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("Rafii/f1llama")
    
    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 Rafii/f1llama with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "Rafii/f1llama"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "Rafii/f1llama"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "Rafii/f1llama",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
f1llama
9.04 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 17 commits
Rafii's picture
Rafii
Update README.md
e6d4fd8 verified 10 months ago
  • .gitattributes
    1.57 kB
    Track tokenizer.json with Git LFS over 1 year ago
  • README.md
    14.7 kB
    Update README.md 10 months ago
  • config.json
    2.26 kB
    Upload folder using huggingface_hub (#2) over 1 year ago
  • llama_roughwork.ipynb
    17.2 kB
    ok over 1 year ago
  • model-00001-of-00002.safetensors
    5.33 GB
    xet
    Upload folder using huggingface_hub (#2) over 1 year ago
  • model-00002-of-00002.safetensors
    3.7 GB
    xet
    Upload folder using huggingface_hub (#2) over 1 year ago
  • model.safetensors.index.json
    63.4 kB
    Upload folder using huggingface_hub (#2) over 1 year ago
  • requirements.txt
    166 Bytes
    req.txt over 1 year ago
  • special_tokens_map.json
    296 Bytes
    Upload folder using huggingface_hub (#2) over 1 year ago
  • streamlit_app.py
    805 Bytes
    streamlit over 1 year ago
  • tokenizer.json
    17.2 MB
    xet
    Upload folder using huggingface_hub (#2) over 1 year ago
  • tokenizer_config.json
    50.9 kB
    Upload folder using huggingface_hub (#2) over 1 year ago