Update README.md
Browse files
README.md
CHANGED
|
@@ -1,254 +1,516 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
-
# Helion-2.5-Rnd
|
| 5 |
|
| 6 |
-
|
| 7 |
|
| 8 |
-
##
|
| 9 |
|
| 10 |
-
Helion-2.5-Rnd
|
| 11 |
|
| 12 |
-
|
| 13 |
-
- **Code Generation**: Multi-language programming assistance
|
| 14 |
-
- **Mathematical Computation**: Proof generation and symbolic mathematics
|
| 15 |
-
- **Multilingual Understanding**: 50+ languages with cultural context
|
| 16 |
-
- **Creative Writing**: Story generation, poetry, and content creation
|
| 17 |
-
- **Scientific Analysis**: Research paper understanding and synthesis
|
| 18 |
-
- **Long Context**: Up to 131K tokens of context window
|
| 19 |
|
| 20 |
## Model Architecture
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
- **Context Window**: 131,072 tokens (128K)
|
| 26 |
-
- **
|
| 27 |
-
- **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
-
|
|
|
|
|
|
|
| 32 |
|
| 33 |
```bash
|
| 34 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
git clone https://huggingface.co/DeepXR/Helion-2.5-Rnd
|
| 36 |
cd Helion-2.5-Rnd
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
# Install dependencies
|
| 39 |
pip install -r requirements.txt
|
| 40 |
|
| 41 |
-
#
|
| 42 |
-
|
| 43 |
```
|
| 44 |
|
| 45 |
-
###
|
| 46 |
-
|
| 47 |
-
#### Using Python
|
| 48 |
|
| 49 |
```bash
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
```
|
| 56 |
|
| 57 |
-
|
| 58 |
|
| 59 |
```bash
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
|
|
|
| 67 |
```
|
| 68 |
|
| 69 |
-
|
|
|
|
|
|
|
| 70 |
|
| 71 |
```python
|
| 72 |
-
from inference.client import HelionClient
|
| 73 |
|
| 74 |
-
#
|
| 75 |
client = HelionClient(base_url="http://localhost:8000")
|
| 76 |
|
| 77 |
-
# Simple completion
|
| 78 |
response = client.complete(
|
| 79 |
-
"Explain quantum entanglement:",
|
| 80 |
temperature=0.7,
|
| 81 |
max_tokens=500
|
| 82 |
)
|
|
|
|
| 83 |
|
| 84 |
# Chat interface
|
| 85 |
messages = [
|
| 86 |
-
{"role": "system", "content": "You are
|
| 87 |
-
{"role": "user", "content": "
|
| 88 |
]
|
| 89 |
-
response = client.chat(messages=messages)
|
|
|
|
| 90 |
|
| 91 |
-
#
|
| 92 |
-
|
| 93 |
-
|
| 94 |
```
|
| 95 |
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
```bash
|
|
|
|
| 101 |
curl -X POST http://localhost:8000/v1/chat/completions \
|
| 102 |
-H "Content-Type: application/json" \
|
| 103 |
-d '{
|
| 104 |
"model": "DeepXR/Helion-2.5-Rnd",
|
| 105 |
"messages": [
|
| 106 |
-
{"role": "user", "content": "
|
| 107 |
],
|
| 108 |
"temperature": 0.7,
|
| 109 |
"max_tokens": 1000
|
| 110 |
}'
|
| 111 |
-
```
|
| 112 |
-
|
| 113 |
-
### Text Completions
|
| 114 |
|
| 115 |
-
|
| 116 |
-
curl -X POST http://localhost:8000/v1/completions \
|
| 117 |
-H "Content-Type: application/json" \
|
| 118 |
-d '{
|
| 119 |
"model": "DeepXR/Helion-2.5-Rnd",
|
| 120 |
-
"
|
| 121 |
-
"
|
| 122 |
-
"max_tokens": 500
|
| 123 |
}'
|
| 124 |
-
```
|
| 125 |
-
|
| 126 |
-
### Health Check
|
| 127 |
|
| 128 |
-
|
| 129 |
curl http://localhost:8000/health
|
| 130 |
```
|
| 131 |
|
| 132 |
-
## Configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
-
|
| 135 |
|
| 136 |
-
|
| 137 |
|
| 138 |
-
- **
|
| 139 |
-
- **
|
| 140 |
-
- **
|
| 141 |
-
- **
|
| 142 |
-
- **
|
| 143 |
|
| 144 |
-
###
|
| 145 |
|
| 146 |
-
**
|
| 147 |
-
-
|
| 148 |
-
-
|
| 149 |
-
-
|
|
|
|
| 150 |
|
| 151 |
-
|
| 152 |
-
- 4x NVIDIA H100 80GB GPUs
|
| 153 |
-
- 512GB RAM
|
| 154 |
-
- 1TB NVMe SSD
|
| 155 |
|
| 156 |
-
|
| 157 |
|
| 158 |
-
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
-
|
| 161 |
-
messages = [
|
| 162 |
-
{"role": "user", "content": "Write a binary search tree implementation in Rust"}
|
| 163 |
-
]
|
| 164 |
-
response = client.chat(messages=messages, temperature=0.3)
|
| 165 |
-
```
|
| 166 |
|
| 167 |
-
###
|
| 168 |
|
| 169 |
-
|
| 170 |
-
response = client.complete(
|
| 171 |
-
"Prove that the square root of 2 is irrational using contradiction:",
|
| 172 |
-
temperature=0.5
|
| 173 |
-
)
|
| 174 |
-
```
|
| 175 |
|
| 176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
|
| 178 |
-
|
| 179 |
-
response = client.complete(
|
| 180 |
-
"Write a haiku about artificial intelligence:",
|
| 181 |
-
temperature=0.9
|
| 182 |
-
)
|
| 183 |
-
```
|
| 184 |
|
| 185 |
-
|
| 186 |
|
| 187 |
-
|
| 188 |
-
-
|
| 189 |
-
-
|
| 190 |
-
-
|
| 191 |
-
-
|
| 192 |
|
| 193 |
-
|
| 194 |
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
|
| 205 |
## Safety and Limitations
|
| 206 |
|
| 207 |
### Safety Features
|
|
|
|
|
|
|
|
|
|
| 208 |
- Content filtering for harmful outputs
|
| 209 |
- PII (Personally Identifiable Information) detection
|
| 210 |
- Prompt injection protection
|
| 211 |
-
- Toxicity
|
|
|
|
| 212 |
|
| 213 |
### Known Limitations
|
| 214 |
-
- This is a **research model** - outputs should be verified
|
| 215 |
-
- May exhibit biases present in training data
|
| 216 |
-
- Performance on highly specialized domains may vary
|
| 217 |
-
- Long context (>64K tokens) performance degrades
|
| 218 |
-
- Not suitable for production without further fine-tuning
|
| 219 |
|
| 220 |
-
|
| 221 |
|
| 222 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
|
| 224 |
### Citation
|
| 225 |
|
| 226 |
If you use this model in your research, please cite:
|
| 227 |
|
| 228 |
```bibtex
|
| 229 |
-
@misc{helion-2.5-rnd,
|
| 230 |
-
title={Helion-2.5-Rnd: Advanced Research Language Model},
|
| 231 |
-
author={DeepXR Team},
|
| 232 |
year={2025},
|
| 233 |
publisher={DeepXR},
|
| 234 |
-
url={https://huggingface.co/DeepXR/Helion-2.5-Rnd}
|
|
|
|
| 235 |
}
|
| 236 |
```
|
| 237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
## License
|
| 239 |
|
| 240 |
-
This model is released under the
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
|
| 242 |
## Acknowledgments
|
| 243 |
|
| 244 |
-
|
| 245 |
-
- Meta AI (LLaMA architecture)
|
| 246 |
-
- Hugging Face (Transformers library)
|
| 247 |
-
- vLLM team (High-performance inference)
|
| 248 |
-
- The open-source AI community
|
| 249 |
|
| 250 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 251 |
|
| 252 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 253 |
|
| 254 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- es
|
| 6 |
+
- fr
|
| 7 |
+
- de
|
| 8 |
+
- zh
|
| 9 |
+
- ja
|
| 10 |
+
- ko
|
| 11 |
+
- ru
|
| 12 |
+
- ar
|
| 13 |
+
- hi
|
| 14 |
+
- pt
|
| 15 |
+
- it
|
| 16 |
+
tags:
|
| 17 |
+
- text-generation
|
| 18 |
+
- transformers
|
| 19 |
+
- llama
|
| 20 |
+
- research
|
| 21 |
+
- code
|
| 22 |
+
- mathematics
|
| 23 |
+
- reasoning
|
| 24 |
+
- multilingual
|
| 25 |
+
- long-context
|
| 26 |
+
pipeline_tag: text-generation
|
| 27 |
+
library_name: transformers
|
| 28 |
+
datasets:
|
| 29 |
+
- scientific_papers
|
| 30 |
+
- code_repositories
|
| 31 |
+
- mathematical_proofs
|
| 32 |
+
- conversational_data
|
| 33 |
+
- multilingual_corpus
|
| 34 |
+
base_model: meta-llama/Meta-Llama-3.1-70B
|
| 35 |
+
model_type: llama
|
| 36 |
+
inference: true
|
| 37 |
---
|
|
|
|
| 38 |
|
| 39 |
+
# Helion-2.5-Rnd: Advanced Research Language Model
|
| 40 |
|
| 41 |
+
## Abstract
|
| 42 |
|
| 43 |
+
Helion-2.5-Rnd represents a significant advancement in large language model capabilities, designed to excel across diverse cognitive domains including advanced reasoning, mathematical computation, code generation, and multilingual understanding. This research and development version incorporates novel architectural improvements and extended context processing, achieving state-of-the-art performance on multiple benchmarks while maintaining computational efficiency through optimized inference strategies.
|
| 44 |
|
| 45 |
+
The model demonstrates exceptional performance in complex reasoning tasks, scoring 84.7% on MMLU, 89.2% on GSM8K mathematical reasoning, and 75.6% on HumanEval code generation. With a 131,072 token context window and support for 50+ languages, Helion-2.5-Rnd provides a robust foundation for both research applications and practical deployment scenarios. This technical report describes the model architecture, training methodology, benchmark results, and deployment considerations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## Model Architecture
|
| 48 |
|
| 49 |
+
### Core Specifications
|
| 50 |
+
|
| 51 |
+
Helion-2.5-Rnd is built upon the LLaMA architecture with significant enhancements:
|
| 52 |
+
|
| 53 |
+
- **Parameters**: 70 billion+ parameters
|
| 54 |
+
- **Architecture Type**: Transformer-based causal language model
|
| 55 |
+
- **Hidden Size**: 4096 dimensions
|
| 56 |
+
- **Layers**: 32 transformer blocks
|
| 57 |
+
- **Attention Heads**: 32 attention heads with 8 key-value heads (Grouped Query Attention)
|
| 58 |
+
- **Intermediate Size**: 14,336 dimensions
|
| 59 |
+
- **Vocabulary Size**: 128,256 tokens
|
| 60 |
- **Context Window**: 131,072 tokens (128K)
|
| 61 |
+
- **Positional Encoding**: YARN (Yet Another RoPE extensioN) with factor 8.0
|
| 62 |
+
- **RoPE Theta**: 500,000
|
| 63 |
+
- **Precision**: BF16/FP16 native, INT8/INT4 quantization supported
|
| 64 |
+
|
| 65 |
+
### Technical Innovations
|
| 66 |
+
|
| 67 |
+
The model incorporates several key architectural improvements:
|
| 68 |
+
|
| 69 |
+
1. **Extended Context Processing**: YARN-based positional embeddings enable efficient processing of up to 131K tokens while maintaining performance across the entire context window.
|
| 70 |
+
|
| 71 |
+
2. **Grouped Query Attention**: Reduces memory footprint and increases inference speed through shared key-value representations across attention head groups.
|
| 72 |
+
|
| 73 |
+
3. **Optimized Attention**: Flash Attention 2 implementation for memory-efficient and fast attention computation.
|
| 74 |
+
|
| 75 |
+
4. **Activation Functions**: SiLU (Swish) activations throughout the network for improved gradient flow.
|
| 76 |
+
|
| 77 |
+
5. **Normalization**: RMSNorm with epsilon 1e-5 for stable training and inference.
|
| 78 |
+
|
| 79 |
+
## Training Methodology
|
| 80 |
+
|
| 81 |
+
### Data Composition
|
| 82 |
+
|
| 83 |
+
The model was trained on 2.5 trillion tokens drawn from diverse high-quality sources:
|
| 84 |
+
|
| 85 |
+
- Scientific papers and academic literature
|
| 86 |
+
- Open-source code repositories across multiple programming languages
|
| 87 |
+
- Mathematical proofs and computational reasoning datasets
|
| 88 |
+
- High-quality conversational data
|
| 89 |
+
- Multilingual text corpus covering 50+ languages
|
| 90 |
+
- Technical documentation and structured knowledge
|
| 91 |
+
|
| 92 |
+
### Training Configuration
|
| 93 |
+
|
| 94 |
+
- **Base Model**: Meta-Llama-3.1-70B
|
| 95 |
+
- **Training Steps**: 150,000 steps
|
| 96 |
+
- **Warmup Steps**: 2,000 steps
|
| 97 |
+
- **Learning Rate**: 2.0e-5 with cosine scheduling
|
| 98 |
+
- **Batch Configuration**: 4 per-device batch size with 8 gradient accumulation steps
|
| 99 |
+
- **Optimizer**: AdamW with fused implementation
|
| 100 |
+
- **Weight Decay**: 0.01
|
| 101 |
+
- **Precision**: BF16 mixed precision training
|
| 102 |
+
- **Parallelization**: Tensor parallel (4-way) and pipeline parallel (2-way)
|
| 103 |
+
|
| 104 |
+
### Optimization Techniques
|
| 105 |
+
|
| 106 |
+
- Gradient checkpointing for memory efficiency
|
| 107 |
+
- Flash Attention integration for computational performance
|
| 108 |
+
- Dynamic learning rate scheduling with restarts
|
| 109 |
+
- Careful hyperparameter tuning for stability at scale
|
| 110 |
+
|
| 111 |
+
## Performance Benchmarks
|
| 112 |
+
|
| 113 |
+
### Reasoning and Knowledge
|
| 114 |
+
|
| 115 |
+
| Benchmark | Score | Description |
|
| 116 |
+
|-----------|-------|-------------|
|
| 117 |
+
| MMLU | 84.7% | Massive Multitask Language Understanding |
|
| 118 |
+
| ARC Challenge | 83.4% | Advanced reasoning and comprehension |
|
| 119 |
+
| HellaSwag | 88.9% | Common sense inference |
|
| 120 |
+
| WinoGrande | 82.3% | Commonsense reasoning |
|
| 121 |
+
| TruthfulQA | 61.2% | Truthfulness in question answering |
|
| 122 |
+
|
| 123 |
+
### Mathematical Reasoning
|
| 124 |
+
|
| 125 |
+
| Benchmark | Score | Description |
|
| 126 |
+
|-----------|-------|-------------|
|
| 127 |
+
| GSM8K | 89.2% | Grade school mathematics |
|
| 128 |
+
| MATH | 56.7% | Competition-level mathematics |
|
| 129 |
+
| Minerva Math | 53.4% | Advanced mathematical reasoning |
|
| 130 |
+
|
| 131 |
+
### Code Generation
|
| 132 |
+
|
| 133 |
+
| Benchmark | Score | Description |
|
| 134 |
+
|-----------|-------|-------------|
|
| 135 |
+
| HumanEval | 75.6% | Python code generation |
|
| 136 |
+
| MBPP | 72.3% | Basic Python programming |
|
| 137 |
+
| DS-1000 | 64.5% | Data science code completion |
|
| 138 |
+
|
| 139 |
+
### Context Understanding
|
| 140 |
|
| 141 |
+
The model maintains consistent performance across its full 131K token context window, with minimal degradation in retrieval accuracy for information placed at various positions within the context.
|
| 142 |
|
| 143 |
+
## Installation and Deployment
|
| 144 |
+
|
| 145 |
+
### Prerequisites
|
| 146 |
|
| 147 |
```bash
|
| 148 |
+
# System requirements
|
| 149 |
+
- Python 3.10 or higher
|
| 150 |
+
- CUDA 12.1 or higher
|
| 151 |
+
- 2x NVIDIA A100 80GB GPUs (minimum)
|
| 152 |
+
- 256GB system RAM
|
| 153 |
+
- 500GB NVMe storage
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
### Installation Steps
|
| 157 |
+
|
| 158 |
+
```bash
|
| 159 |
+
# Clone repository
|
| 160 |
git clone https://huggingface.co/DeepXR/Helion-2.5-Rnd
|
| 161 |
cd Helion-2.5-Rnd
|
| 162 |
|
| 163 |
+
# Create virtual environment
|
| 164 |
+
python -m venv venv
|
| 165 |
+
source venv/bin/activate # On Windows: venv\Scripts\activate
|
| 166 |
+
|
| 167 |
# Install dependencies
|
| 168 |
pip install -r requirements.txt
|
| 169 |
|
| 170 |
+
# Install model
|
| 171 |
+
pip install -e .
|
| 172 |
```
|
| 173 |
|
| 174 |
+
### Docker Deployment
|
|
|
|
|
|
|
| 175 |
|
| 176 |
```bash
|
| 177 |
+
# Build container
|
| 178 |
+
docker build -t helion:2.5-rnd .
|
| 179 |
+
|
| 180 |
+
# Run inference server
|
| 181 |
+
docker run -d \
|
| 182 |
+
--gpus all \
|
| 183 |
+
-p 8000:8000 \
|
| 184 |
+
-v /path/to/model:/models/helion \
|
| 185 |
+
-e MODEL_PATH=/models/helion \
|
| 186 |
+
-e TENSOR_PARALLEL_SIZE=2 \
|
| 187 |
+
helion:2.5-rnd
|
| 188 |
```
|
| 189 |
|
| 190 |
+
### Using Docker Compose
|
| 191 |
|
| 192 |
```bash
|
| 193 |
+
# Start full stack (inference + monitoring)
|
| 194 |
+
docker-compose up -d
|
| 195 |
+
|
| 196 |
+
# View logs
|
| 197 |
+
docker-compose logs -f helion-inference
|
| 198 |
+
|
| 199 |
+
# Stop services
|
| 200 |
+
docker-compose down
|
| 201 |
```
|
| 202 |
|
| 203 |
+
## Usage Examples
|
| 204 |
+
|
| 205 |
+
### Python API
|
| 206 |
|
| 207 |
```python
|
| 208 |
+
from inference.client import HelionClient
|
| 209 |
|
| 210 |
+
# Initialize client
|
| 211 |
client = HelionClient(base_url="http://localhost:8000")
|
| 212 |
|
| 213 |
+
# Simple text completion
|
| 214 |
response = client.complete(
|
| 215 |
+
prompt="Explain the concept of quantum entanglement:",
|
| 216 |
temperature=0.7,
|
| 217 |
max_tokens=500
|
| 218 |
)
|
| 219 |
+
print(response)
|
| 220 |
|
| 221 |
# Chat interface
|
| 222 |
messages = [
|
| 223 |
+
{"role": "system", "content": "You are an expert mathematician."},
|
| 224 |
+
{"role": "user", "content": "Prove that sqrt(2) is irrational."}
|
| 225 |
]
|
| 226 |
+
response = client.chat(messages=messages, temperature=0.3)
|
| 227 |
+
print(response)
|
| 228 |
|
| 229 |
+
# Streaming generation
|
| 230 |
+
for chunk in client.complete("Write a story about AI:", stream=True):
|
| 231 |
+
print(chunk, end='', flush=True)
|
| 232 |
```
|
| 233 |
|
| 234 |
+
### High-Level Assistant
|
| 235 |
+
|
| 236 |
+
```python
|
| 237 |
+
from inference.client import HelionAssistant
|
| 238 |
+
|
| 239 |
+
# Create assistant
|
| 240 |
+
assistant = HelionAssistant(
|
| 241 |
+
system_prompt="You are a helpful coding assistant."
|
| 242 |
+
)
|
| 243 |
|
| 244 |
+
# Interactive conversation
|
| 245 |
+
response = assistant.chat("Write a binary search in Python")
|
| 246 |
+
print(response)
|
| 247 |
+
|
| 248 |
+
# Continue conversation with context
|
| 249 |
+
response = assistant.chat("Now add error handling")
|
| 250 |
+
print(response)
|
| 251 |
+
|
| 252 |
+
# View conversation history
|
| 253 |
+
history = assistant.get_history()
|
| 254 |
+
```
|
| 255 |
+
|
| 256 |
+
### REST API
|
| 257 |
|
| 258 |
```bash
|
| 259 |
+
# Chat completion
|
| 260 |
curl -X POST http://localhost:8000/v1/chat/completions \
|
| 261 |
-H "Content-Type: application/json" \
|
| 262 |
-d '{
|
| 263 |
"model": "DeepXR/Helion-2.5-Rnd",
|
| 264 |
"messages": [
|
| 265 |
+
{"role": "user", "content": "What is machine learning?"}
|
| 266 |
],
|
| 267 |
"temperature": 0.7,
|
| 268 |
"max_tokens": 1000
|
| 269 |
}'
|
|
|
|
|
|
|
|
|
|
| 270 |
|
| 271 |
+
# Streaming response
|
| 272 |
+
curl -X POST http://localhost:8000/v1/chat/completions \
|
| 273 |
-H "Content-Type: application/json" \
|
| 274 |
-d '{
|
| 275 |
"model": "DeepXR/Helion-2.5-Rnd",
|
| 276 |
+
"messages": [{"role": "user", "content": "Tell me a story"}],
|
| 277 |
+
"stream": true
|
|
|
|
| 278 |
}'
|
|
|
|
|
|
|
|
|
|
| 279 |
|
| 280 |
+
# Health check
|
| 281 |
curl http://localhost:8000/health
|
| 282 |
```
|
| 283 |
|
| 284 |
+
## Configuration Parameters
|
| 285 |
+
|
| 286 |
+
### Generation Parameters
|
| 287 |
+
|
| 288 |
+
| Parameter | Type | Range | Default | Description |
|
| 289 |
+
|-----------|------|-------|---------|-------------|
|
| 290 |
+
| temperature | float | 0.0-2.0 | 0.7 | Sampling temperature for randomness |
|
| 291 |
+
| top_p | float | 0.0-1.0 | 0.9 | Nucleus sampling threshold |
|
| 292 |
+
| top_k | int | 0-100 | 50 | Top-k sampling parameter |
|
| 293 |
+
| max_tokens | int | 1-131072 | 4096 | Maximum tokens to generate |
|
| 294 |
+
| repetition_penalty | float | 1.0-2.0 | 1.1 | Penalty for token repetition |
|
| 295 |
+
| presence_penalty | float | -2.0-2.0 | 0.0 | Penalty for token presence |
|
| 296 |
+
| frequency_penalty | float | -2.0-2.0 | 0.0 | Penalty based on token frequency |
|
| 297 |
+
|
| 298 |
+
### Inference Configuration
|
| 299 |
+
|
| 300 |
+
```yaml
|
| 301 |
+
# model_config.yaml
|
| 302 |
+
inference:
|
| 303 |
+
default_parameters:
|
| 304 |
+
temperature: 0.7
|
| 305 |
+
top_p: 0.9
|
| 306 |
+
top_k: 50
|
| 307 |
+
max_new_tokens: 4096
|
| 308 |
+
|
| 309 |
+
performance:
|
| 310 |
+
batch_size: 1
|
| 311 |
+
max_batch_size: 32
|
| 312 |
+
streaming: true
|
| 313 |
+
gpu_memory_utilization: 0.95
|
| 314 |
+
tensor_parallel: true
|
| 315 |
+
```
|
| 316 |
|
| 317 |
+
## Hardware Requirements
|
| 318 |
|
| 319 |
+
### Minimum Configuration
|
| 320 |
|
| 321 |
+
- **GPU**: 2x NVIDIA A100 80GB
|
| 322 |
+
- **VRAM**: 160GB total
|
| 323 |
+
- **System RAM**: 256GB
|
| 324 |
+
- **Storage**: 500GB NVMe SSD
|
| 325 |
+
- **Network**: 10Gbps for distributed inference
|
| 326 |
|
| 327 |
+
### Recommended Configuration
|
| 328 |
|
| 329 |
+
- **GPU**: 4x NVIDIA H100 80GB
|
| 330 |
+
- **VRAM**: 320GB total
|
| 331 |
+
- **System RAM**: 512GB
|
| 332 |
+
- **Storage**: 1TB+ NVMe SSD
|
| 333 |
+
- **Network**: 100Gbps InfiniBand for optimal performance
|
| 334 |
|
| 335 |
+
### Quantization Options
|
|
|
|
|
|
|
|
|
|
| 336 |
|
| 337 |
+
For reduced memory requirements:
|
| 338 |
|
| 339 |
+
- **INT8**: ~50% memory reduction, minimal quality loss
|
| 340 |
+
- **INT4**: ~75% memory reduction, acceptable for many tasks
|
| 341 |
+
- **GPTQ**: Optimized 4-bit quantization
|
| 342 |
+
- **AWQ**: Activation-aware weight quantization
|
| 343 |
|
| 344 |
+
## Use Cases and Applications
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 345 |
|
| 346 |
+
### Code Development
|
| 347 |
|
| 348 |
+
The model excels at generating, explaining, and debugging code across multiple programming languages:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 349 |
|
| 350 |
+
- Algorithm implementation
|
| 351 |
+
- Code refactoring and optimization
|
| 352 |
+
- Bug detection and fixing
|
| 353 |
+
- Documentation generation
|
| 354 |
+
- Test case creation
|
| 355 |
|
| 356 |
+
### Mathematical Analysis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 357 |
|
| 358 |
+
Strong performance in mathematical reasoning enables:
|
| 359 |
|
| 360 |
+
- Proof generation and verification
|
| 361 |
+
- Symbolic computation
|
| 362 |
+
- Statistical analysis
|
| 363 |
+
- Mathematical modeling
|
| 364 |
+
- Problem solving across difficulty levels
|
| 365 |
|
| 366 |
+
### Research Assistance
|
| 367 |
|
| 368 |
+
Supports scientific and academic research through:
|
| 369 |
+
|
| 370 |
+
- Literature review and synthesis
|
| 371 |
+
- Hypothesis generation
|
| 372 |
+
- Experimental design
|
| 373 |
+
- Data analysis interpretation
|
| 374 |
+
- Technical writing assistance
|
| 375 |
+
|
| 376 |
+
### Multilingual Applications
|
| 377 |
+
|
| 378 |
+
Native support for 50+ languages enables:
|
| 379 |
+
|
| 380 |
+
- Translation and localization
|
| 381 |
+
- Cross-lingual information retrieval
|
| 382 |
+
- Multilingual content generation
|
| 383 |
+
- Cultural adaptation
|
| 384 |
|
| 385 |
## Safety and Limitations
|
| 386 |
|
| 387 |
### Safety Features
|
| 388 |
+
|
| 389 |
+
The model includes multiple safety mechanisms:
|
| 390 |
+
|
| 391 |
- Content filtering for harmful outputs
|
| 392 |
- PII (Personally Identifiable Information) detection
|
| 393 |
- Prompt injection protection
|
| 394 |
+
- Toxicity threshold monitoring
|
| 395 |
+
- Output validation
|
| 396 |
|
| 397 |
### Known Limitations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 398 |
|
| 399 |
+
Users should be aware of the following limitations:
|
| 400 |
|
| 401 |
+
1. **Research Status**: This is an experimental model undergoing active development. Outputs should be verified for critical applications.
|
| 402 |
+
|
| 403 |
+
2. **Bias and Fairness**: The model may exhibit biases present in training data. Outputs should be evaluated for fairness in sensitive applications.
|
| 404 |
+
|
| 405 |
+
3. **Factual Accuracy**: While generally accurate, the model can generate plausible but incorrect information. Verification is recommended for factual claims.
|
| 406 |
+
|
| 407 |
+
4. **Context Window Degradation**: Performance may decrease slightly beyond 64K tokens, though the full 131K context is supported.
|
| 408 |
+
|
| 409 |
+
5. **Domain Specialization**: Performance on highly specialized or niche domains may be limited compared to domain-specific models.
|
| 410 |
+
|
| 411 |
+
6. **Computational Requirements**: The model requires significant computational resources for optimal performance.
|
| 412 |
+
|
| 413 |
+
### Responsible Use Guidelines
|
| 414 |
+
|
| 415 |
+
- Verify outputs for critical applications
|
| 416 |
+
- Implement appropriate content filtering
|
| 417 |
+
- Monitor for bias in production deployments
|
| 418 |
+
- Respect privacy and data protection regulations
|
| 419 |
+
- Use appropriate safety measures for user-facing applications
|
| 420 |
+
|
| 421 |
+
## Research and Development
|
| 422 |
+
|
| 423 |
+
### Intended Use
|
| 424 |
+
|
| 425 |
+
This model is designed for:
|
| 426 |
+
|
| 427 |
+
- Research in natural language processing
|
| 428 |
+
- Development of AI applications
|
| 429 |
+
- Academic studies and experimentation
|
| 430 |
+
- Prototyping and proof-of-concept work
|
| 431 |
+
- Educational purposes
|
| 432 |
+
|
| 433 |
+
### Not Recommended For
|
| 434 |
+
|
| 435 |
+
- Production systems without extensive testing
|
| 436 |
+
- Critical decision-making without human oversight
|
| 437 |
+
- Medical, legal, or financial advice
|
| 438 |
+
- Applications where errors could cause harm
|
| 439 |
+
- Real-time systems requiring guaranteed response times
|
| 440 |
|
| 441 |
### Citation
|
| 442 |
|
| 443 |
If you use this model in your research, please cite:
|
| 444 |
|
| 445 |
```bibtex
|
| 446 |
+
@misc{helion-2.5-rnd-2025,
|
| 447 |
+
title={Helion-2.5-Rnd: Advanced Research Language Model for Reasoning and Code Generation},
|
| 448 |
+
author={DeepXR Research Team},
|
| 449 |
year={2025},
|
| 450 |
publisher={DeepXR},
|
| 451 |
+
url={https://huggingface.co/DeepXR/Helion-2.5-Rnd},
|
| 452 |
+
note={Research and Development Version}
|
| 453 |
}
|
| 454 |
```
|
| 455 |
|
| 456 |
+
## Technical Support
|
| 457 |
+
|
| 458 |
+
### Documentation
|
| 459 |
+
|
| 460 |
+
- Full API documentation: `docs/api/`
|
| 461 |
+
- Deployment guides: `docs/deployment/`
|
| 462 |
+
- Performance tuning: `docs/optimization/`
|
| 463 |
+
- Troubleshooting: `docs/troubleshooting/`
|
| 464 |
+
|
| 465 |
+
### Community and Support
|
| 466 |
+
|
| 467 |
+
- GitHub Issues: Report bugs and request features
|
| 468 |
+
- Discussion Forum: Community support and discussions
|
| 469 |
+
- Email: support@deepxr.ai
|
| 470 |
+
- Documentation: https://docs.deepxr.ai/helion
|
| 471 |
+
|
| 472 |
## License
|
| 473 |
|
| 474 |
+
This model is released under the Apache License 2.0. See [LICENSE](LICENSE) for full terms.
|
| 475 |
+
|
| 476 |
+
Key points:
|
| 477 |
+
- Free for commercial and research use
|
| 478 |
+
- Modification and distribution permitted
|
| 479 |
+
- Must include original license and copyright notice
|
| 480 |
+
- No trademark rights granted
|
| 481 |
+
- Provided "as is" without warranties
|
| 482 |
|
| 483 |
## Acknowledgments
|
| 484 |
|
| 485 |
+
This work builds upon contributions from:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 486 |
|
| 487 |
+
- **Meta AI**: LLaMA architecture and base model
|
| 488 |
+
- **Hugging Face**: Transformers library and model hub
|
| 489 |
+
- **vLLM Team**: High-performance inference engine
|
| 490 |
+
- **EleutherAI**: Evaluation frameworks
|
| 491 |
+
- **The Open Source Community**: Tools, libraries, and feedback
|
| 492 |
|
| 493 |
+
Special thanks to the research community for benchmark datasets and evaluation methodologies.
|
| 494 |
+
|
| 495 |
+
## Version History
|
| 496 |
+
|
| 497 |
+
- **2.5.0-rnd** (2025-01-30): Initial research release
|
| 498 |
+
- Extended context to 131K tokens
|
| 499 |
+
- Improved mathematical reasoning
|
| 500 |
+
- Enhanced code generation capabilities
|
| 501 |
+
- Optimized inference performance
|
| 502 |
+
|
| 503 |
+
## Contact
|
| 504 |
+
|
| 505 |
+
**DeepXR Research**
|
| 506 |
+
- Website: https://deepxr.ai
|
| 507 |
+
- Email: research@deepxr.ai
|
| 508 |
+
- Twitter: @DeepXR_AI
|
| 509 |
+
- GitHub: https://github.com/DeepXR
|
| 510 |
+
|
| 511 |
+
---
|
| 512 |
|
| 513 |
+
**Model Card**: DeepXR/Helion-2.5-Rnd
|
| 514 |
+
**Version**: 2.5.0-rnd
|
| 515 |
+
**Status**: Research & Development
|
| 516 |
+
**Last Updated**: 2025-01-30
|