Instructions to use dkleczek/papuGaPT2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dkleczek/papuGaPT2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dkleczek/papuGaPT2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dkleczek/papuGaPT2") model = AutoModelForCausalLM.from_pretrained("dkleczek/papuGaPT2") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dkleczek/papuGaPT2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dkleczek/papuGaPT2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dkleczek/papuGaPT2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dkleczek/papuGaPT2
- SGLang
How to use dkleczek/papuGaPT2 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 "dkleczek/papuGaPT2" \ --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": "dkleczek/papuGaPT2", "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 "dkleczek/papuGaPT2" \ --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": "dkleczek/papuGaPT2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use dkleczek/papuGaPT2 with Docker Model Runner:
docker model run hf.co/dkleczek/papuGaPT2
Ctrl+K
- allegro_reviews
- ckpt-7000
- 737 Bytes
- 13 kB
- 24 Bytes
- 864 Bytes
- 155 Bytes
- 197 Bytes
- 40 Bytes xet
- 61.2 kB xet
- 282 kB xet
- 447 kB xet
- 40 Bytes xet
- 147 kB xet
- 147 kB xet
- 9.51 MB xet
- 40 Bytes xet
- 40 Bytes xet
- 40 Bytes xet
- 40 Bytes xet
- 17.4 MB xet
- 221 kB xet
- 180 Bytes xet
- 180 Bytes xet
- 40 Bytes xet
- 1.03 MB xet
- 514 kB xet
- 8.31 MB xet
- 40 Bytes xet
- 1.03 MB xet
- 11.4 MB xet
- 13.5 MB xet
- 13.5 MB xet
- 498 MB xet
- 72.8 kB
- 19.3 kB
- 10.9 kB
- 547 kB
- 402 kB
- 37 kB
- 686 Bytes
- 624 Bytes
- 510 MB xet
- 27.5 kB
- 26.7 kB
- 26.3 kB
- 27.6 kB
- 32.5 kB
- 90 Bytes
- 1.54 MB