Instructions to use MHBS-IHB/fish-mt5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MHBS-IHB/fish-mt5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MHBS-IHB/fish-mt5")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MHBS-IHB/fish-mt5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MHBS-IHB/fish-mt5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MHBS-IHB/fish-mt5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MHBS-IHB/fish-mt5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MHBS-IHB/fish-mt5
- SGLang
How to use MHBS-IHB/fish-mt5 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 "MHBS-IHB/fish-mt5" \ --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": "MHBS-IHB/fish-mt5", "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 "MHBS-IHB/fish-mt5" \ --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": "MHBS-IHB/fish-mt5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MHBS-IHB/fish-mt5 with Docker Model Runner:
docker model run hf.co/MHBS-IHB/fish-mt5
Commit History
-
Update README.md
Verified signature4bdfc79 -
Upload model.safetensors
Verified signaturea344aba -
Upload model.safetensors
Verified signature1481f21 -
Upload model.safetensors
Verified signatureee6a7dc
-
Update fish_mt5_small/config.json
Verified signaturea86b301 -
Upload 5 files
Verified signature86c7d42 -
Update fish_mt5_large/config.json
Verified signaturea6f65e5 -
Upload 5 files
Verified signaturef53d5e2 -
Update fish_mt5_base/config.json
Verified signaturefac2c75 -
Upload 5 files (#1)
Verified signature- Upload 5 files (90503b5022974b1d0d7b80a55d3d64182175b213)5e63756 -
Update README.md
Verified signature979c2e9 -
Update README.md
Verified signatured6e571d -
Update README.md
Verified signature5a30544 -
Update README.md
Verified signature59fb214 -
Update README.md
Verified signature71a4060 -
Update README.md
Verified signature288c4d3 -
Create README.md
Verified signatureba4ec0c
-
initial commit
Verified signature243967f