Instructions to use SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF", filename="Meta-Llama-3-8B-Instruct.IQ4_XS.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SandLogicTechnologies/Meta-Llama-3-8B-Instruct-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": "SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M
- Ollama
How to use SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF with Ollama:
ollama run hf.co/SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M
- Unsloth Studio new
How to use SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF to start chatting
- Docker Model Runner
How to use SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Meta-Llama-3-8B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
SandLogic Technologies - Quantized Meta-Llama3-8b-Instruct Models
Model Description
We have quantized the Meta-Llama3-8b-Instruct model into three variants:
- Q5_KM
- Q4_KM
- IQ4_XS
These quantized models offer improved efficiency while maintaining performance.
Discover our full range of quantized language models by visiting our SandLogic Lexicon GitHub. To learn more about our company and services, check out our website at SandLogic.
Original Model Information
- Name: Meta-Llama3-8b-Instruct
- Developer: Meta
- Release Date: April 18, 2024
- Model Type: Auto-regressive language model
- Architecture: Optimized transformer with Grouped-Query Attention (GQA)
- Parameters: 8 billion
- Context Length: 8k tokens
- Training Data: New mix of publicly available online data (15T+ tokens)
- Knowledge Cutoff: March, 2023
Model Capabilities
Llama 3 is designed for multiple use cases, including:
- Responding to questions in natural language
- Writing code
- Brainstorming ideas
- Content creation
- Summarization
The model understands context and responds in a human-like manner, making it useful for various applications.
Use Cases
- Chatbots: Enhance customer service automation
- Content Creation: Generate articles, reports, blogs, and stories
- Email Communication: Draft emails and maintain consistent brand tone
- Data Analysis Reports: Summarize findings and create business performance reports
- Code Generation: Produce code snippets, identify bugs, and provide programming recommendations
Model Variants
We offer three quantized versions of the Meta-Llama3-8b-Instruct model:
- Q5_KM: 5-bit quantization using the KM method
- Q4_KM: 4-bit quantization using the KM method
- IQ4_XS: 4-bit quantization using the IQ4_XS method
These quantized models aim to reduce model size and improve inference speed while maintaining performance as close to the original model as possible.
Usage
pip install llama-cpp-python
Please refer to the llama-cpp-python documentation to install with GPU support.
Basic Text Completion
Here's an example demonstrating how to use the high-level API for basic text completion:
from llama_cpp import Llama
llm = Llama(
model_path="./models/7B/llama-model.gguf",
verbose=False,
# n_gpu_layers=-1, # Uncomment to use GPU acceleration
# n_ctx=2048, # Uncomment to increase the context window
)
output = llm(
"Q: Name the planets in the solar system? A: ", # Prompt
max_tokens=32, # Generate up to 32 tokens
stop=["Q:", "\n"], # Stop generating just before a new question
echo=False # Don't echo the prompt in the output
)
print(output["choices"][0]["text"])
Download
You can download Llama models in gguf format directly from Hugging Face using the from_pretrained method. This feature requires the huggingface-hub package.
To install it, run: pip install huggingface-hub
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF",
filename="*Meta-Llama-3-8B-Instruct.Q5_K_M.gguf",
verbose=False
)
By default, from_pretrained will download the model to the Hugging Face cache directory. You can manage installed model files using the huggingface-cli tool.
License
A custom commercial license is available at: https://llama.meta.com/llama3/license
Acknowledgements
We thank Meta for developing and releasing the original Llama 3 model. Special thanks to Georgi Gerganov and the entire llama.cpp development team for their outstanding contributions.
Contact
For any inquiries or support, please contact us at support@sandlogic.com or visit our support page.
- Downloads last month
- 35
4-bit
5-bit
Model tree for SandLogicTechnologies/Meta-Llama-3-8B-Instruct-GGUF
Base model
meta-llama/Meta-Llama-3-8B-Instruct