bitext/Bitext-retail-banking-llm-chatbot-training-dataset
Viewer • Updated • 25.5k • 531 • 15
How to use iamnotpalak/mistral-qlora-banking with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="iamnotpalak/mistral-qlora-banking")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("iamnotpalak/mistral-qlora-banking", dtype="auto")How to use iamnotpalak/mistral-qlora-banking with PEFT:
Task type is invalid.
How to use iamnotpalak/mistral-qlora-banking with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "iamnotpalak/mistral-qlora-banking"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "iamnotpalak/mistral-qlora-banking",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/iamnotpalak/mistral-qlora-banking
How to use iamnotpalak/mistral-qlora-banking with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "iamnotpalak/mistral-qlora-banking" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "iamnotpalak/mistral-qlora-banking",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "iamnotpalak/mistral-qlora-banking" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "iamnotpalak/mistral-qlora-banking",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use iamnotpalak/mistral-qlora-banking with Docker Model Runner:
docker model run hf.co/iamnotpalak/mistral-qlora-banking
This model is a fine-tuned version of Mistral-7B using QLoRA for domain-specific conversational tasks in retail banking.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
model_id = "iamnotpalak/mistral-qlora-banking"
tokenizer = AutoTokenizer.from_pretrained(model_id)
base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B")
model = PeftModel.from_pretrained(base_model, model_id)
Base model
mistralai/Mistral-7B-v0.3