Text Generation
Transformers
Safetensors
llama
research
code
mathematics
reasoning
multilingual
long-context
custom_code
text-generation-inference
Run this model with HF Jobs
Run DeepXR/Helion-V2.5-Rnd on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/DeepXR/Helion-V2.5-Rnd. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/DeepXR/Helion-V2.5-Rnd on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/DeepXR/Helion-V2.5-Rnd. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/DeepXR/Helion-V2.5-Rnd. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use DeepXR/Helion-V2.5-Rnd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepXR/Helion-V2.5-Rnd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DeepXR/Helion-V2.5-Rnd", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DeepXR/Helion-V2.5-Rnd", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("DeepXR/Helion-V2.5-Rnd", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DeepXR/Helion-V2.5-Rnd with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DeepXR/Helion-V2.5-Rnd" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepXR/Helion-V2.5-Rnd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DeepXR/Helion-V2.5-Rnd
- SGLang
How to use DeepXR/Helion-V2.5-Rnd 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-V2.5-Rnd" \ --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": "DeepXR/Helion-V2.5-Rnd", "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 "DeepXR/Helion-V2.5-Rnd" \ --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": "DeepXR/Helion-V2.5-Rnd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DeepXR/Helion-V2.5-Rnd with Docker Model Runner:
docker model run hf.co/DeepXR/Helion-V2.5-Rnd
Create Dockerfile
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151# Multi-stage build for DeepXR/Helion-2.5-Rnd# Optimized for production inference with vLLM
# Stage 1: Base image with CUDA and PythonFROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04 AS base
# Set environment variablesENV DEBIAN_FRONTEND=noninteractive \ PYTHONUNBUFFERED=1 \ CUDA_HOME=/usr/local/cuda \ TORCH_CUDA_ARCH_LIST="7.0 7.5 8.0 8.6 8.9 9.0+PTX" \ FORCE_CUDA=1 \ MAX_JOBS=8
# Install system dependenciesRUN apt-get update && apt-get install -y \ python3.10 \ python3-pip \ python3.10-dev \ git \ wget \ curl \ vim \ build-essential \ cmake \ ninja-build \ ccache \ libssl-dev \ libffi-dev \ libjpeg-dev \ libpng-dev \ libgomp1 \ && rm -rf /var/lib/apt/lists/*
# Update pip and install build toolsRUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel
# Stage 2: Build dependenciesFROM base AS builder
WORKDIR /build
# Install PyTorch with CUDA supportRUN pip install --no-cache-dir \ torch==2.2.0 \ torchvision==0.17.0 \ torchaudio==2.2.0 \ --index-url https://download.pytorch.org/whl/cu121
# Install vLLM and core dependenciesRUN pip install --no-cache-dir \ vllm==0.3.3 \ transformers==4.40.0 \ tokenizers==0.15.2 \ sentencepiece==0.2.0 \ accelerate==0.28.0 \ bitsandbytes==0.43.0 \ safetensors==0.4.2 \ huggingface-hub==0.21.4
# Install additional ML librariesRUN pip install --no-cache-dir \ numpy==1.26.4 \ scipy==1.12.0 \ pandas==2.2.1 \ scikit-learn==1.4.1 \ pydantic==2.6.4 \ fastapi==0.110.0 \ uvicorn[standard]==0.29.0 \ aiohttp==3.9.3 \ ray[default]==2.10.0
# Install monitoring and optimization toolsRUN pip install --no-cache-dir \ prometheus-client==0.20.0 \ gputil==1.4.0 \ psutil==5.9.8 \ py-cpuinfo==9.0.0 \ pynvml==11.5.0
# Stage 3: Final runtime imageFROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
# Copy environment variablesENV DEBIAN_FRONTEND=noninteractive \ PYTHONUNBUFFERED=1 \ CUDA_HOME=/usr/local/cuda \ MODEL_NAME=DeepXR/Helion-2.5-Rnd \ MODEL_PATH=/models/helion \ PORT=8000 \ HOST=0.0.0.0 \ TENSOR_PARALLEL_SIZE=2 \ MAX_MODEL_LEN=131072 \ GPU_MEMORY_UTILIZATION=0.95 \ WORKERS=1
# Install runtime dependencies onlyRUN apt-get update && apt-get install -y \ python3.10 \ python3-pip \ curl \ vim \ libgomp1 \ && rm -rf /var/lib/apt/lists/*
# Copy Python packages from builderCOPY --from=builder /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packagesCOPY --from=builder /usr/local/bin /usr/local/bin
# Create application directoryWORKDIR /app
# Create necessary directoriesRUN mkdir -p /models/helion /app/inference /app/logs /app/cache
# Copy inference codeCOPY ./inference /app/inferenceCOPY ./model_config.yaml /app/COPY ./config.json /app/
# Set permissionsRUN chmod +x /app/inference/*.py
# Create non-root user for securityRUN useradd -m -u 1000 helion && \ chown -R helion:helion /app /models
USER helion
# Health checkHEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ CMD curl -f http://localhost:${PORT}/health || exit 1
# Expose portsEXPOSE 8000 8001 8002
# Set default commandCMD ["python3", "-m", "inference.server", \ "--model", "${MODEL_PATH}", \ "--host", "${HOST}", \ "--port", "${PORT}", \ "--tensor-parallel-size", "${TENSOR_PARALLEL_SIZE}", \ "--max-model-len", "${MAX_MODEL_LEN}", \ "--gpu-memory-utilization", "${GPU_MEMORY_UTILIZATION}"]
# LabelsLABEL maintainer="DeepXR Team" \ version="2.5.0-rnd" \ description="Helion-2.5 Research & Development Model - Advanced Language Model" \ model="DeepXR/Helion-2.5-Rnd" \ license="Apache-2.0"DockerfileAdded+151