Instructions to use robertmyers/bpt-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use robertmyers/bpt-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="robertmyers/bpt-sft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("robertmyers/bpt-sft") model = AutoModelForCausalLM.from_pretrained("robertmyers/bpt-sft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use robertmyers/bpt-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "robertmyers/bpt-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "robertmyers/bpt-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/robertmyers/bpt-sft
- SGLang
How to use robertmyers/bpt-sft 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 "robertmyers/bpt-sft" \ --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": "robertmyers/bpt-sft", "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 "robertmyers/bpt-sft" \ --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": "robertmyers/bpt-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use robertmyers/bpt-sft with Docker Model Runner:
docker model run hf.co/robertmyers/bpt-sft
Commit History
-
Upload pytorch_model.bin.index.json
89f40b0 -
Upload pytorch_model-00003-of-00003.bin
11440dc -
Upload config.json
c5e131c -
Upload pytorch_model-00001-of-00003.bin
28a595e -
Upload generation_config.json
4717688 -
Upload pytorch_model-00002-of-00003.bin
450b5b8 -
Upload rng_state_3.pth
d3caa00
-
Upload pytorch_model.bin.index.json
8bf232f -
Upload pytorch_model-00003-of-00003.bin
f2a9e25 -
Upload config.json
be73ac4 -
Upload pytorch_model-00001-of-00003.bin
6185a46 -
Upload pytorch_model-00002-of-00003.bin
4a13a57
-
Upload pytorch_model.bin.index.json
8af00d1 -
Upload pytorch_model-00003-of-00003.bin
54af5df -
Upload config.json
ba7fc52 -
Upload pytorch_model-00001-of-00003.bin
9852365 -
Upload pytorch_model-00002-of-00003.bin
3d7160d -
Upload pytorch_model.bin.index.json
bdba5e0 -
Upload pytorch_model-00003-of-00003.bin
abf1b5a -
Upload config.json
738dcf3 -
Upload pytorch_model-00001-of-00003.bin
5455c61 -
Upload pytorch_model-00002-of-00003.bin
6ab7d08 -
Delete pytorch_model.bin
c1f8076 -
Delete config.json
649d37b -
Upload pytorch_model.bin
d2433d1 -
Upload config.json
4d41090 -
Delete pytorch_model.bin.index.json
4188185 -
Delete pytorch_model-00003-of-00003.bin
80c9eb5 -
Delete pytorch_model-00002-of-00003.bin
4fc410b -
Delete pytorch_model-00001-of-00003.bin
2be227f -
Delete config.json
b514a98
-
Update config.json
5c272f1 -
Upload special_tokens_map.json
148f35a -
Upload tokenizer_config.json
3d7e8d1 -
Upload vocab.json
5c69269 -
Upload config.json
1f3dce7 -
Upload merges.txt
794727c -
Upload pytorch_model.bin.index.json
b4d74f0 -
Upload pytorch_model-00003-of-00003.bin
f3f0280 -
Upload config.json
22f777d -
Upload pytorch_model-00001-of-00003.bin
c32af28 -
Upload pytorch_model-00002-of-00003.bin
88cc8f0 -
Upload pytorch_model-00002-of-00003.bin
da106cd -
Delete pytorch_model.bin.index.json
16e723c -
Delete .gitattributes
fc9db1a -
Delete config.json
42ef81e -
Delete pytorch_model-00002-of-00002.bin
70fc826 -
Delete pytorch_model-00001-of-00002.bin
4c0c109
-
v0.4.2
robc4b7bca -
v0.4.1
robd797102