Instructions to use DeepNarra/Hiraya-1-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepNarra/Hiraya-1-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DeepNarra/Hiraya-1-Instruct")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DeepNarra/Hiraya-1-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DeepNarra/Hiraya-1-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DeepNarra/Hiraya-1-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepNarra/Hiraya-1-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DeepNarra/Hiraya-1-Instruct
- SGLang
How to use DeepNarra/Hiraya-1-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "DeepNarra/Hiraya-1-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepNarra/Hiraya-1-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "DeepNarra/Hiraya-1-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepNarra/Hiraya-1-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DeepNarra/Hiraya-1-Instruct with Docker Model Runner:
docker model run hf.co/DeepNarra/Hiraya-1-Instruct
🧑🏫 DeepNarra Hiraya-1-Instruct 1.0 (0.91B-A100M Super-Agent)
Phase 3 Instruction & Agentic Alignment — 14-Horizon Streaming Curriculum, CUA/MUA Action Tokens & DoReMi Balancing
Organization: DeepNarra
Pipeline Stage: Phase 3 — 14-Horizon Supervised Fine-Tuning (SFT) & Agent Alignment
Architecture:H-MoE-Zamba2-92-Expert-Nested-Hierarchical(908,645,372total parameters,~100Mactive/token)
Base Model Fine-Tuned:DeepNarra/Hiraya-1-H-MoE
Evaluation Governance: Zero Fake Scores Policy — 100% Verifiable Engineering Facts Only
🏛️ Verified Technical Specifications (Exact Repository Match)
| Architectural Metric | Exact Verified Value in This Repository |
|---|---|
| Official Model Name | DeepNarra Hiraya-1-Instruct 1.0 (0.91B-A100M) |
| Exact Safetensors Parameter Count | 908,645,372 parameters (3,323.94 MB / 3.32 GB in model.safetensors, 1,331 tensors) |
| Active Parameters / Token | ~100M Active per Token (92 Sub-Experts per layer + Persistent Shared Foundation Expert) |
| Streaming SFT Execution | 250 packed iterations across 227 unique cryptographic fingerprints (0% padding waste, completed in 49.6s) |
| Optimization Engine | Sophia 2nd-Order Clipped Hessian Optimizer + OHEM Adaptive Loss Gate + Focal Loss Scaling |
| 14-Horizon Capabilities | English Fluency, Multi-Language Polyglot, Algorithms/Code, Math, JSON Tool Calling, CUA (<click>), MUA (<touch>), Security Auditing |
🌐 The 14-Horizon Alignment Registry (config.json Verified)
- English Fluency (FineWeb-Edu & Tulu-3)
- All Code & Algorithms (StarCoder2 / Stack v2 & SmolLM Python-Edu)
- Deep Multi-Step Reasoning (Open-R1 & GSM8K)
- Agentic Tool Calling & JSON (No-Robots & Tulu-3)
- Visual & Document Perception (LLaVA-Instruct)
- Strict Constraints & Discipline (No-Robots / IFEval)
- Long-Context Working Memory (Tulu-3 & FineWeb)
- Hard Sciences & Medicine (SciQ & PubMedQA)
- Global Multilingual Polyglot (Aya / Tulu-3 Polyglot)
- Cybersecurity & Secure Coding (CodeFeedback Vulnerability Auditing)
- Finance, Law & Contracts (FinQA & LegalBench)
- Creative Writing & Nuance (UltraChat-200k)
- Computer-Using Agent (CUA) (ScreenSpot / Desktop
<click>坐标) - Mobile-Using Agent (MUA) (Mobile Actions
<touch>UI Navigation)
🚀 Quickstart Usage (Python)
from transformers import AutoTokenizer
from safetensors.torch import load_file
from huggingface_hub import hf_hub_download
repo_id = "DeepNarra/Hiraya-1-Instruct"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
weights_path = hf_hub_download(repo_id=repo_id, filename="model.safetensors")
state_dict = load_file(weights_path)
print(f"Loaded {len(state_dict):,} Instruct H-MoE tensors ({sum(v.numel() for v in state_dict.values()):,} parameters)")
⚖️ License, Dataset Attributions & Responsible AI Compliance
1. Model License (Apache-2.0)
This repository, including all model weights (.safetensors and .gguf), configuration manifests, and custom architectural code, is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0). See the LICENSE and NOTICE files in the root of this repository for full legal terms.
2. Upstream Dataset & Open-Data Attributions (ODC-By-1.0 & Apache-2.0)
In strict compliance with open-data attribution requirements:
- HuggingFaceFW/fineweb-edu: Licensed under the Open Data Commons Attribution License (ODC-By) v1.0.
- CohereForAI/aya_collection: Licensed under the Apache License 2.0.
- m-a-p/CodeFeedback-Filtered-Instruction: Licensed under the Apache License 2.0.
- HuggingFaceH4/no_robots: Attributed under CC-BY-NC-4.0 for instruction-following research evaluation.
- SymPy CAS Procedural Reasoning Stream: Synthetically generated and formally verified via SymPy (BSD-3-Clause).
3. Intended Use, Safety & Limitations
- Intended Use: Research and development in continuous latent reasoning, speculative decoding, sub-quadratic recurrent memory, edge BitNet b1.58 GGUF deployment, and sandboxed autonomous agents.
- Safety & Execution Airlock: Code execution and tool-calling capabilities are designed to run strictly inside the DeepNarra Airlock Sandbox with AST static verification and SSRF network firewalling (
169.254.169.254and RFC-1918 private subnets blocked). - Limitations & Disclaimer: As an experimental sovereign architecture trained on compact compute budgets, outputs should be independently verified for high-stakes medical, legal, financial, or safety-critical systems. Provided
"AS IS"without warranties of any kind under Section 7 of the Apache 2.0 License.
- Downloads last month
- 1,258