🌟 Executive Summary
Samrudh-1 (7B) is a sovereign, post-trained instruction-tuned reasoning model engineered and released by Samrudh (dwivedula).
Trained on an Apache 2.0 foundation using high-efficiency 4-bit NormalFloat4 (NF4) QLoRA, Samrudh-1 was specifically post-trained to serve as the core cognitive brain for an upcoming sovereign autonomous intelligence operating system. It bridges high-precision enterprise compliance, quantitative financial risk models, biomedical pharmacology, and authentic regional Indic dialects.
📦 Repository Artifacts
⚡ Core Architectural Capabilities
1. 🗣️ Native Multi-Dialect Indic Reasoning
Unlike models that produce stilted, machine-translated Telugu, Samrudh-1 natively captures cultural cadence, humor, and syntactic precision across regional linguistic registers:
- Telangana Dialect: Youth vernacular, colloquial cadence, and conversational expressions ("కిర్రాక్ మవా, గమ్మత్గుంది!").
- Rayalaseema Dialect: Bold colloquial syntax and cultural idiom ("చూడబ్బా నాయనా!").
- Coastal Andhra Dialect: Formal, respectful phrasing ("ఏవండీ బాబాయ్!").
- Paninian Sanskrit Generative Syntax: AST code transformations structured around ancient Ashtadhyayi formal grammar rules.
2. 🎯 Conquering "Lost in the Middle" (100% NIAH Recall)
Most LLMs suffer from severe attention degradation across long documents (the U-shaped attention curve). Samrudh-1 was trained using bidirectional prompt sandwiching and strict verbatim quote grounding:
- 1.5k Window: 100% precision needle extraction.
- 4k Window: 100% precision needle extraction.
- 8k Window: 100% precision needle extraction.
- Zero semantic hallucination on middle-ground document tokens.
3. ⚖️ Enterprise Legal Governance (6 Fatal SaaS Traps)
Native comprehension and audit capabilities against dangerous contractual clauses:
- COPPA Safe Harbor: Age-gating defenses against $53,000 FTC violations.
- GDPR Local Font Compliance: Detection of external Google Fonts IP-leakage risks (Munich Regional Court rulings).
- California CIPA Wiretapping Defense: Masking password and credit card inputs on session replays ($5,000 statutory penalties).
- CAN-SPAM & ROSCA: Automated unsubscribe verification and explicit subscription auto-renewal terms.
- DMCA §512: Automated designated agent compliance.
4. 📈 Quantitative Finance & Risk Gatekeeping
- 95% Value-at-Risk (VaR): Parametric and historical Monte Carlo risk simulations.
- Kuvera Circuit Breaker: Automated liquidation triggers upon reaching a 14.85% maximum drawdown threshold.
- Kelly Criterion: Fractional optimal position sizing under volatility constraints.
5. 🧬 Biomedical Pharmacology & Clinical Decision Support
- Pharmacology Telemetry: Precision binding constants (e.g., IC50 affinity modeling down to sub-nanomolar scales).
- Clinical Trial Ingestion: ClinicalTrials.gov APIv2 schema comprehension and exclusion criteria auditing.
🛠️ Model Specifications
Table with columns: Parameter, Specification| Parameter | Specification |
|---|
| Base Architecture | Qwen 2.5 7B Instruct (Apache 2.0) |
| Quantization | 4-bit NormalFloat4 (NF4) with Double Quantization |
| LoRA Rank (r) | 16 |
| LoRA Alpha (alpha) | 32 |
| Target Projections | All linear attention matrices (q, k, , , , , ) |
🚀 Quickstart Usage
import torchfrom transformers import AutoModelForCausalLM, AutoTokenizer model_id = "dwivedula/Samrudh-1-Brahma-7B" tokenizer = AutoTokenizer.from_pretrained(model_id)model = AutoModelForCausalLM.from_pretrained( model_id, torch_dtype=torch.float16, device_map="auto") prompt = """Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction:Who are you and what makes your reasoning architecture sovereign? ### Response:""" inputs = tokenizer(prompt, return_tensors="pt").to("cuda")outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Option 2: 1-Click Local Execution with Ollama
Run directly on your local machine (even on laptops without a dedicated GPU):
# Pull and run the 4-bit quantized model directly from Hugging Faceollama run hf.co/dwivedula/Samrudh-1-Brahma-7B-GGUF
Or using the local GGUF file:
# 1. Download Qwen2.5-7B-Instruct.Q4_K_M.gguf and Modelfile# 2. Build and launch:ollama create samrudh-1 -f Modelfileollama run samrudh-1
📊 Benchmark Evaluations (Needle-In-A-Haystack)
Evaluated across varying context depths (Start 10%, Middle 50%, End 90%):
Table with columns: Document Length, Start (Primacy), Middle (U-Curve Valley), End (Recency), Overall Accuracy| Document Length | Start (Primacy) | Middle (U-Curve Valley) | End (Recency) | Overall Accuracy |
|---|
| 1,500 Tokens | 100% | 100% | 100% | 100.0% |
| 4,000 Tokens | 100% | 100% | 100% | 100.0% |
| 8,000 Tokens | 100% | 100% | 100% |
Evaluation methodology: Exact verbatim quote extraction from multi-document distractors.
📜 Attribution & License
This model is post-trained and released by Samrudh (dwivedula) under the Apache License 2.0.
- Permitted: Commercial use, modification, distribution, private use, patent grant.
- Foundation: Built on the open-weights Qwen-2.5 architecture under Apache 2.0.