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.9f012bc
-
Training in progress, step 16000
bb8b75f -
Training in progress, step 15500
8a5cb94 -
Training in progress, step 15000
c07d2d2 -
Training in progress, step 14500
3a34104 -
Training in progress, step 14000
4c1030b -
Training in progress, step 13500
8e8b058 -
Training in progress, step 13000
e009e33 -
Training in progress, step 12500
1ae9b6d -
Training in progress, step 12000
4dd14fc -
Training in progress, step 11500
17fd2b8 -
Training in progress, step 11000
a4d1848 -
Training in progress, step 10500
8e4380c -
Training in progress, step 10000
619bc54 -
Training in progress, step 9500
c6b37bc -
Training in progress, step 9000
18996ee -
Training in progress, step 8500
00de235 -
Training in progress, step 8000
b05e46b -
Training in progress, step 7500
d4d6b88 -
Training in progress, step 7000
f503a35 -
Training in progress, step 6500
41f8af2 -
Training in progress, step 6000
ec4b121 -
Training in progress, step 5500
eca3da1 -
Training in progress, step 5000
ba01872 -
Training in progress, step 4500
ae7113d -
Training in progress, step 4000
8f0a36c -
Training in progress, step 3500
5ca0cbf -
Training in progress, step 3000
c2c3985 -
Training in progress, step 2500
afe9d2c -
Training in progress, step 2000
4904056 -
Training in progress, step 1500
a9eee73 -
Training in progress, step 1000
fa3408e -
Training in progress, step 500
21385c1 -
initial commit
9f4c64b