Instructions to use TajMahaladeen/pokemon_gptj with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TajMahaladeen/pokemon_gptj with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TajMahaladeen/pokemon_gptj")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TajMahaladeen/pokemon_gptj") model = AutoModelForCausalLM.from_pretrained("TajMahaladeen/pokemon_gptj", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TajMahaladeen/pokemon_gptj with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TajMahaladeen/pokemon_gptj" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TajMahaladeen/pokemon_gptj", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TajMahaladeen/pokemon_gptj
- SGLang
How to use TajMahaladeen/pokemon_gptj 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 "TajMahaladeen/pokemon_gptj" \ --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": "TajMahaladeen/pokemon_gptj", "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 "TajMahaladeen/pokemon_gptj" \ --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": "TajMahaladeen/pokemon_gptj", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TajMahaladeen/pokemon_gptj with Docker Model Runner:
docker model run hf.co/TajMahaladeen/pokemon_gptj
Download pytorch_model.bin from TajMahaladeen/pokemon_gptj: direct link, hf CLI and curl.
- Browser
- Download file 12.1 GB
-
https://huggingface.co/TajMahaladeen/pokemon_gptj/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://TajMahaladeen/pokemon_gptj/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/TajMahaladeen/pokemon_gptj/resolve/main/pytorch_model.bin
12.1 GB
- Xet hash:
- 85947d38882e7b7782c0cbef1ece3434db64b21152a03792463f1b0d54c1528d
- Size of remote file:
- 12.1 GB
- SHA256:
- 9eeeca50b9f47a1349aa77e3cc8d6033b88811aeeee9d6bf435eb6675aee13b2
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.