Instructions to use intelia-lab-uah/mt0-base_AE_SQAC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use intelia-lab-uah/mt0-base_AE_SQAC with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="intelia-lab-uah/mt0-base_AE_SQAC")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("intelia-lab-uah/mt0-base_AE_SQAC") model = AutoModelForSeq2SeqLM.from_pretrained("intelia-lab-uah/mt0-base_AE_SQAC", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use intelia-lab-uah/mt0-base_AE_SQAC 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_AE_SQAC" # 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_AE_SQAC", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/intelia-lab-uah/mt0-base_AE_SQAC
- SGLang
How to use intelia-lab-uah/mt0-base_AE_SQAC 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_AE_SQAC" \ --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_AE_SQAC", "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_AE_SQAC" \ --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_AE_SQAC", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use intelia-lab-uah/mt0-base_AE_SQAC with Docker Model Runner:
docker model run hf.co/intelia-lab-uah/mt0-base_AE_SQAC
Download trainer_state.json from intelia-lab-uah/mt0-base_AE_SQAC: direct link, hf CLI and curl.
- Browser
- Download file 833 Bytes
-
https://huggingface.co/intelia-lab-uah/mt0-base_AE_SQAC/resolve/main/trainer_state.json
- Command line
-
hf download hf://intelia-lab-uah/mt0-base_AE_SQAC/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/intelia-lab-uah/mt0-base_AE_SQAC/resolve/main/trainer_state.json
833 Bytes
| { | |
| "best_metric": 0.6330863237380981, | |
| "best_model_checkpoint": "../Modelos/mt0_AEx_SQAC 16-11-22_14:04:57/checkpoint-100", | |
| "epoch": 2.1715817694369974, | |
| "global_step": 100, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 1.09, | |
| "eval_loss": 0.6838678121566772, | |
| "eval_runtime": 9.7524, | |
| "eval_samples_per_second": 151.04, | |
| "eval_steps_per_second": 9.536, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 2.17, | |
| "eval_loss": 0.6330863237380981, | |
| "eval_runtime": 9.7479, | |
| "eval_samples_per_second": 151.11, | |
| "eval_steps_per_second": 9.541, | |
| "step": 100 | |
| } | |
| ], | |
| "max_steps": 138, | |
| "num_train_epochs": 3, | |
| "total_flos": 2.8488372045479936e+16, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |