Text Generation
Transformers
PyTorch
Safetensors
English
custom_gpt
GPT
GPT-3 Small
GPT-3 Medium
GPT-3 Large
GPT-3 XL
GPT-3 2.7B
GPT-3 6.7B
GPT-3 13B
GPT-3 175B
GPT-3
GPT-2
GPT-2 124M
mit
HuggingFace
fineweb-edu
Decoder-Only
custom_code
Instructions to use samkeet/GPT_124M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use samkeet/GPT_124M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="samkeet/GPT_124M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("samkeet/GPT_124M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use samkeet/GPT_124M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "samkeet/GPT_124M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "samkeet/GPT_124M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/samkeet/GPT_124M
- SGLang
How to use samkeet/GPT_124M 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 "samkeet/GPT_124M" \ --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": "samkeet/GPT_124M", "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 "samkeet/GPT_124M" \ --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": "samkeet/GPT_124M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use samkeet/GPT_124M with Docker Model Runner:
docker model run hf.co/samkeet/GPT_124M
Commit History
-
Update README.md
Verified signature3fb9272
-
GitHub Link
Verified signature387ea7d
-
Update README.md
Verified signature48107dd -
Update README.md
Verified signature9e5d1a9 -
Upload GPT124MTextGenerationPipeline
Verified signature0f3e6c6 -
Upload model
Verified signature139e34a
-
Upload GPT124MTextGenerationPipeline
Verified signature9e8eed8 -
Upload model
Verified signatureac791a6 -
Update README.md
Verified signatureb8f142b -
Update README.md
Verified signaturef26cad0 -
Update README.md
Verified signature778291b -
Upload GPT124MTextGenerationPipeline
Verified signatured4050a7 -
Upload model
Verified signature13e93c3 -
Upload GPT124MTextGenerationPipeline
Verified signature7f6b57d -
Upload model
Verified signature92aa6b4 -
Upload GPT124MTextGenerationPipeline
Verified signature69aa93e -
Upload model
Verified signaturef6c03c1 -
Upload GPT124MTextGenerationPipeline
Verified signature7c0eb4f -
Upload model
Verified signature063ab73 -
Upload GPT124MTextGenerationPipeline
Verified signaturef7bf875 -
Upload model
Verified signature8918c26 -
Upload GPT124MTextGenerationPipeline
Verified signaturea65955a -
Upload model
Verified signature89705f3 -
Upload GPT124MTextGenerationPipeline
Verified signaturef2e97bf -
Upload model
Verified signature1d7f089 -
Update README.md
Verified signature5c2d7dc -
Update README.md
Verified signaturebe7deb0 -
Update README.md
Verified signature18e3ca6 -
Update README.md
Verified signaturefa72749 -
Update README.md
Verified signature1a24421 -
Update README.md
Verified signaturec19925f -
Adding `safetensors` variant of this model (#3)
Verified signature- Adding `safetensors` variant of this model (f7707f04ae9ab400eccb9067989a70e7a3a5fbd9) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>b6a033d -
Adding `safetensors` variant of this model (#4)
Verified signature- Adding `safetensors` variant of this model (fb8d5fde3d7340cea2a3f0b701ea256177bdb425) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>33d543b -
Update README.md
Verified signatureb45a6fe -
Upload GPT124MTextGenerationPipeline
Verified signature5da0edf -
Upload model
Verified signatureba2c622
-
Upload GPT124MTextGenerationPipeline
Verified signature9e367c4 -
Upload tokenizer
Verified signature4f15805 -
Upload model
Verified signatured85e589 -
Update README.md
Verified signature53e1b90 -
Upload tokenizer
Verified signatureab8d26b -
Upload tokenizer
Verified signature99dddda -
Upload tokenizer
Verified signature5162bae -
Upload tokenizer
Verified signatured587bda -
Upload GPT124MTextGenerationPipeline
Verified signature1f0a881 -
Upload tokenizer
Verified signatureb24e7f9 -
Upload model
Verified signature0f81fb4 -
Upload GPT124MTextGenerationPipeline
Verified signatureb4ddd5a -
Upload model
Verified signatureabaadb8 -
Upload GPT124MTextGenerationPipeline
Verified signature63a5eda