1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4# Load model and tokenizer
5model_name = "DeepXR/Helion-V1.5"
6tokenizer = AutoTokenizer.from_pretrained(model_name)
7model = AutoModelForCausalLM.from_pretrained(
8 model_name,
9 torch_dtype=torch.bfloat16,
10 device_map="auto"
11)
12
13# Prepare messages
14messages = [
15 {"role": "user", "content": "Explain machine learning in simple terms"}
16]
17
18# Apply chat template
19input_ids = tokenizer.apply_chat_template(
20 messages,
21 add_generation_prompt=True,
22 return_tensors="pt"
23).to(model.device)
24
25# Generate response
26output = model.generate(
27 input_ids,
28 max_new_tokens=512,
29 temperature=0.7,
30 top_p=0.9,
31 do_sample=True
32)
33
34response = tokenizer.decode(output[0][input_ids.shape[1]:], skip_special_tokens=True)
35print(response)
1docker run --gpus all --shm-size 1g -p 8080:80 \
2 ghcr.io/huggingface/text-generation-inference:latest \
3 --model-id DeepXR/Helion-V1.5 \
4 --max-input-length 3584 \
5 --max-total-tokens 4096
1from vllm import LLM, SamplingParams
2
3llm = LLM(model="DeepXR/Helion-V1.5")
4sampling_params = SamplingParams(temperature=0.7, top_p=0.9, max_tokens=512)
5
6prompts = ["Explain quantum computing"]
7outputs = llm.generate(prompts, sampling_params)
8
9for output in outputs:
10 print(output.outputs[0].text)
1from langchain.llms import HuggingFacePipeline
2from transformers import pipeline
3
4pipe = pipeline(
5 "text-generation",
6 model="DeepXR/Helion-V1.5",
7 max_new_tokens=512
8)
9
10llm = HuggingFacePipeline(pipeline=pipe)
11response = llm("What is artificial intelligence?")
The model may exhibit biases present in the training data. We've implemented:
1@misc{helion-v1.5-2024,
2 author = {DeepXR},
3 title = {Helion-V1.5: Enhanced Conversational AI},
4 year = {2025},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/DeepXR/Helion-V1.5}
7}