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"} ] }'
[WIP] Upload folder using huggingface_hub (multi-commit 66aeba7a00e6bb849826bebae723b4bbffd9e51a4664f9379601c98b88d5c1b8)
#1
by Rafii - opened
Upload folder using huggingface_hub
Multi commit ID: 66aeba7a00e6bb849826bebae723b4bbffd9e51a4664f9379601c98b88d5c1b8
Scheduled commits:
- Upload 1 file(s) totalling 5.3G (f280fe7c7067244c506556fb1b296702fcd5079cb8c919226004b6977fb09f86)
- Upload 1 file(s) totalling 3.7G (58da5668f2681a10b7b3a5ed2cc7c2df78900131dbc75e2a9e2b84631603d7b0)
- Upload 12 file(s) totalling 44.7M (7d88b852034c543285caef806388ce927dde2d97e0d553e50352839beb548e53)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.
Rafii changed pull request status to closed