Text Generation
Transformers
PyTorch
Safetensors
Spanish
gpt2
Generated from Trainer
text-generation-inference
Instructions to use Zagusan/Wikibot-3000 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zagusan/Wikibot-3000 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Zagusan/Wikibot-3000")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Zagusan/Wikibot-3000") model = AutoModelForCausalLM.from_pretrained("Zagusan/Wikibot-3000", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Zagusan/Wikibot-3000 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Zagusan/Wikibot-3000" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zagusan/Wikibot-3000", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Zagusan/Wikibot-3000
- SGLang
How to use Zagusan/Wikibot-3000 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 "Zagusan/Wikibot-3000" \ --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": "Zagusan/Wikibot-3000", "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 "Zagusan/Wikibot-3000" \ --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": "Zagusan/Wikibot-3000", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Zagusan/Wikibot-3000 with Docker Model Runner:
docker model run hf.co/Zagusan/Wikibot-3000
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.815bb2b
-
Update config.json
ea29ae3 -
Update README.md
1150045 -
Update README.md
dbdd65f -
Update config.json
8bb84d7
-
Update README.md
Added additional example546d944
-
Update config.json
5c80b8b -
Upload 5 files
423d399 -
Update config.json
016c493 -
Update README.md
eb59327
-
End of training
cc17637 -
End of training
bdb97e4 -
Training in progress, step 8500
3f4232b -
Training in progress, step 8000
36efb86 -
Training in progress, step 7500
44a4ae2 -
Training in progress, step 7000
77f485e -
Training in progress, step 6500
cdbbce6 -
Training in progress, step 6000
57d7443 -
Training in progress, step 5500
47c103f
-
Training in progress, step 5000
43c923f -
Training in progress, step 4500
9b00c63 -
Training in progress, step 4000
0c5f6a7 -
Training in progress, step 3500
a3c9f82 -
Training in progress, step 3000
e0c9f97 -
Training in progress, step 2500
2d98406 -
Training in progress, step 2000
f88a46f -
Training in progress, step 1500
337eb13 -
Training in progress, step 1000
57ff226 -
Training in progress, step 500
36a0d08 -
Training in progress, step 1500
fbf6202 -
Training in progress, step 1000
b79c5ed -
Training in progress, step 500
8b41df9
-
initial commit
f1b8eaa