Instructions to use bitai-hub/distilled_v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use bitai-hub/distilled_v3 with PEFT:
Task type is invalid.
- llama-cpp-python
How to use bitai-hub/distilled_v3 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="bitai-hub/distilled_v3", filename="distilled_v3.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 bitai-hub/distilled_v3 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 bitai-hub/distilled_v3 # Run inference directly in the terminal: llama cli -hf bitai-hub/distilled_v3
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bitai-hub/distilled_v3 # Run inference directly in the terminal: llama cli -hf bitai-hub/distilled_v3
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 bitai-hub/distilled_v3 # Run inference directly in the terminal: ./llama-cli -hf bitai-hub/distilled_v3
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 bitai-hub/distilled_v3 # Run inference directly in the terminal: ./build/bin/llama-cli -hf bitai-hub/distilled_v3
Use Docker
docker model run hf.co/bitai-hub/distilled_v3
- LM Studio
- Jan
- Ollama
How to use bitai-hub/distilled_v3 with Ollama:
ollama run hf.co/bitai-hub/distilled_v3
- Unsloth Studio
How to use bitai-hub/distilled_v3 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 bitai-hub/distilled_v3 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 bitai-hub/distilled_v3 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for bitai-hub/distilled_v3 to start chatting
- Pi
How to use bitai-hub/distilled_v3 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bitai-hub/distilled_v3
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": "bitai-hub/distilled_v3" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use bitai-hub/distilled_v3 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bitai-hub/distilled_v3
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 bitai-hub/distilled_v3
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use bitai-hub/distilled_v3 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bitai-hub/distilled_v3
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "bitai-hub/distilled_v3" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use bitai-hub/distilled_v3 with Docker Model Runner:
docker model run hf.co/bitai-hub/distilled_v3
- Lemonade
How to use bitai-hub/distilled_v3 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bitai-hub/distilled_v3
Run and chat with the model
lemonade run user.distilled_v3-{{QUANT_TAG}}List all available models
lemonade list
BITAI Distilled v3 โ Stock & Crypto Trading Agent
AI Forging AI โ Distilled from multi-model cross-discussions on 4,000 topics, hardened through real live trading.
Model Description
distilled_v3 is a lightweight (1.5B) trading and financial analysis model distilled from the BITAI Collective multi-model cross-discussion pipeline. Teachers (Gemma-4-26B + Ornith-1.0-9B) debated 4,000+ topics covering cryptocurrency trading, stock analysis, financial risk assessment, and legal compliance. The resulting 3,764 high-quality samples (quality score โฅ 0.5) were used for multi-answer knowledge distillation with label smoothing, preventing the student from memorizing a single answer while learning the distribution of expert reasoning.
The model has been validated through live paper-trading simulations with 25x leverage on BTC/USDT perpetual contracts, making autonomous open/close decisions based on real market data. It includes a built-in loss self-reflection mechanism โ after each losing trade, the model analyzes the mistake and appends a structured reflection to its memory file, enabling continuous learning through experience.
This is not a theoretical model โ it has been battle-tested in simulated real-time trading environments on the BITAI platform.
ๆจกๅๆ่ฟฐ
distilled_v3 ๆฏๅบไบ BITAI Collective ๅคๆจกๅไบคๅๆจ็่ฎจ่ฎบ่ธ้ฆ็่ฝป้็บง (1.5B) ไบคๆไธ้่ๅๆๆจกๅใๆๅธๆจกๅ๏ผGemma-4-26B + Ornith-1.0-9B๏ผๅฐฑ 4,000+ ไธช่ฏ้ข่ฟ่กไบๅฏนๆๆง่พฉ่ฎบ๏ผๆถต็ๅ ๅฏ่ดงๅธไบคๆใ่ก็ฅจๅๆใ้่้ฃ้ฉ่ฏไผฐๅๆณๅพๅ่ง็ญ้ขๅใ็ป่ดจ้้จๆง๏ผๅพๅ โฅ 0.5๏ผ็ญ้ๅบ 3,764 ๆก้ซ่ดจ้ๆ ทๆฌ๏ผ้็จๅค็ญๆก่ธ้ฆ + ๆ ็ญพๅนณๆป่ฎญ็ป๏ผ้ฒๆญขๅญฆ็ๆญป่ฎฐ็กฌ่ๅไธ็ญๆก๏ผๅญฆไผไธๅฎถๆจ็็ๅๅธใ
่ฏฅๆจกๅๅทฒ้่ฟ 25 ๅๆ ๆ BTC/USDT ๆฐธ็ปญๅ็บฆ็ๅฎ็ๆจกๆไบคๆ้ช่ฏ๏ผๅบไบ็ๅฎๅธๅบๆฐๆฎ่ชไธปๅณ็ญๅผๅนณไปใๅ ็ฝฎไบๆ่ชๆๅ็ๆบๅถโโๆฏๆฌกไบๆไบคๆๅ๏ผๆจกๅ่ชๅจๅๆ้่ฏฏๅๅ ๅนถๅฐ็ปๆๅๅๆ่ฟฝๅ ๅฐ่ฎฐๅฟๆไปถไธญ๏ผๅฎ็ฐไป็ป้ชไธญๆ็ปญๅญฆไน ใ
่ฟไธๆฏ็่ฎบๆจกๅโโๅฎๅทฒๅจ BITAI ๅนณๅฐ็ๅฎๆถๆจกๆไบคๆ็ฏๅขไธญ็ปๅๅฎๆ่้ชใ
Training Details / ่ฎญ็ป็ป่
| Parameter | Value |
|---|---|
| Base model | Qwen/Qwen2.5-1.5B-Instruct |
| Training method | Multi-answer Knowledge Distillation + LoRA |
| LoRA rank | 32 |
| LoRA alpha | 64 |
| LoRA dropout | 0.2 |
| Target modules | q_proj, v_proj, k_proj, o_proj |
| Label smoothing | 0.1 |
| Optimizer | AdamW (weight_decay=0.01) |
| LR scheduler | CosineAnnealing (T_max=5) |
| Learning rate | 3e-4 |
| Batch size | 2 |
| Epochs | 2 |
| Discussion topics | 4,000+ (crypto, stock, legal, finance) |
| Training samples | 3,764 (quality โฅ 0.5 gate) |
| Hardware | NVIDIA H100 (80GB ร 2) |
Teacher Models / ๆๅธๆจกๅ
- **Gemma-4-26B โ Large model, establishes the analytical framework
- Ornith-1.0-9B โ Critical examiner, identifies weaknesses and gaps
- The two engage in adversarial debate: the large model builds a framework, the small model critically examines it, and they converge on a consensus answer
Data Pipeline / ๆฐๆฎๆตๆฐด็บฟ
- Submit question via management panel
- Cross-discussion: Gemma + Ornith debate in parallel
- Quality gate: score โฅ 0.5 (min_length_100 check + semantic evaluation)
- Multi-answer extraction: consensus + participant responses + multi-round replies
- Distillation training: label smoothing + LoRA
Usage / ไฝฟ็จๆนๆณ
Python (HuggingFace Transformers)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = "Qwen/Qwen2.5-1.5B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
base_model,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, "bitai-hub/distilled-v3")
tokenizer = AutoTokenizer.from_pretrained(base_model)
prompt = "Analyze BTC/USDT technical indicators and give a trading signal."
messages = [
{"role": "system", "content": "You are a professional crypto trading analyst."},
{"role": "user", "content": prompt},
]
text = tokenizer.apply_chat_template(messages, tokenize=False)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7, top_p=0.9)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
llama.cpp / GGUF
If GGUF version available:
./llama-cli -m distilled-v3-Q4_K_M.gguf \
-p "Analyze BTC/USDT technical indicators and give a trading signal." \
-n 256 -t 8 --temp 0.7
Trading Features / ไบคๆๅ่ฝ
Live Trading Simulation / ๅฎ็ๆจกๆไบคๆ
The model is designed to work with the BITAI trading engine (crypto_trading_sim.py):
python crypto_trading_sim.py \
--api-url http://localhost:1236/v1 \
--model distilled-v3 \
--runs 20 \
--capital 1000
- Leverage: 25x on BTC/USDT perpetual contracts
- Direction: Long/Short both supported
- Decision cycle: Every 30 seconds (real-time market data)
- Risk control: 30% margin per position, auto-stop logic
Loss Self-Reflection / ไบๆ่ชๆๅ็
After every losing trade, the model automatically:
- Logs the trade details (entry/exit price, PnL, direction)
- Analyzes the mistake (wrong direction? bad timing? market anomaly?)
- Saves structured reflection to
./trade_data/memory_*.json - References past reflections in future decisions to avoid repeating errors
Quantized Versions / ้ๅ็ๆฌ
| Format | Size | Description |
|---|---|---|
| F16 (full) | ~3.0 GB | Full precision, best quality |
| Q8_0 | ~1.6 GB | High quality, negligible loss |
| Q4_K_M | ~0.9 GB | Recommended balance of size/speed |
| Q4_K_S | ~0.8 GB | Smallest, slightly lower quality |
Evaluation Results / ่ฏๆต็ปๆ
Live 25x leverage trading simulation (BTC/USDT):
| Metric | Value |
|---|---|
| Win rate | Reported after live run |
| Profit factor | Reported after live run |
| Max drawdown | Reported after live run |
| Total PnL | Reported after live run |
Contact admin@bitai.one for latest evaluation reports.
Links / ็ธๅ ณ้พๆฅ
- ๐ Website: https://bitai.one
- ๐ Paper: Multi-Model Adversarial Cross-Discussion
- ๐ฅ๏ธ Management Panel: https://bitai.one/demo
- ๐ Blockchain Explorer: https://bitai.one/explorer
- ๐ฌ Community Forum: https://bitai.one/forum
- ๐ง Contact: admin@bitai.one
Citation / ๅผ็จ
@misc{bitai-distilled-v3,
author = {BITAI Chain},
title = {BITAI Distilled v3: Stock and Crypto Trading Agent from Multi-Model Co-Distillation},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/bitai-hub/distilled-v3}},
}
License
This model is released under Apache 2.0. The base model Qwen2.5-1.5B-Instruct is governed by its own license (Qwen License).
- Downloads last month
- 29
We're not able to determine the quantization variants.