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 15500
ad70e46 -
Training in progress, step 15000
93f7e50 -
Training in progress, step 14500
1c7ad6e -
Training in progress, step 14000
9c35f85 -
Training in progress, step 13500
d64fce3 -
Training in progress, step 13000
7aec1c3
-
Training in progress, step 12500
877b4f4 -
Training in progress, step 12000
820ca69 -
Training in progress, step 11500
4ee7e87 -
Training in progress, step 11000
3e071dd -
Training in progress, step 10500
3715163 -
Training in progress, step 10000
c7c59b0 -
Training in progress, step 9500
792b6c7 -
Training in progress, step 9000
05ad1ad -
Training in progress, step 8500
b2b47ba -
Training in progress, step 8000
aefb577 -
Training in progress, step 7500
dc38a13 -
Training in progress, step 7000
13bbd48 -
Training in progress, step 6500
2abf754 -
Training in progress, step 6000
94e3452 -
Training in progress, step 5500
25185a9 -
Training in progress, step 5000
fed457e -
Training in progress, step 4500
9e68e91 -
Training in progress, step 4000
a6bf222 -
Training in progress, step 3500
054a2ef -
Training in progress, step 3000
aa77e81 -
Training in progress, step 2500
449eecf -
Training in progress, step 2000
514cccf -
Training in progress, step 1500
e6ea301 -
Training in progress, step 1000
5589f32 -
Training in progress, step 500
f09753d -
Training in progress, step 500
842b2a9