Instructions to use umingpeng/Meta-Llama-3.1-8B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use umingpeng/Meta-Llama-3.1-8B-Instruct with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("umingpeng/Meta-Llama-3.1-8B-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use umingpeng/Meta-Llama-3.1-8B-Instruct with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf umingpeng/Meta-Llama-3.1-8B-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf umingpeng/Meta-Llama-3.1-8B-Instruct:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf umingpeng/Meta-Llama-3.1-8B-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf umingpeng/Meta-Llama-3.1-8B-Instruct:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf umingpeng/Meta-Llama-3.1-8B-Instruct:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf umingpeng/Meta-Llama-3.1-8B-Instruct:Q4_K_M
Use Docker
docker model run hf.co/umingpeng/Meta-Llama-3.1-8B-Instruct:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use umingpeng/Meta-Llama-3.1-8B-Instruct with Ollama:
ollama run hf.co/umingpeng/Meta-Llama-3.1-8B-Instruct:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use umingpeng/Meta-Llama-3.1-8B-Instruct with Docker Model Runner:
docker model run hf.co/umingpeng/Meta-Llama-3.1-8B-Instruct:Q4_K_M
- Lemonade
How to use umingpeng/Meta-Llama-3.1-8B-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull umingpeng/Meta-Llama-3.1-8B-Instruct:Q4_K_M
Run and chat with the model
lemonade run user.Meta-Llama-3.1-8B-Instruct-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download Modelfile from umingpeng/Meta-Llama-3.1-8B-Instruct: direct link, hf CLI and curl.
- Browser
- Download file 701 Bytes
-
https://huggingface.co/umingpeng/Meta-Llama-3.1-8B-Instruct/resolve/main/Modelfile
- Command line
-
hf download hf://umingpeng/Meta-Llama-3.1-8B-Instruct/Modelfile
-
curl -L -o Modelfile https://huggingface.co/umingpeng/Meta-Llama-3.1-8B-Instruct/resolve/main/Modelfile
701 Bytes
| FROM /content/umingpeng/Meta-Llama-3.1-8B-Instruct/unsloth.F16.gguf | |
| TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|> | |
| {{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|> | |
| {{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|> | |
| {{ .Response }}<|eot_id|>""" | |
| PARAMETER stop "<|python_tag|>" | |
| PARAMETER stop "<|eom_id|>" | |
| PARAMETER stop "<|start_header_id|>" | |
| PARAMETER stop "<|end_of_text|>" | |
| PARAMETER stop "<|end_header_id|>" | |
| PARAMETER stop "<|finetune_right_pad_id|>" | |
| PARAMETER stop "<|eot_id|>" | |
| PARAMETER stop "<|reserved_special_token_" | |
| PARAMETER temperature 1.5 | |
| PARAMETER min_p 0.1 | |
| SYSTEM "You are a helpful assistant" |