Instructions to use augustocsc/gpt-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use augustocsc/gpt-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="augustocsc/gpt-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("augustocsc/gpt-base") model = AutoModelForCausalLM.from_pretrained("augustocsc/gpt-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use augustocsc/gpt-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "augustocsc/gpt-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "augustocsc/gpt-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/augustocsc/gpt-base
- SGLang
How to use augustocsc/gpt-base 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 "augustocsc/gpt-base" \ --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": "augustocsc/gpt-base", "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 "augustocsc/gpt-base" \ --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": "augustocsc/gpt-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use augustocsc/gpt-base with Docker Model Runner:
docker model run hf.co/augustocsc/gpt-base
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.b559766
-
Training in progress, step 24000
673ebaf -
Training in progress, step 23500
b575032 -
Training in progress, step 23000
fb4b6e0 -
Training in progress, step 22500
cbbf760 -
Training in progress, step 22000
4734405 -
Training in progress, step 21500
9d63ea3 -
Training in progress, step 21000
8ce4c93 -
Training in progress, step 20500
52a5988 -
Training in progress, step 20000
b53483a -
Training in progress, step 19500
6290a68 -
Training in progress, step 19000
a7e8b77 -
Training in progress, step 18500
2fbbb6d -
Training in progress, step 18000
7b0f0c2 -
Training in progress, step 17500
2160a59 -
Training in progress, step 17000
c6398bb -
Training in progress, step 16500
13450a1 -
Training in progress, step 16000
8cff79e -
Training in progress, step 15500
42a131d -
Training in progress, step 15000
c982771 -
Training in progress, step 14500
04a4232 -
Training in progress, step 14000
594648b -
Training in progress, step 13500
232c37e -
Training in progress, step 13000
5f5ff4d -
Training in progress, step 12500
ab35456 -
Training in progress, step 12000
f8ff0a7 -
Training in progress, step 11500
4713988 -
Training in progress, step 11000
f88532d -
Training in progress, step 10500
608339e -
Training in progress, step 10000
1673310 -
Training in progress, step 9500
ab3a2b2 -
Training in progress, step 9000
b74572c -
Training in progress, step 8500
4041c24 -
Training in progress, step 8000
616ade2 -
Training in progress, step 7500
f98979f -
Training in progress, step 7000
ac5783b -
Training in progress, step 6500
7c6f201 -
Training in progress, step 6000
6a81eac -
Training in progress, step 5500
a74b4ff -
Training in progress, step 5000
6879b5e -
Training in progress, step 4500
c146ca8 -
Training in progress, step 4000
ca75c37 -
Training in progress, step 3500
8f7e530 -
Training in progress, step 3000
a14b3c1 -
Training in progress, step 2500
bcf1bc0 -
Training in progress, step 2000
28cc061 -
Training in progress, step 1500
e76fa37 -
Training in progress, step 1000
8b709f1 -
Training in progress, step 500
2d265d5
-
Training in progress, step 16000
bb8b75f