Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
English
gpt_bigcode
code
text-generation-inference
Instructions to use HuggingFaceH4/starchat-alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFaceH4/starchat-alpha with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HuggingFaceH4/starchat-alpha")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HuggingFaceH4/starchat-alpha") model = AutoModelForCausalLM.from_pretrained("HuggingFaceH4/starchat-alpha") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use HuggingFaceH4/starchat-alpha with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HuggingFaceH4/starchat-alpha" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceH4/starchat-alpha", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HuggingFaceH4/starchat-alpha
- SGLang
How to use HuggingFaceH4/starchat-alpha 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 "HuggingFaceH4/starchat-alpha" \ --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": "HuggingFaceH4/starchat-alpha", "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 "HuggingFaceH4/starchat-alpha" \ --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": "HuggingFaceH4/starchat-alpha", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HuggingFaceH4/starchat-alpha with Docker Model Runner:
docker model run hf.co/HuggingFaceH4/starchat-alpha
habibi
1
#29 opened over 2 years ago
by deleted
Adding Evaluation Results
#28 opened over 2 years ago
by
leaderboard-pr-bot
Incomplete Output even with max_new_tokens
#26 opened over 2 years ago
by
vermanic
Update README.md
#25 opened almost 3 years ago
by
TRaw
Evaluations on LM Harness
#24 opened almost 3 years ago
by
dshin01
Error while loading the model using safe tensors
#22 opened almost 3 years ago
by
tasheer10
Getting expected maxsize to be an integer or None
#21 opened almost 3 years ago
by
satsat
Getting ValueError while loading 'HuggingFaceH4/starchat-alpha' model in pipeline
#20 opened almost 3 years ago
by
sraj5162
Getting Cuda runtime error when running the get started code snippet.
#19 opened almost 3 years ago
by
tommerraz
Update README.md
#18 opened almost 3 years ago
by
saattrupdan
Request to Train Chat LM Model with our English-Sinhala Translation Dataset
#16 opened almost 3 years ago
by
zaanind
ggml demo
#15 opened almost 3 years ago
by
matthoffner
How to deploy this on Vertex AI?
#14 opened almost 3 years ago
by
ravra
NotImplementedError: Cannot copy out of meta tensor; no data!
#13 opened almost 3 years ago
by
anujsahani01
max new tokens error despite setting lower size, The size of tensor a (8192) must match the size of tensor b (8193) at non-singleton dimension 2
#12 opened almost 3 years ago
by
LaZy3138
Text Truncation even with increase in max_new_tokens
1
#11 opened almost 3 years ago
by
vivekam101
what is the Humaneval metric for starchat?
#10 opened almost 3 years ago
by
zliendo
Has anybody tried the inference endpoints of this model
5
#9 opened almost 3 years ago
by
adityasharma2695
CPU bound when loaded on GPU?
2
#6 opened about 3 years ago
by
RecViking
Can you share the server code for local deploy?
👍 2
#4 opened about 3 years ago
by
merlinarer
General tips around inference speed?
👍 1
6
#3 opened about 3 years ago
by
jloganolson
Model doesn't end/terminate generation: Need to modify EOS token
❤️ 2
9
#2 opened about 3 years ago
by
eugenesiow