BITAI Distilled v3 โ€” Stock & Crypto Trading Agent

BITAI

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 / ๆ•ฐๆฎๆตๆฐด็บฟ

  1. Submit question via management panel
  2. Cross-discussion: Gemma + Ornith debate in parallel
  3. Quality gate: score โ‰ฅ 0.5 (min_length_100 check + semantic evaluation)
  4. Multi-answer extraction: consensus + participant responses + multi-round replies
  5. 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:

  1. Logs the trade details (entry/exit price, PnL, direction)
  2. Analyzes the mistake (wrong direction? bad timing? market anomaly?)
  3. Saves structured reflection to ./trade_data/memory_*.json
  4. 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 / ็›ธๅ…ณ้“พๆŽฅ


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
GGUF
Model size
2B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Video Preview
loading

Model tree for bitai-hub/distilled_v3

Adapter
(1262)
this model