Downloads Β· 30 days
884
2% of all-time downloads
ruv/ruvltra-claude-code
ruvltra-claude-code is a text generation model from ruv. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as apache-2.0.
Downloads Β· 30 days
884
2% of all-time downloads
All-time downloads
55K
Public
Repo size
398 MB
Likes
188
Public
Click a slice to open those files.
.gguf398 MB Β· 100%
From the Hugging Face model README
π Self-Learning β’ π Swarm-Optimized β’ β‘ Edge-Ready β’ π Adaptive
The Story β’ Why RuvLTRA β’ Quick Start β’ Architecture β’ Benchmarks
</div>RuvLTRA Claude Code represents a paradigm shift in AI-assisted development.
Traditional coding assistants are staticβthey don't learn, adapt, or improve from your workflow. RuvLTRA changes everything by introducing:
π§ Self-Learning Intelligence (SONA): The model continuously improves from interactions, learning your coding patterns, preferences, and project-specific conventions.
π Swarm-Optimized Architecture: Built for distributed multi-agent workflows where multiple AI agents collaborate, share knowledge, and coordinate through the RuVector framework.
π Adaptive Neural Architecture: Unlike frozen models, RuvLTRA features real-time adaptation with <0.05ms latencyβyour AI assistant literally gets smarter as you code.
β‘ Claude Code Native: Purpose-built for Claude Code IDE integrations, optimized for the specific patterns of code generation, completion, explanation, and refactoring.
"This isn't just another code model. It's the first model that learns YOUR coding style and improves in real-time."
| Feature | Traditional Models | RuvLTRA |
|---|---|---|
| Learning | Static/Frozen β | Continuous Learning β |
| Adaptation | None | Real-time (<0.05ms) β |
| Multi-Agent | Not Designed | Swarm-Native β |
| Claude Code | Generic | Purpose-Built β |
| Edge Deployment | Often Heavy | 1GB RAM Ready β |
SONA is the breakthrough technology powering RuvLTRA's self-learning capabilities:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SONA Architecture β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β User Interaction βββΊ Pattern Recognition β
β β β β
β βΌ βΌ β
β Trajectory Capture EWC++ Memory β
β β (Prevents Forgetting) β
β βΌ β β
β MicroLoRA Adaptation ββββββββ β
β β β
β βΌ β
β Improved Model βββΊ Better Suggestions β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Key SONA Features:
RuvLTRA is designed for the claude-flow multi-agent orchestration system:
# Example: Swarm-coordinated code review
swarm:
topology: hierarchical-mesh
agents:
- type: ruvltra-claude-code
role: code-generator
- type: ruvltra-claude-code
role: code-reviewer
- type: ruvltra-claude-code
role: test-writer
coordination:
consensus: raft
memory: shared-hnsw
Swarm Benefits:
| Property | Value |
|---|---|
| Architecture | Transformer (Optimized for Code) |
| Parameters | 0.5 Billion |
| Quantization | Q4_K_M (4-bit K-quant) |
| Context Length | 4,096 tokens |
| File Size | ~398 MB |
| Format | GGUF |
| License | Apache 2.0 |
| Self-Learning | β SONA Enabled |
| Swarm-Ready | β claude-flow Compatible |
| Tier | RAM | GPU | Performance |
|---|---|---|---|
| π’ Minimum | 1 GB | - | ~10 tok/s |
| π‘ Recommended | 2 GB | 1 GB | ~50 tok/s |
| π΅ Optimal | 4 GB | 2 GB | 100+ tok/s |
Platform Support:
# Download
wget https://huggingface.co/ruv/ruvltra-claude-code/resolve/main/ruvltra-claude-code-0.5b-q4_k_m.gguf
# Generate code
./llama-cli -m ruvltra-claude-code-0.5b-q4_k_m.gguf \
-p "Write a Rust function to implement a thread-safe LRU cache:" \
-n 512 --temp 0.7
use ruvllm::{
hub::ModelDownloader,
inference::InferenceEngine,
sona::SonaEngine,
};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Download model with SONA weights
let downloader = ModelDownloader::new();
let model_path = downloader
.download("ruv/ruvltra-claude-code", None)
.await?;
// Initialize with SONA self-learning
let engine = InferenceEngine::from_gguf(&model_path)?;
let sona = SonaEngine::attach(&engine)?;
// Generate with learning enabled
let response = engine.generate_with_learning(
"Implement async/await error handling:",
256,
&sona,
)?;
// SONA automatically learns from this interaction!
println!("{}", response);
Ok(())
}
from huggingface_hub import hf_hub_download
from llama_cpp import Llama
# Download
model_path = hf_hub_download(
repo_id="ruv/ruvltra-claude-code",
filename="ruvltra-claude-code-0.5b-q4_k_m.gguf"
)
# Load with GPU acceleration
llm = Llama(
model_path=model_path,
n_ctx=4096,
n_gpu_layers=-1, # Use all GPU layers
)
# Generate
output = llm(
"```python\ndef binary_search(arr, target):",
max_tokens=256,
temperature=0.7,
stop=["```"],
)
print(output["choices"][0]["text"])
# Initialize swarm with RuvLTRA models
npx @claude-flow/cli@latest swarm init \
--topology hierarchical-mesh \
--model ruv/ruvltra-claude-code \
--max-agents 8
# Spawn coordinated agents
npx @claude-flow/cli@latest agent spawn \
-t coder --name ruvltra-coder-1
npx @claude-flow/cli@latest agent spawn \
-t reviewer --name ruvltra-reviewer-1
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β RuvLTRA Learning Pipeline β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β βββββββββββ βββββββββββ βββββββββββ βββββββββββ β
β β RETRIEVEβββββΊβ JUDGE βββββΊβ DISTILL βββββΊβCONSOLIDATEβ β
β βββββββββββ βββββββββββ βββββββββββ βββββββββββ β
β β β β β β
β βΌ βΌ βΌ βΌ β
β HNSW Index Success/Fail LoRA Adapt EWC++ Protect β
β 150x faster Verdicts Fine-tune Memory β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββ
β Queen β
β Coordinator β
ββββββββ¬βββββββ
β
βββββββββββββββββΌββββββββββββββββ
β β β
ββββββββΌβββββββ ββββββββΌβββββββ ββββββββΌβββββββ
β Worker β β Worker β β Worker β
β (Generator) β β (Reviewer) β β (Tester) β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β β β
βββββββββββββββββΌββββββββββββββββ
β
ββββββββΌβββββββ
β Shared β
β Memory β
β (HNSW) β
βββββββββββββββ
| Benchmark | RuvLTRA | CodeLlama-7B | StarCoder-3B |
|---|---|---|---|
| HumanEval | 28.4% | 31.5% | 21.3% |
| MBPP | 35.2% | 38.9% | 29.1% |
| Params | 0.5B | 7B | 3B |
Note: RuvLTRA achieves competitive results at 14x fewer parameters
| Platform | Tokens/sec | Memory |
|---|---|---|
| Apple M2 Pro (Metal) | 85 tok/s | 890 MB |
| NVIDIA RTX 4090 | 142 tok/s | 650 MB |
| Intel i9-13900K (CPU) | 18 tok/s | 1.1 GB |
| Raspberry Pi 5 | 4 tok/s | 920 MB |
| Metric | Value |
|---|---|
| Adaptation Latency | <0.05ms |
| Learning Retention | 94.2% |
| Pattern Recognition | 89.7% |
| Memory Efficiency | 50-75% reduction |
use ruvllm::sona::SonaConfig;
let config = SonaConfig {
micro_lora_rank: 2,
base_lora_rank: 8,
learning_rate: 0.001,
ewc_lambda: 0.5, // Memory protection strength
pattern_threshold: 0.75,
..Default::default()
};
| Variant | File | Size | Quality | Speed |
|---|---|---|---|---|
| Q4_K_M | Available | 398 MB | Good | Fast |
| Q8_0 | Coming Soon | ~800 MB | Better | Medium |
| FP16 | Coming Soon | ~1.5 GB | Best | Baseline |
@misc{ruvltra-claude-code,
title={RuvLTRA: Self-Learning LLMs for Claude Code},
author={RuVector Team},
year={2024},
publisher={HuggingFace},
url={https://huggingface.co/ruv/ruvltra-claude-code}
}
Apache 2.0 - Free for commercial and personal use.
Built with β€οΈ by the RuVector Team
The future of AI-assisted development is self-learning.
</div>RuvLTRA models are fully compatible with TurboQuant β 2-4 bit KV-cache quantization that reduces inference memory by 6-8x with <0.5% quality loss.
| Quantization | Compression | Quality Loss | Best For |
|---|---|---|---|
| 3-bit | 10.7x | <1% | Recommended β best balance |
| 4-bit | 8x | <0.5% | High quality, long context |
| 2-bit | 32x | ~2% | Edge devices, max savings |
cargo add ruvllm # Rust
npm install @ruvector/ruvllm # Node.js
use ruvllm::quantize::turbo_quant::{TurboQuantCompressor, TurboQuantConfig, TurboQuantBits};
let config = TurboQuantConfig {
bits: TurboQuantBits::Bit3_5, // 10.7x compression
use_qjl: true,
..Default::default()
};
let compressor = TurboQuantCompressor::new(config)?;
let compressed = compressor.compress_batch(&kv_vectors)?;
let scores = compressor.inner_product_batch_optimized(&query, &compressed)?;
RuVector GitHub | ruvllm crate | @ruvector/ruvllm npm
| Metric | Result |
|---|---|
| Inference Speed | 67.1 tok/s |
| Model Load Time | 2.35s |
| Parameters | 0.5B |
| TurboQuant KV (3-bit) | 10.7x compression, <1% PPL loss |
| TurboQuant KV (4-bit) | 8x compression, <0.5% PPL loss |
Benchmarked on Google Cloud L4 GPU via ruvltra-calibration Cloud Run Job (2026-03-28)