Text Generation
Transformers
PyTorch
English
multilingual
helion
deepxr
xlarge
instruction-tuned
causal-lm
conversational
custom_code
Eval Results (legacy)
bitsandbytes
Instructions to use DeepXR/Helion-V1.5-XL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepXR/Helion-V1.5-XL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DeepXR/Helion-V1.5-XL", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("DeepXR/Helion-V1.5-XL", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DeepXR/Helion-V1.5-XL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DeepXR/Helion-V1.5-XL" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepXR/Helion-V1.5-XL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DeepXR/Helion-V1.5-XL
- SGLang
How to use DeepXR/Helion-V1.5-XL 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 "DeepXR/Helion-V1.5-XL" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepXR/Helion-V1.5-XL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "DeepXR/Helion-V1.5-XL" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepXR/Helion-V1.5-XL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DeepXR/Helion-V1.5-XL with Docker Model Runner:
docker model run hf.co/DeepXR/Helion-V1.5-XL
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,398 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- multilingual
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
tags:
|
| 7 |
+
- text-generation
|
| 8 |
+
- transformers
|
| 9 |
+
- pytorch
|
| 10 |
+
- deepxr
|
| 11 |
+
- helion
|
| 12 |
+
- xlarge
|
| 13 |
+
- instruction-tuned
|
| 14 |
+
- causal-lm
|
| 15 |
+
library_name: transformers
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
+
datasets:
|
| 18 |
+
- SlimPajama
|
| 19 |
+
- StarCoder
|
| 20 |
+
- OpenOrca
|
| 21 |
+
- UltraChat
|
| 22 |
+
- WizardLM
|
| 23 |
+
- Alpaca
|
| 24 |
+
metrics:
|
| 25 |
+
- perplexity
|
| 26 |
+
- accuracy
|
| 27 |
+
- bleu
|
| 28 |
+
- rouge
|
| 29 |
+
base_model: DeepXR/Helion-V1.5
|
| 30 |
+
model-index:
|
| 31 |
+
- name: DeepXR/Helion-V1.5-XL
|
| 32 |
+
results:
|
| 33 |
+
- task:
|
| 34 |
+
type: text-generation
|
| 35 |
+
name: Text Generation
|
| 36 |
+
dataset:
|
| 37 |
+
name: MMLU
|
| 38 |
+
type: mmlu
|
| 39 |
+
metrics:
|
| 40 |
+
- type: accuracy
|
| 41 |
+
value: 78.9
|
| 42 |
+
name: 5-shot Accuracy
|
| 43 |
+
- task:
|
| 44 |
+
type: text-generation
|
| 45 |
+
name: Code Generation
|
| 46 |
+
dataset:
|
| 47 |
+
name: HumanEval
|
| 48 |
+
type: humaneval
|
| 49 |
+
metrics:
|
| 50 |
+
- type: pass@1
|
| 51 |
+
value: 67.8
|
| 52 |
+
name: Pass@1
|
| 53 |
+
---
|
| 54 |
+
|
| 55 |
+
# Helion-V1.5-XL
|
| 56 |
+
|
| 57 |
+
## Model Overview
|
| 58 |
+
|
| 59 |
+
Helion-V1.5-XL is a 16.2 billion parameter large language model designed for advanced natural language understanding and generation tasks. Built upon the foundation of Helion-V1.5, this XL variant incorporates architectural improvements, expanded training data, and enhanced optimization techniques to deliver superior performance across diverse benchmarks.
|
| 60 |
+
|
| 61 |
+
The model employs a decoder-only transformer architecture with Grouped Query Attention (GQA), RoPE positional encodings, and SwiGLU activations. Training utilized 4.5 trillion tokens from curated high-quality sources spanning web text, scientific literature, code repositories, and instruction-following datasets.
|
| 62 |
+
|
| 63 |
+
## Architecture Specifications
|
| 64 |
+
|
| 65 |
+
```
|
| 66 |
+
Model Type: Decoder-Only Transformer
|
| 67 |
+
Total Parameters: 16,247,832,576
|
| 68 |
+
Trainable Parameters: 16,247,832,576
|
| 69 |
+
Non-trainable Parameters: 0
|
| 70 |
+
|
| 71 |
+
Layers: 48
|
| 72 |
+
Attention Heads: 32 (Query)
|
| 73 |
+
Key-Value Heads: 8 (GQA)
|
| 74 |
+
Hidden Dimension: 6144
|
| 75 |
+
Intermediate Dimension: 24576
|
| 76 |
+
Head Dimension: 192
|
| 77 |
+
|
| 78 |
+
Vocabulary Size: 100,000
|
| 79 |
+
Maximum Context Length: 16,384 tokens
|
| 80 |
+
RoPE Theta: 10,000.0
|
| 81 |
+
RoPE Scaling: Linear (factor: 2.0)
|
| 82 |
+
|
| 83 |
+
Activation Function: SwiGLU
|
| 84 |
+
Normalization: RMSNorm (eps: 1e-6)
|
| 85 |
+
Attention Mechanism: Grouped Query Attention
|
| 86 |
+
Positional Encoding: Rotary Position Embedding
|
| 87 |
+
Flash Attention: Enabled (v2)
|
| 88 |
+
|
| 89 |
+
Precision: bfloat16
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
## Performance Benchmarks
|
| 93 |
+
|
| 94 |
+
### Language Understanding
|
| 95 |
+
|
| 96 |
+
| Benchmark | Metric | Helion-V1.5-XL | Helion-V1.5 | LLaMA-2-13B | Mistral-7B | GPT-3.5-Turbo |
|
| 97 |
+
|-----------|--------|----------------|-------------|-------------|------------|---------------|
|
| 98 |
+
| MMLU (5-shot) | Accuracy | **78.9** | 62.3 | 55.8 | 62.5 | 70.0 |
|
| 99 |
+
| HellaSwag (10-shot) | Accuracy | **85.7** | 79.1 | 82.3 | 81.3 | 85.5 |
|
| 100 |
+
| ARC-Challenge (25-shot) | Accuracy | **82.1** | 71.4 | 78.9 | 79.8 | 85.2 |
|
| 101 |
+
| ARC-Easy (25-shot) | Accuracy | **89.6** | 84.2 | 85.3 | 87.1 | 91.3 |
|
| 102 |
+
| PIQA (zero-shot) | Accuracy | **83.4** | 79.8 | 80.5 | 81.2 | 84.1 |
|
| 103 |
+
| WinoGrande (5-shot) | Accuracy | **77.3** | 72.1 | 73.7 | 74.8 | 78.2 |
|
| 104 |
+
| OpenBookQA (zero-shot) | Accuracy | **68.7** | 61.4 | 63.2 | 65.9 | 71.5 |
|
| 105 |
+
| BoolQ (zero-shot) | Accuracy | **84.9** | 79.6 | 81.2 | 82.4 | 86.7 |
|
| 106 |
+
|
| 107 |
+
### Reasoning and Common Sense
|
| 108 |
+
|
| 109 |
+
| Benchmark | Metric | Helion-V1.5-XL | Helion-V1.5 | LLaMA-2-13B | Mistral-7B | GPT-3.5-Turbo |
|
| 110 |
+
|-----------|--------|----------------|-------------|-------------|------------|---------------|
|
| 111 |
+
| GSM8K (8-shot) | Accuracy | **71.6** | 48.2 | 28.7 | 52.2 | 57.1 |
|
| 112 |
+
| MATH (4-shot) | Accuracy | **34.7** | 18.9 | 13.5 | 28.4 | 34.1 |
|
| 113 |
+
| BBH (3-shot) | Average | **61.8** | 49.3 | 47.2 | 56.1 | 65.4 |
|
| 114 |
+
| DROP (3-shot) | F1 Score | **69.4** | 58.7 | 62.1 | 64.8 | 73.2 |
|
| 115 |
+
| CommonsenseQA (7-shot) | Accuracy | **76.9** | 68.4 | 70.1 | 73.2 | 79.1 |
|
| 116 |
+
|
| 117 |
+
### Code Generation and Understanding
|
| 118 |
+
|
| 119 |
+
| Benchmark | Metric | Helion-V1.5-XL | Helion-V1.5 | LLaMA-2-13B | CodeLLaMA-13B | GPT-3.5-Turbo |
|
| 120 |
+
|-----------|--------|----------------|-------------|-------------|---------------|---------------|
|
| 121 |
+
| HumanEval (pass@1) | Pass Rate | **67.8** | 45.2 | 29.3 | 46.2 | 48.1 |
|
| 122 |
+
| HumanEval (pass@10) | Pass Rate | **84.3** | 67.9 | 54.1 | 71.8 | 72.5 |
|
| 123 |
+
| MBPP (pass@1) | Pass Rate | **72.4** | 53.8 | 42.7 | 58.3 | 61.2 |
|
| 124 |
+
| MBPP (pass@10) | Pass Rate | **87.6** | 74.1 | 68.4 | 79.5 | 81.9 |
|
| 125 |
+
| DS-1000 | Pass Rate | **48.9** | 32.1 | 28.4 | 41.7 | 52.3 |
|
| 126 |
+
| CodeXGLUE | Average | **81.2** | 69.4 | 65.8 | 74.6 | 83.7 |
|
| 127 |
+
|
| 128 |
+
### Multilingual Performance
|
| 129 |
+
|
| 130 |
+
| Language | FLORES-101 (BLEU) | XNLI (Accuracy) | XStoryCloze (Accuracy) |
|
| 131 |
+
|----------|-------------------|-----------------|------------------------|
|
| 132 |
+
| English | 100.0 (reference) | 89.4 | 91.2 |
|
| 133 |
+
| Spanish | 87.3 | 84.6 | 86.9 |
|
| 134 |
+
| French | 86.9 | 83.8 | 85.4 |
|
| 135 |
+
| German | 85.1 | 82.7 | 84.1 |
|
| 136 |
+
| Chinese (Simplified) | 82.4 | 81.3 | 83.7 |
|
| 137 |
+
| Japanese | 81.8 | 79.8 | 82.4 |
|
| 138 |
+
| Korean | 80.9 | 78.6 | 81.1 |
|
| 139 |
+
| Russian | 79.7 | 80.2 | 82.8 |
|
| 140 |
+
| Arabic | 77.3 | 76.4 | 78.9 |
|
| 141 |
+
| Hindi | 76.8 | 75.1 | 77.6 |
|
| 142 |
+
| Portuguese | 86.1 | 83.2 | 85.7 |
|
| 143 |
+
| Italian | 85.4 | 82.9 | 84.8 |
|
| 144 |
+
|
| 145 |
+
### Truthfulness and Safety
|
| 146 |
+
|
| 147 |
+
| Benchmark | Metric | Helion-V1.5-XL | Helion-V1.5 | LLaMA-2-13B | GPT-3.5-Turbo |
|
| 148 |
+
|-----------|--------|----------------|-------------|-------------|---------------|
|
| 149 |
+
| TruthfulQA | MC1 | **61.3** | 45.8 | 50.2 | 47.0 |
|
| 150 |
+
| TruthfulQA | MC2 | **73.8** | 62.1 | 65.4 | 64.2 |
|
| 151 |
+
| ToxiGen | Toxicity | **2.1%** | 3.8% | 4.2% | 1.9% |
|
| 152 |
+
| BOLD | Bias Score | **0.34** | 0.47 | 0.51 | 0.29 |
|
| 153 |
+
|
| 154 |
+
### Long Context Understanding
|
| 155 |
+
|
| 156 |
+
| Benchmark | Context Length | Metric | Helion-V1.5-XL | LLaMA-2-13B | GPT-3.5-Turbo |
|
| 157 |
+
|-----------|----------------|--------|----------------|-------------|---------------|
|
| 158 |
+
| SCROLLS (QuALITY) | 4K-6K | F1 | **71.4** | 62.8 | 73.9 |
|
| 159 |
+
| SCROLLS (Qasper) | 3K-5K | F1 | **68.7** | 59.3 | 71.2 |
|
| 160 |
+
| LongBench (SingleDoc QA) | 8K-12K | Accuracy | **63.2** | 51.7 | 67.8 |
|
| 161 |
+
| LongBench (MultiDoc QA) | 10K-16K | Accuracy | **58.9** | 44.3 | 63.4 |
|
| 162 |
+
|
| 163 |
+
## Training Methodology
|
| 164 |
+
|
| 165 |
+
### Dataset Composition
|
| 166 |
+
|
| 167 |
+
The training corpus consists of 4.5 trillion tokens sampled from the following sources:
|
| 168 |
+
|
| 169 |
+
| Data Source | Token Count | Percentage | Description |
|
| 170 |
+
|-------------|-------------|------------|-------------|
|
| 171 |
+
| Filtered Web Text | 2.025T | 45% | CommonCrawl filtered for quality, deduplicated |
|
| 172 |
+
| Books and Literature | 900B | 20% | Fiction, non-fiction, technical books |
|
| 173 |
+
| Code Repositories | 675B | 15% | GitHub, StackOverflow, documentation |
|
| 174 |
+
| Scientific Papers | 450B | 10% | ArXiv, PubMed, academic repositories |
|
| 175 |
+
| Instruction Data | 360B | 8% | Curated instruction-response pairs |
|
| 176 |
+
| Multilingual Corpora | 90B | 2% | Parallel texts, translations, non-English web |
|
| 177 |
+
|
| 178 |
+
### Training Infrastructure
|
| 179 |
+
|
| 180 |
+
```
|
| 181 |
+
Compute Resources: 512x NVIDIA A100 80GB GPUs
|
| 182 |
+
Total Training Time: 672 hours (28 days)
|
| 183 |
+
Framework: PyTorch 2.0.1 with FSDP
|
| 184 |
+
Distributed Strategy: Fully Sharded Data Parallel (FSDP)
|
| 185 |
+
Mixed Precision: bfloat16 with stochastic rounding
|
| 186 |
+
Communication Backend: NCCL with InfiniBand
|
| 187 |
+
|
| 188 |
+
Total FLOPs: ~8.2e24 FLOPs
|
| 189 |
+
GPU Hours: ~344,064 GPU-hours
|
| 190 |
+
Peak Memory per GPU: 72GB
|
| 191 |
+
Interconnect Bandwidth: 400 Gbps per GPU
|
| 192 |
+
```
|
| 193 |
+
|
| 194 |
+
### Optimization Configuration
|
| 195 |
+
|
| 196 |
+
```
|
| 197 |
+
Optimizer: AdamW
|
| 198 |
+
Beta1: 0.9
|
| 199 |
+
Beta2: 0.95
|
| 200 |
+
Epsilon: 1e-8
|
| 201 |
+
Weight Decay: 0.1
|
| 202 |
+
Gradient Clipping: 1.0
|
| 203 |
+
|
| 204 |
+
Learning Rate Schedule: Cosine with Warmup
|
| 205 |
+
Peak Learning Rate: 3.0e-4
|
| 206 |
+
Minimum Learning Rate: 3.0e-5
|
| 207 |
+
Warmup Steps: 2,000
|
| 208 |
+
Total Training Steps: 875,000
|
| 209 |
+
|
| 210 |
+
Batch Configuration:
|
| 211 |
+
Global Batch Size: 4,194,304 tokens
|
| 212 |
+
Micro Batch Size: 32 samples
|
| 213 |
+
Gradient Accumulation: 8 steps
|
| 214 |
+
Sequence Length: 4,096 tokens
|
| 215 |
+
|
| 216 |
+
Checkpointing:
|
| 217 |
+
Activation Checkpointing: Enabled
|
| 218 |
+
Checkpoint Interval: 5,000 steps
|
| 219 |
+
Total Checkpoints Saved: 175
|
| 220 |
+
```
|
| 221 |
+
|
| 222 |
+
### Training Stages
|
| 223 |
+
|
| 224 |
+
#### Stage 1: Pre-training (3.8T tokens)
|
| 225 |
+
- Duration: 750,000 steps
|
| 226 |
+
- Objective: Next-token prediction
|
| 227 |
+
- Data: General corpus (web, books, code, scientific)
|
| 228 |
+
- Learning Rate: Full cosine schedule
|
| 229 |
+
|
| 230 |
+
#### Stage 2: Domain Adaptation (500B tokens)
|
| 231 |
+
- Duration: 80,000 steps
|
| 232 |
+
- Objective: Continued pre-training on specialized domains
|
| 233 |
+
- Data: Enhanced code, mathematics, scientific reasoning
|
| 234 |
+
- Learning Rate: 1.0e-4 constant
|
| 235 |
+
|
| 236 |
+
#### Stage 3: Instruction Tuning (200B tokens)
|
| 237 |
+
- Duration: 45,000 steps
|
| 238 |
+
- Objective: Instruction following and task alignment
|
| 239 |
+
- Data: High-quality instruction-response pairs
|
| 240 |
+
- Learning Rate: 5.0e-5 with linear decay
|
| 241 |
+
|
| 242 |
+
## Installation and Usage
|
| 243 |
+
|
| 244 |
+
### Requirements
|
| 245 |
+
|
| 246 |
+
```bash
|
| 247 |
+
pip install torch>=2.0.0 transformers>=4.35.0 accelerate>=0.24.0
|
| 248 |
+
```
|
| 249 |
+
|
| 250 |
+
### Basic Inference
|
| 251 |
+
|
| 252 |
+
```python
|
| 253 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 254 |
+
import torch
|
| 255 |
+
|
| 256 |
+
model_id = "DeepXR/Helion-V1.5-XL"
|
| 257 |
+
|
| 258 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 259 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 260 |
+
model_id,
|
| 261 |
+
torch_dtype=torch.bfloat16,
|
| 262 |
+
device_map="auto",
|
| 263 |
+
trust_remote_code=True
|
| 264 |
+
)
|
| 265 |
+
|
| 266 |
+
prompt = "Explain the concept of quantum entanglement:"
|
| 267 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 268 |
+
|
| 269 |
+
outputs = model.generate(
|
| 270 |
+
**inputs,
|
| 271 |
+
max_new_tokens=512,
|
| 272 |
+
temperature=0.7,
|
| 273 |
+
top_p=0.9,
|
| 274 |
+
do_sample=True
|
| 275 |
+
)
|
| 276 |
+
|
| 277 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 278 |
+
```
|
| 279 |
+
|
| 280 |
+
### 4-bit Quantization
|
| 281 |
+
|
| 282 |
+
```python
|
| 283 |
+
from transformers import BitsAndBytesConfig
|
| 284 |
+
|
| 285 |
+
quantization_config = BitsAndBytesConfig(
|
| 286 |
+
load_in_4bit=True,
|
| 287 |
+
bnb_4bit_compute_dtype=torch.bfloat16,
|
| 288 |
+
bnb_4bit_use_double_quant=True,
|
| 289 |
+
bnb_4bit_quant_type="nf4"
|
| 290 |
+
)
|
| 291 |
+
|
| 292 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 293 |
+
model_id,
|
| 294 |
+
quantization_config=quantization_config,
|
| 295 |
+
device_map="auto"
|
| 296 |
+
)
|
| 297 |
+
```
|
| 298 |
+
|
| 299 |
+
### Chat Format
|
| 300 |
+
|
| 301 |
+
```python
|
| 302 |
+
conversation = [
|
| 303 |
+
{"role": "system", "content": "You are a helpful assistant."},
|
| 304 |
+
{"role": "user", "content": "What are the implications of the P vs NP problem?"}
|
| 305 |
+
]
|
| 306 |
+
|
| 307 |
+
prompt = tokenizer.apply_chat_template(conversation, tokenize=False, add_generation_prompt=True)
|
| 308 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 309 |
+
outputs = model.generate(**inputs, max_new_tokens=512)
|
| 310 |
+
```
|
| 311 |
+
|
| 312 |
+
## Hardware Requirements
|
| 313 |
+
|
| 314 |
+
### Memory Requirements (Inference)
|
| 315 |
+
|
| 316 |
+
| Precision | Memory Required | Recommended GPU |
|
| 317 |
+
|-----------|----------------|-----------------|
|
| 318 |
+
| FP32 | 64.9 GB | 2x A100 80GB |
|
| 319 |
+
| BF16/FP16 | 32.5 GB | A100 40GB, A6000 |
|
| 320 |
+
| INT8 | 16.8 GB | RTX 4090, A40 |
|
| 321 |
+
| INT4 (NF4) | 9.2 GB | RTX 3090, RTX 4080 |
|
| 322 |
+
|
| 323 |
+
### Inference Performance
|
| 324 |
+
|
| 325 |
+
| Hardware | Precision | Tokens/Second | Batch Size |
|
| 326 |
+
|----------|-----------|---------------|------------|
|
| 327 |
+
| A100 80GB | BF16 | 47.3 | 1 |
|
| 328 |
+
| A100 80GB | INT8 | 89.6 | 1 |
|
| 329 |
+
| A100 80GB | INT4 | 134.2 | 1 |
|
| 330 |
+
| H100 80GB | BF16 | 78.1 | 1 |
|
| 331 |
+
| H100 80GB | INT4 | 218.7 | 1 |
|
| 332 |
+
|
| 333 |
+
## Limitations and Biases
|
| 334 |
+
|
| 335 |
+
### Known Limitations
|
| 336 |
+
|
| 337 |
+
1. **Knowledge Cutoff**: Training data extends through January 2024. The model lacks awareness of subsequent events.
|
| 338 |
+
|
| 339 |
+
2. **Hallucination**: The model may generate plausible but factually incorrect information with high confidence.
|
| 340 |
+
|
| 341 |
+
3. **Arithmetic Precision**: While improved over baseline, complex multi-step mathematical computations may contain errors.
|
| 342 |
+
|
| 343 |
+
4. **Context Length Degradation**: Performance decreases beyond 12,000 tokens despite 16,384 token capacity.
|
| 344 |
+
|
| 345 |
+
5. **Specialized Domain Knowledge**: May lack depth in highly specialized technical, medical, or legal domains.
|
| 346 |
+
|
| 347 |
+
6. **Code Execution**: Generated code requires validation and testing before deployment.
|
| 348 |
+
|
| 349 |
+
### Bias Analysis
|
| 350 |
+
|
| 351 |
+
The model has been evaluated for biases across multiple dimensions:
|
| 352 |
+
|
| 353 |
+
- **Gender Bias**: BOLD gender bias score of 0.34 (lower is better)
|
| 354 |
+
- **Racial Bias**: Demonstrates residual stereotypical associations in certain contexts
|
| 355 |
+
- **Geographic Bias**: Western-centric knowledge distribution
|
| 356 |
+
- **Language Bias**: Performance degrades for lower-resource languages
|
| 357 |
+
|
| 358 |
+
Mitigation strategies include balanced dataset sampling, bias-aware fine-tuning, and constitutional AI principles during alignment.
|
| 359 |
+
|
| 360 |
+
## Evaluation Methodology
|
| 361 |
+
|
| 362 |
+
All benchmarks were evaluated using the Language Model Evaluation Harness (lm-evaluation-harness) with standardized few-shot settings. Code evaluation used the standard HumanEval and MBPP test suites with temperature 0.2 sampling. Multilingual benchmarks employed zero-shot evaluation for consistency.
|
| 363 |
+
|
| 364 |
+
## License
|
| 365 |
+
|
| 366 |
+
This model is released under the Apache License 2.0.
|
| 367 |
+
|
| 368 |
+
```
|
| 369 |
+
Copyright 2025 DeepXR
|
| 370 |
+
|
| 371 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 372 |
+
you may not use this file except in compliance with the License.
|
| 373 |
+
You may obtain a copy of the License at
|
| 374 |
+
|
| 375 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 376 |
+
|
| 377 |
+
Unless required by applicable law or agreed to in writing, software
|
| 378 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 379 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 380 |
+
See the License for the specific language governing permissions and
|
| 381 |
+
limitations under the License.
|
| 382 |
+
```
|
| 383 |
+
|
| 384 |
+
## Citation
|
| 385 |
+
|
| 386 |
+
```bibtex
|
| 387 |
+
@misc{helion-v15-xl-2024,
|
| 388 |
+
title={Helion-V1.5-XL: A 16B Parameter Instruction-Tuned Language Model},
|
| 389 |
+
author={DeepXR Research Team},
|
| 390 |
+
year={2025},
|
| 391 |
+
publisher={HuggingFace},
|
| 392 |
+
url={https://huggingface.co/DeepXR/Helion-V1.5-XL}
|
| 393 |
+
}
|
| 394 |
+
```
|
| 395 |
+
|
| 396 |
+
## Acknowledgments
|
| 397 |
+
|
| 398 |
+
Training infrastructure provided by advanced cloud computing resources. Dataset curation benefited from open-source contributions including The Pile, RedPajama, and community-curated instruction datasets.
|