Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use ninagroot/GPT2-705-RUN1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ninagroot/GPT2-705-RUN1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ninagroot/GPT2-705-RUN1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ninagroot/GPT2-705-RUN1") model = AutoModelForCausalLM.from_pretrained("ninagroot/GPT2-705-RUN1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ninagroot/GPT2-705-RUN1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ninagroot/GPT2-705-RUN1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ninagroot/GPT2-705-RUN1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ninagroot/GPT2-705-RUN1
- SGLang
How to use ninagroot/GPT2-705-RUN1 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 "ninagroot/GPT2-705-RUN1" \ --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": "ninagroot/GPT2-705-RUN1", "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 "ninagroot/GPT2-705-RUN1" \ --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": "ninagroot/GPT2-705-RUN1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ninagroot/GPT2-705-RUN1 with Docker Model Runner:
docker model run hf.co/ninagroot/GPT2-705-RUN1
Commit History
-
ninagroot/GPT2-705Mtest
Verified signaturecd5ea68 -
ninagroot/GPT2-705Mtest
Verified signatureb2b54a8 -
ninagroot/GPT2-705Mtest
Verified signature9ea2774 -
ninagroot/GPT2-705Mtest
Verified signature6dc355e -
ninagroot/GPT2-705Mtest
Verified signaturefccc788 -
ninagroot/GPT2-705Mtest
Verified signaturee02e496 -
ninagroot/GPT2-705Mtest
Verified signature5a9a98f -
ninagroot/GPT2-705Mtest
Verified signature7c07b44
-
ninagroot/GPT2-705Mtest
Verified signature0b6b6ff -
ninagroot/GPT2-705Mtest
Verified signaturef5ec62b -
ninagroot/GPT2-705Mtest
Verified signature16c2aa2 -
ninagroot/GPT2-705Mtest
Verified signature144179c -
ninagroot/GPT2-705Mtest
Verified signaturef086c5e -
ninagroot/GPT2-705Mtest
Verified signatureb24b166 -
ninagroot/GPT2-705Mtest
Verified signature8a89368 -
ninagroot/GPT2-705Mtest
Verified signature73c265b -
ninagroot/GPT2-705Mtest
Verified signaturef708649 -
ninagroot/GPT2-705Mtest
Verified signatureb630715 -
ninagroot/GPT2-705Mtest
Verified signatureaf4f5bb -
ninagroot/GPT2-705Mtest
Verified signature8782d10 -
ninagroot/GPT2-705Mtest
Verified signature4bdb149 -
ninagroot/GPT2-705Mtest
Verified signature3384f76 -
ninagroot/GPT2-705Mtest
Verified signatureddda19d -
ninagroot/GPT2-705Mtest
Verified signature757a0ac -
ninagroot/GPT2-705Mtest
Verified signaturef56c415 -
ninagroot/GPT2-705Mtest
Verified signatured6dff25 -
ninagroot/GPT2-705Mtest
Verified signature1d16c57 -
ninagroot/GPT2-705Mtest
Verified signaturee071375
-
ninagroot/GPT2-705Mtest
Verified signaturef7009af -
ninagroot/GPT2-705Mtest
Verified signature9dc88e6
-
ninagroot/GPT2-705Mtest
Verified signature05a4919 -
ninagroot/GPT2-705Mtest
Verified signature6c9bc94 -
ninagroot/GPT2-705Mtest
Verified signature613aa3c
-
ninagroot/GPT2-705Mtest
Verified signature2ce4e90 -
ninagroot/GPT2-705Mtest
Verified signaturec1ce0cc -
ninagroot/GPT2-705Mtest
Verified signature2b91c11
-
ninagroot/GPT2-705Mtest
Verified signature858dc8a
-
ninagroot/GPT2-705Mtest
Verified signature09ccdd1 -
ninagroot/GPT2-705Mtest
Verified signature25a9ba3 -
ninagroot/GPT2-705Mtest
Verified signaturebe3bce3 -
ninagroot/GPT2-705Mtest
Verified signaturee42bfcf