Instructions to use lmbelo/Meta-Llama-3-8B-Function-Calling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use lmbelo/Meta-Llama-3-8B-Function-Calling 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("lmbelo/Meta-Llama-3-8B-Function-Calling") 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 lmbelo/Meta-Llama-3-8B-Function-Calling with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "lmbelo/Meta-Llama-3-8B-Function-Calling"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "lmbelo/Meta-Llama-3-8B-Function-Calling" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmbelo/Meta-Llama-3-8B-Function-Calling", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- c3f9dad563a3af818c475db62a62edf29b1453462895c5e8ec8330b91e242224 (b4d6ca8bea03ec5b5a117a3911e496df860420e4) - e30fcc90e43d929f07b05575b86fec52994170d8d176324f1ff766d0b3d1f5b0 (80a2eb2e21de4462826d2b4f5796c664a3d6eeda) - 5d2d24a56c68524b40b28b6972367b3d8ee0c475867adcfa6cc00e486b94e3e8 (102f2a12796cdd859a04d26176a78b6944c54469) - 734b703a7c97eef9b1641b4a13e40ad038e6e5622987a7a0aa07d1073105c6a0 (89cd0867665558927492e62dacecb0533e42a542)3405dcb -
initial commit
Verified signatured3d6b23