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 230500
b0cff2b -
Training in progress, step 230000
742645c -
Training in progress, step 229500
3e4ec74 -
Training in progress, step 229000
0d3f4d3 -
Training in progress, step 228500
19a66f9 -
Training in progress, step 228000
a8ae85f -
Training in progress, step 227500
85af1af -
Training in progress, step 227000
2910efe -
Training in progress, step 226500
900ec95 -
Training in progress, step 226000
65b4ce8 -
Training in progress, step 225500
5172fae -
Training in progress, step 225000
c3e69cc -
Training in progress, step 224500
b984dd9 -
Training in progress, step 224000
d406723 -
Training in progress, step 223500
cd82d9f -
Training in progress, step 223000
d83c205 -
Training in progress, step 222500
a2bb5fa -
Training in progress, step 222000
6bf8392 -
Training in progress, step 221500
2a6228c -
Training in progress, step 221000
f152970 -
Training in progress, step 220500
be5c403 -
Training in progress, step 220000
ed87fcc -
Training in progress, step 219500
eb7077e -
Training in progress, step 219000
211f0d1 -
Training in progress, step 218500
af6fcfa -
Training in progress, step 218000
056d1c3 -
Training in progress, step 217500
ec16dd1 -
Training in progress, step 217000
bf5a2cb -
Training in progress, step 216500
67b7c0f -
Training in progress, step 216000
55b239a -
Training in progress, step 215500
36c95b3 -
Training in progress, step 215000
e1e9b07 -
Training in progress, step 214500
383d113 -
Training in progress, step 214000
7416035 -
Training in progress, step 213500
fa28756 -
Training in progress, step 213000
8b7d169 -
Training in progress, step 212500
11a133e -
Training in progress, step 212000
54988ab -
Training in progress, step 211500
fbc7e1b -
Training in progress, step 211000
aeb16a9 -
Training in progress, step 210500
bdb25b3 -
Training in progress, step 210000
6b3c31b -
Training in progress, step 209500
39d730a -
Training in progress, step 209000
6525d58 -
Training in progress, step 208500
dfe1cad -
Training in progress, step 208000
0a2f753 -
Training in progress, step 207500
af9ee6e -
Training in progress, step 207000
136524b -
Training in progress, step 206500
7d47e27 -
Training in progress, step 206000
39fc239