Whomstt/irish-english-dialect
Viewer • Updated • 106 • 8
How to use Whomstt/mistral-qlora-craic with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("Whomstt/Ministral-3-3B-Base-2512-bnb-nf4")
model = PeftModel.from_pretrained(base_model, "Whomstt/mistral-qlora-craic")How to use Whomstt/mistral-qlora-craic with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Whomstt/mistral-qlora-craic") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Whomstt/mistral-qlora-craic", dtype="auto")How to use Whomstt/mistral-qlora-craic with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Whomstt/mistral-qlora-craic"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Whomstt/mistral-qlora-craic",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Whomstt/mistral-qlora-craic
How to use Whomstt/mistral-qlora-craic with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Whomstt/mistral-qlora-craic" \
--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": "Whomstt/mistral-qlora-craic",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "Whomstt/mistral-qlora-craic" \
--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": "Whomstt/mistral-qlora-craic",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Whomstt/mistral-qlora-craic with Docker Model Runner:
docker model run hf.co/Whomstt/mistral-qlora-craic
Base model
mistralai/Ministral-3-3B-Base-2512