Instructions to use lumolabs-ai/Lumo-8B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use lumolabs-ai/Lumo-8B-Instruct with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="lumolabs-ai/Lumo-8B-Instruct", filename="Lumo-8B-Instruct-FT-Q4_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use lumolabs-ai/Lumo-8B-Instruct with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0 # Run inference directly in the terminal: llama-cli -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0 # Run inference directly in the terminal: llama-cli -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0
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 lumolabs-ai/Lumo-8B-Instruct:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0
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 lumolabs-ai/Lumo-8B-Instruct:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0
Use Docker
docker model run hf.co/lumolabs-ai/Lumo-8B-Instruct:Q4_0
- LM Studio
- Jan
- Ollama
How to use lumolabs-ai/Lumo-8B-Instruct with Ollama:
ollama run hf.co/lumolabs-ai/Lumo-8B-Instruct:Q4_0
- Unsloth Studio
How to use lumolabs-ai/Lumo-8B-Instruct 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 lumolabs-ai/Lumo-8B-Instruct 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 lumolabs-ai/Lumo-8B-Instruct to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for lumolabs-ai/Lumo-8B-Instruct to start chatting
- Pi
How to use lumolabs-ai/Lumo-8B-Instruct with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "lumolabs-ai/Lumo-8B-Instruct:Q4_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use lumolabs-ai/Lumo-8B-Instruct with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default lumolabs-ai/Lumo-8B-Instruct:Q4_0
Run Hermes
hermes
- Docker Model Runner
How to use lumolabs-ai/Lumo-8B-Instruct with Docker Model Runner:
docker model run hf.co/lumolabs-ai/Lumo-8B-Instruct:Q4_0
- Lemonade
How to use lumolabs-ai/Lumo-8B-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lumolabs-ai/Lumo-8B-Instruct:Q4_0
Run and chat with the model
lemonade run user.Lumo-8B-Instruct-Q4_0
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0# Run inference directly in the terminal:
llama-cli -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0Use 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 lumolabs-ai/Lumo-8B-Instruct:Q4_0# Run inference directly in the terminal:
./llama-cli -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0Build 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 lumolabs-ai/Lumo-8B-Instruct:Q4_0# Run inference directly in the terminal:
./build/bin/llama-cli -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0Use Docker
docker model run hf.co/lumolabs-ai/Lumo-8B-Instruct:Q4_0π§ Lumo-8B-Instruct Model
Overview
The Lumo-8B-Instruct model is a fine-tuned version of Meta's LLaMa 3.1 8B model designed to provide highly accurate and contextual assistance for developers working on Solana and its associated ecosystems. This model is capable of answering complex questions, generating code snippets, debugging, and explaining technical concepts using state-of-the-art instruction tuning techniques.
(Knowledge cut-off date: 29th January, 2025)
π― Key Features
- Optimized for Solana-specific queries across ecosystems like Raydium, Helius, Jito, and more.
- Instruction fine-tuned for developer-centric workflows.
- Lightweight parameter-efficient fine-tuning via LoRA (Low-Rank Adaptation).
- Supports multi-turn conversations with context retention.
- Outputs complete code snippets and real-world usage examples.
π Model Card
| Parameter | Details |
|---|---|
| Base Model | Meta LLaMa 3.1 8B |
| Fine-Tuning Framework | HuggingFace Transformers, LoRA |
| Dataset Size | 28,518 high-quality Q&A pairs |
| Context Length | 4,096 tokens |
| Training Steps | 10,000 |
| Learning Rate | 3e-4 |
| Batch Size | 1 per GPU with gradient accumulation |
| Epochs | 2 |
| Model Size | 8 billion parameters (adapter size ~10 MB) |
| Pre-trained Tasks | Instruction following, Code generation, Debugging, Multi-turn Q&A |
π Model Architecture
Training Workflow
The model was fine-tuned using parameter-efficient methods with LoRA to adapt to the Solana-specific domain. Below is a visualization of the training process:
+---------------------------+ +-------------------------+
| Base Model | --- LoRA -->| Fine-Tuned Adapter |
| LLaMa 3.1 8B | | Lumo-8B-Instruct |
+---------------------------+ +-------------------------+
Dataset Sources
It is built over Lumo-Novel-Instruct dataset, refer to this page for more details.
π οΈ Installation and Usage
1. Installation
pip install transformers datasets peft wandb
2. Load the Model
from transformers import LlamaForCausalLM, AutoTokenizer
model_name = "lumolabs-ai/Lumo-8B-Instruct"
model = LlamaForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
3. Run Inference
def complete_chat(model, tokenizer, messages, max_new_tokens=128):
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True, add_generation_prompt=True).to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=max_new_tokens)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
response = complete_chat(model, tokenizer, [
{"role": "system", "content": "You are Lumo, a helpful assistant."},
{"role": "user", "content": "Explain how to interact with Raydium API for token swaps."}
])
print(response)
π Performance
| Metric | Value |
|---|---|
| Validation Loss | 1.73 |
| BLEU Score | 89% |
| Code Accuracy | 92% |
| Token Efficiency | ~4,096 tokens max |
Fine-Tuning Loss Graph
π Dataset
| Split | Count | Description |
|---|---|---|
| Train | 27.1k | High-quality Q&A pairs |
| Test | 1.43k | Evaluation dataset for testing |
Dataset Format (JSONL):
{
"question": "How to use the Helius API for transaction indexing?",
"answer": "To index transactions, use Helius's Webhooks API ...",
"chunk": "Helius API allows you to set up ..."
}
π Technical Insights
LoRA Configuration
- Rank: 8
- Alpha: 32
- Dropout: 0.01
- Adapter Size: ~10 MB
Optimization
- Mixed Precision (FP16) for faster inference.
- Gradient Accumulation for memory efficiency.
- Parameter-efficient tuning to preserve base model knowledge.
π Try the model
π Lumo-8B-Instruct Inferencing
π Contributing
We welcome contributions to enhance the Lumo-8B-Instruct model. Feel free to:
- Share your feedback on the HuggingFace Model Hub.
π License
This model is licensed under the GNU Affero General Public License v3.0 (AGPLv3).
π Community
For questions or support, reach out via:
- Twitter: Lumo Labs
π€ Acknowledgments
Special thanks to the Solana ecosystem developers and the open-source community for their invaluable contributions and support.
- Downloads last month
- 126
Model tree for lumolabs-ai/Lumo-8B-Instruct
Base model
meta-llama/Llama-3.1-8B

Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0# Run inference directly in the terminal: llama-cli -hf lumolabs-ai/Lumo-8B-Instruct:Q4_0