Instructions to use NasimB/gpt2-dp-mod-datasets-txt-processing with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NasimB/gpt2-dp-mod-datasets-txt-processing with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NasimB/gpt2-dp-mod-datasets-txt-processing")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NasimB/gpt2-dp-mod-datasets-txt-processing") model = AutoModelForCausalLM.from_pretrained("NasimB/gpt2-dp-mod-datasets-txt-processing", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NasimB/gpt2-dp-mod-datasets-txt-processing with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NasimB/gpt2-dp-mod-datasets-txt-processing" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NasimB/gpt2-dp-mod-datasets-txt-processing", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NasimB/gpt2-dp-mod-datasets-txt-processing
- SGLang
How to use NasimB/gpt2-dp-mod-datasets-txt-processing 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 "NasimB/gpt2-dp-mod-datasets-txt-processing" \ --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": "NasimB/gpt2-dp-mod-datasets-txt-processing", "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 "NasimB/gpt2-dp-mod-datasets-txt-processing" \ --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": "NasimB/gpt2-dp-mod-datasets-txt-processing", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NasimB/gpt2-dp-mod-datasets-txt-processing with Docker Model Runner:
docker model run hf.co/NasimB/gpt2-dp-mod-datasets-txt-processing
Commit History
-
update model card README.md
011baa3 -
End of training
3d88567 -
Training in progress, step 10500
d37ba22 -
Training in progress, step 10000
0521122 -
Training in progress, step 9500
f19d522 -
Training in progress, step 9000
8ea1f7e -
Training in progress, step 8500
5448d8c -
Training in progress, step 8000
1b7c839 -
Training in progress, step 7500
ab3c424 -
Training in progress, step 7000
546af9f -
Training in progress, step 6500
12b83c6 -
Training in progress, step 6000
d266a2c -
Training in progress, step 5500
f7afe48 -
Training in progress, step 5000
541a492 -
Training in progress, step 4500
6527178 -
Training in progress, step 4000
b4fffd1 -
Training in progress, step 3500
e8d319c -
Training in progress, step 3000
9d39c93 -
Training in progress, step 2500
f3628b5 -
Training in progress, step 2000
a35913b -
Training in progress, step 1500
4632974 -
Training in progress, step 1000
add76d7 -
Training in progress, step 500
e177c36
-
update model card README.md
ad9b5b0 -
End of training
541ca53 -
Training in progress, step 12500
8a7a866 -
Training in progress, step 12000
50e409a -
Training in progress, step 11500
642d8bd -
Training in progress, step 11000
79675ca -
Training in progress, step 10500
06ceafa -
Training in progress, step 10000
f4cbc4d -
Training in progress, step 9500
431a1df -
Training in progress, step 9000
8546a77 -
Training in progress, step 8500
c2851b3 -
Training in progress, step 8000
d9d1928 -
Training in progress, step 7500
0ceb47e -
Training in progress, step 7000
7412de8 -
Training in progress, step 6500
a105f6f -
Training in progress, step 6000
c940ef1 -
Training in progress, step 5500
8971744 -
Training in progress, step 5000
bb66d80 -
Training in progress, step 4500
7e39628 -
Training in progress, step 4000
fb125ad -
Training in progress, step 3500
e491f0f -
Training in progress, step 3000
01d1af5 -
Training in progress, step 2500
b7bede0 -
Training in progress, step 2000
3c00dbd -
Training in progress, step 1500
8bb5e6d -
Training in progress, step 1000
521a17c -
Training in progress, step 500
bbdd895