Instructions to use HiTZ/gpt2-eus-euscrawl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HiTZ/gpt2-eus-euscrawl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HiTZ/gpt2-eus-euscrawl")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HiTZ/gpt2-eus-euscrawl") model = AutoModelForCausalLM.from_pretrained("HiTZ/gpt2-eus-euscrawl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HiTZ/gpt2-eus-euscrawl with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HiTZ/gpt2-eus-euscrawl" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HiTZ/gpt2-eus-euscrawl", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HiTZ/gpt2-eus-euscrawl
- SGLang
How to use HiTZ/gpt2-eus-euscrawl 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 "HiTZ/gpt2-eus-euscrawl" \ --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": "HiTZ/gpt2-eus-euscrawl", "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 "HiTZ/gpt2-eus-euscrawl" \ --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": "HiTZ/gpt2-eus-euscrawl", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HiTZ/gpt2-eus-euscrawl with Docker Model Runner:
docker model run hf.co/HiTZ/gpt2-eus-euscrawl
Commit History
-
Training in progress, step 90500
edc2a74 -
Training in progress, step 90000
729909f -
Training in progress, step 89500
a5f67ad -
Training in progress, step 89000
adb8d22 -
Training in progress, step 88500
b654812 -
Training in progress, step 88000
d6f9cbe -
Training in progress, step 87500
a7dfa8e -
Training in progress, step 87000
b1a246c -
Training in progress, step 86500
88a0673 -
Training in progress, step 86000
185297c -
Training in progress, step 85500
176ac18 -
Training in progress, step 85000
e22ae23 -
Training in progress, step 84500
92abaa6 -
Training in progress, step 84000
2f21056 -
Training in progress, step 83500
5331d64 -
Training in progress, step 83000
aabdee8 -
Training in progress, step 82500
eb3d716 -
Training in progress, step 82000
30ab315 -
Training in progress, step 81500
660da19 -
Training in progress, step 81000
f96a2e8 -
Training in progress, step 80500
23df92c -
Training in progress, step 80000
093c980 -
Training in progress, step 79500
f7eeff2 -
Training in progress, step 79000
f0c3cd3 -
Training in progress, step 78500
3a8bae1 -
Training in progress, step 78000
e6e674d -
Training in progress, step 77500
0d7f05e -
Training in progress, step 77000
50a3679 -
Training in progress, step 76500
700f505 -
Training in progress, step 76000
e7bf270 -
Training in progress, step 75500
56c7879 -
Training in progress, step 75000
e3d3aa5 -
Training in progress, step 74500
483c2c6 -
Training in progress, step 74000
d571af2 -
Training in progress, step 73500
3ec8416 -
Training in progress, step 73000
52a7e07 -
Training in progress, step 72500
f7fcd3e -
Training in progress, step 72000
9388c8f -
Training in progress, step 71500
43ed2ba -
Training in progress, step 71000
062ccba -
Training in progress, step 70500
b7f0139 -
Training in progress, step 70000
45065f6 -
Training in progress, step 69500
26c7c48 -
Training in progress, step 69000
59590de -
Training in progress, step 68500
a4e75e3 -
Training in progress, step 68000
4c1ccc7 -
Training in progress, step 67500
f2ee59c -
Training in progress, step 67000
af5c06e -
Training in progress, step 66500
56dce1a -
Training in progress, step 66000
5d93a5f