Instructions to use leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF 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 leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF: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 leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Q4_K_M
Use Docker
docker model run hf.co/leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Q4_K_M
- SGLang
How to use leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF with Ollama:
ollama run hf.co/leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF with Docker Model Runner:
docker model run hf.co/leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Q4_K_M
- Lemonade
How to use leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Llama-3-8B-Instruct-Gradient-4194k-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:# Run inference directly in the terminal:
llama cli -hf leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF: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 leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:# Run inference directly in the terminal:
./build/bin/llama cli -hf leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Use Docker
docker model run hf.co/leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:Llama-3-8B-Instruct-Gradient-4194k-GGUF
Fixing prompt format issues
Use iMatrix for Llama 3 prompt format on Q4 and below, or try Q4_K_M fixedUse ChatML for Q6 and below- Use Llama 3, see issues
Issues
Context length is not defined correctly in quant, not sure if this is a llama.cpp issueUse RoPE settings- Output ends with or other EOS tokens, might be an issue with their training data
This model was converted to GGUF format from gradientai/Llama-3-8B-Instruct-Gradient-4194k using llama.cpp via the ggml.ai's GGUF-my-repo space.
Refer to the original model card for more details on the model.
Use with llama.cpp
Install llama.cpp through brew.
brew install ggerganov/ggerganov/llama.cpp
Invoke the llama.cpp server or the CLI.
CLI:
llama-cli --hf-repo leafspark/llama-3-8b-instruct-gradient-4194k.Q8_0-GGUF --model llama-3-8b-instruct-gradient-4194k.Q8_0.gguf -p "The meaning to life and the universe is"
Server:
llama-server --hf-repo leafspark/llama-3-8b-instruct-gradient-4194k.Q8_0-GGUF --model llama-3-8b-instruct-gradient-4194k.Q8_0.gguf -c 2048
Note: You can also use this checkpoint directly through the usage steps listed in the Llama.cpp repo as well.
git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make && ./main -m llama-3-8b-instruct-gradient-4194k.Q8_0.gguf -n 128
- Downloads last month
- 1,129
1-bit
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF:# Run inference directly in the terminal: llama cli -hf leafspark/Llama-3-8B-Instruct-Gradient-4194k-GGUF: