Text Generation
Transformers
PyTorch
gpt2
CodeGPT-small-py
hearthstone
Eval Results (legacy)
text-generation-inference
Instructions to use dvitel/h0-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dvitel/h0-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dvitel/h0-1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dvitel/h0-1") model = AutoModelForCausalLM.from_pretrained("dvitel/h0-1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dvitel/h0-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dvitel/h0-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dvitel/h0-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dvitel/h0-1
- SGLang
How to use dvitel/h0-1 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 "dvitel/h0-1" \ --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": "dvitel/h0-1", "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 "dvitel/h0-1" \ --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": "dvitel/h0-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use dvitel/h0-1 with Docker Model Runner:
docker model run hf.co/dvitel/h0-1
Commit History
-
Update README.md
91229a3 -
Update README.md
471614f -
Update README.md
654259a -
update model card README.md
0a3212f -
End of training
2b162f6 -
Training in progress, step 25600
343839d -
Training in progress, step 24000
4ae0991 -
Training in progress, step 22400
66bbd27
-
Training in progress, step 20800
6709ebd -
Training in progress, step 19200
4bc8e21 -
Training in progress, step 17600
e9b8b37 -
Training in progress, step 16000
54915d8 -
Training in progress, step 14400
6eb6fce -
Training in progress, step 12800
62441b8 -
Training in progress, step 11200
68ab0b8 -
Training in progress, step 9600
415ac03 -
Training in progress, step 8000
7b69dc8 -
Training in progress, step 6400
0fd778d -
Training in progress, step 4800
574cbae -
Training in progress, step 3200
4b2ade6 -
Training in progress, step 1600
35b62db -
initial commit
7e6d0f2