Instructions to use koyeb/Meta-Llama-3.1-8B-Instruct-Apple-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use koyeb/Meta-Llama-3.1-8B-Instruct-Apple-MLX with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="koyeb/Meta-Llama-3.1-8B-Instruct-Apple-MLX")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("koyeb/Meta-Llama-3.1-8B-Instruct-Apple-MLX") model = AutoModelForCausalLM.from_pretrained("koyeb/Meta-Llama-3.1-8B-Instruct-Apple-MLX", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K