finndot/finnai-slm-data-v3
Viewer โข Updated โข 23.6k โข 74
How to use finndot/finnai-slm-v3 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="finndot/finnai-slm-v3")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("finndot/finnai-slm-v3")
model = AutoModelForCausalLM.from_pretrained("finndot/finnai-slm-v3", device_map="auto")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use finndot/finnai-slm-v3 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "finndot/finnai-slm-v3"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "finndot/finnai-slm-v3",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/finndot/finnai-slm-v3
How to use finndot/finnai-slm-v3 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "finndot/finnai-slm-v3" \
--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": "finndot/finnai-slm-v3",
"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 "finndot/finnai-slm-v3" \
--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": "finndot/finnai-slm-v3",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use finndot/finnai-slm-v3 with Docker Model Runner:
docker model run hf.co/finndot/finnai-slm-v3
On-device model for Indian bank SMS โ JSON and finance coaching.
Helps expense apps extract transactions from bank SMS privately on the device, and answer simple money questions without cloud LLM calls.
| Model | finndot/finnai-slm-v3 |
| On-device INT4 | finndot/finnai-slm-v3-litertlm |
| Dataset | finndot/finnai-slm-data-v3 |
| Base | Qwen/Qwen3-1.7B |
| License | Apache 2.0 |
| Version | Weights | On-device LiteRT | Data |
|---|---|---|---|
| v4 (latest) | finnai-slm-v4 |
finnai-slm-v4-litertlm |
finnai-slm-data-v4 |
| v3 (this) | finnai-slm-v3 |
finnai-slm-v3-litertlm |
finnai-slm-data-v3 |
| v2 | finnai-slm-v2 |
โ | finnai-slm-data |
For new work, prefer v4 (more banks, harder SMS, Learn/Analytics chat).
amount, merchant, type, โฆ){})from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "finndot/finnai-slm-v3"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id, torch_dtype="bfloat16", device_map="auto"
)
Use enable_thinking=False in the chat template for on-device-style decoding.
Optimized for Indian banking SMS; not a general chatbot. See v4 for the latest quality and coverage.
Apache 2.0