Instructions to use crumb/gpt2023 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use crumb/gpt2023 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="crumb/gpt2023")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("crumb/gpt2023") model = AutoModelForCausalLM.from_pretrained("crumb/gpt2023", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use crumb/gpt2023 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "crumb/gpt2023" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "crumb/gpt2023", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/crumb/gpt2023
- SGLang
How to use crumb/gpt2023 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 "crumb/gpt2023" \ --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": "crumb/gpt2023", "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 "crumb/gpt2023" \ --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": "crumb/gpt2023", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use crumb/gpt2023 with Docker Model Runner:
docker model run hf.co/crumb/gpt2023
Commit History
-
Adding Evaluation Results (#2)
- Adding Evaluation Results (73a9837e6a8ef72341d47ada475059f0aa93ea79) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>e7025b0
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (3105c3d50a0950f7f7460a2cfa793616b823f606) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>e3620b5
-
Update README.md
dd2ef0f -
Update README.md
47ffd5c -
Update README.md
6a282da -
Update README.md
0ef3453 -
Update README.md
3f85867 -
Update README.md
354042f -
Update README.md
3967fcb -
Update README.md
611b05a -
Update README.md
d94f2f7 -
Update README.md
3f634b2 -
Update README.md
d30d2cd -
Update README.md
a359d4b -
Update README.md
37dc48d -
Update README.md
6c690e6 -
Update README.md
11ed114 -
Update README.md
4b77f6b -
Update README.md
421585d -
Update README.md
d9ce65c -
Update README.md
6c94017 -
Update README.md
89fea6a -
Update README.md
6bf65a1 -
Update README.md
78d73e0 -
Update README.md
1f532c5 -
Create README.md
536b988 -
Upload tokenizer
4b390b4 -
Upload model
f552054 -
initial commit
efb72c9