Text Generation
Transformers
PyTorch
Safetensors
Spanish
mt5
text2text-generation
QuestionGeneration
Instructions to use intelia-lab-uah/mt0-base_QG_SS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use intelia-lab-uah/mt0-base_QG_SS with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="intelia-lab-uah/mt0-base_QG_SS")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("intelia-lab-uah/mt0-base_QG_SS") model = AutoModelForSeq2SeqLM.from_pretrained("intelia-lab-uah/mt0-base_QG_SS") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use intelia-lab-uah/mt0-base_QG_SS with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "intelia-lab-uah/mt0-base_QG_SS" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "intelia-lab-uah/mt0-base_QG_SS", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/intelia-lab-uah/mt0-base_QG_SS
- SGLang
How to use intelia-lab-uah/mt0-base_QG_SS 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 "intelia-lab-uah/mt0-base_QG_SS" \ --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": "intelia-lab-uah/mt0-base_QG_SS", "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 "intelia-lab-uah/mt0-base_QG_SS" \ --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": "intelia-lab-uah/mt0-base_QG_SS", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use intelia-lab-uah/mt0-base_QG_SS with Docker Model Runner:
docker model run hf.co/intelia-lab-uah/mt0-base_QG_SS
- Xet hash:
- 8a4a2cdfd2fab25dcdae952c8d5c217268b224ecd562ebaecbdc9023f6d57f7b
- Size of remote file:
- 2.33 GB
- SHA256:
- 67a3f27c319d7ec03877937f09d08fd01719177bab377d20f3453f0e3a3c7fb3
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.