Text Generation
Transformers
PyTorch
Safetensors
English
gpt_bigcode
trl
rlhf
text-generation-inference
Instructions to use vwxyzjn/starcoderbase-triviaqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vwxyzjn/starcoderbase-triviaqa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="vwxyzjn/starcoderbase-triviaqa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("vwxyzjn/starcoderbase-triviaqa") model = AutoModelForCausalLM.from_pretrained("vwxyzjn/starcoderbase-triviaqa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use vwxyzjn/starcoderbase-triviaqa with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vwxyzjn/starcoderbase-triviaqa" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vwxyzjn/starcoderbase-triviaqa", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/vwxyzjn/starcoderbase-triviaqa
- SGLang
How to use vwxyzjn/starcoderbase-triviaqa 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 "vwxyzjn/starcoderbase-triviaqa" \ --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": "vwxyzjn/starcoderbase-triviaqa", "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 "vwxyzjn/starcoderbase-triviaqa" \ --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": "vwxyzjn/starcoderbase-triviaqa", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use vwxyzjn/starcoderbase-triviaqa with Docker Model Runner:
docker model run hf.co/vwxyzjn/starcoderbase-triviaqa
Commit History
-
Update README.md
2984046 -
Create README.md
3ec9262
-
Delete pytorch_model-00007-of-00007.bin
407ffb3 -
Delete pytorch_model-00006-of-00007.bin
8357155 -
Delete pytorch_model-00005-of-00007.bin
bf45c95 -
Delete pytorch_model-00004-of-00007.bin
749519a -
Delete pytorch_model-00003-of-00007.bin
3b05263 -
Delete pytorch_model-00002-of-00007.bin
a83ba26 -
Delete pytorch_model-00001-of-00007.bin
d1d2d44 -
Upload tokenizer
733eb4a -
Upload GPTBigCodeForCausalLM
9acceb3 -
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (c3a328df8bc9818aef10339c69b8eafd5b1ad74e) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>64f541d
-
Upload tokenizer
dba36b1
-
Upload GPTBigCodeForCausalLM
71919b9 -
initial commit
359ef75