Instructions to use Ayansk11/FinSenti-Qwen3.5-9B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Ayansk11/FinSenti-Qwen3.5-9B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Ayansk11/FinSenti-Qwen3.5-9B-GGUF", filename="FinSenti-Qwen3.5-9B.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Ayansk11/FinSenti-Qwen3.5-9B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Ayansk11/FinSenti-Qwen3.5-9B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ayansk11/FinSenti-Qwen3.5-9B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ayansk11/FinSenti-Qwen3.5-9B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
- Ollama
How to use Ayansk11/FinSenti-Qwen3.5-9B-GGUF with Ollama:
ollama run hf.co/Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
- Unsloth Studio
How to use Ayansk11/FinSenti-Qwen3.5-9B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Ayansk11/FinSenti-Qwen3.5-9B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Ayansk11/FinSenti-Qwen3.5-9B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Ayansk11/FinSenti-Qwen3.5-9B-GGUF to start chatting
- Pi
How to use Ayansk11/FinSenti-Qwen3.5-9B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Ayansk11/FinSenti-Qwen3.5-9B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use Ayansk11/FinSenti-Qwen3.5-9B-GGUF with Docker Model Runner:
docker model run hf.co/Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
- Lemonade
How to use Ayansk11/FinSenti-Qwen3.5-9B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Ayansk11/FinSenti-Qwen3.5-9B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.FinSenti-Qwen3.5-9B-GGUF-Q4_K_M
List all available models
lemonade list
FinSenti-Qwen3.5-9B - GGUF
GGUF builds of FinSenti-Qwen3.5-9B for use with Ollama, llama.cpp, LM Studio, KoboldCpp, and other GGUF-compatible runtimes.
This is the same model as the SafeTensors repo, just converted and quantized so you can run it on a CPU or a small GPU without pulling in PyTorch.
Files in this repo
| File | Quant | Size | Notes |
|---|---|---|---|
FinSenti-Qwen3.5-9B.Q4_K_M.gguf |
Q4_K_M | 5.50 GB | Smallest, mild quality dip. Default pick for laptops. |
FinSenti-Qwen3.5-9B.Q5_K_M.gguf |
Q5_K_M | 6.30 GB | Balanced quality and size. |
FinSenti-Qwen3.5-9B.Q8_0.gguf |
Q8_0 | 9.50 GB | Closest to bf16, biggest file. |
If you're not sure which to pick: start with Q4_K_M. It's the smallest file, it runs everywhere, and the quality drop versus the original bf16 weights is small for a model this size.
Quick start (llama.cpp)
# Download the Q4_K_M file (or pick a different quant from the table above)
huggingface-cli download Ayansk11/FinSenti-Qwen3.5-9B-GGUF FinSenti-Qwen3.5-9B.Q4_K_M.gguf --local-dir .
# Run it
./llama-cli -m FinSenti-Qwen3.5-9B.Q4_K_M.gguf \
--system "You are a financial sentiment analyst. For each headline you receive, write a short reasoning chain inside <reasoning>...</reasoning> tags, then give a single label inside <answer>...</answer> tags. The label must be exactly one of: positive, negative, neutral." \
-p "Apple beats Q4 estimates as iPhone sales jump 12% year over year." \
-n 256
Quick start (Ollama)
This repo ships a Modelfile for each quant. To register the Q4_K_M build
under the name finsenti-qwen3-5-9b:
huggingface-cli download Ayansk11/FinSenti-Qwen3.5-9B-GGUF \
FinSenti-Qwen3.5-9B.Q4_K_M.gguf Modelfile.Q4_K_M --local-dir ./finsenti-tmp
cd finsenti-tmp
ollama create finsenti-qwen3-5-9b -f Modelfile.Q4_K_M
# Then chat with it
ollama run finsenti-qwen3-5-9b "Apple beats Q4 estimates as iPhone sales jump 12% year over year."
You should see output like:
<reasoning>
Beating estimates is a positive earnings surprise. A 12% YoY iPhone sales jump in the company's biggest product line points to demand strength. Both signals push the read positive.
</reasoning>
<answer>positive</answer>
Quick start (Python via llama-cpp-python)
from llama_cpp import Llama
llm = Llama(
model_path="./FinSenti-Qwen3.5-9B.Q4_K_M.gguf",
n_ctx=2048,
n_threads=8,
)
system = (
"You are a financial sentiment analyst. For each headline you receive, "
"write a short reasoning chain inside <reasoning>...</reasoning> tags, "
"then give a single label inside <answer>...</answer> tags. The label "
"must be exactly one of: positive, negative, neutral."
)
resp = llm.create_chat_completion(
messages=[
{"role": "system", "content": system},
{"role": "user", "content": "Apple beats Q4 estimates as iPhone sales jump 12% year over year."},
],
max_tokens=256,
temperature=0.0,
)
print(resp["choices"][0]["message"]["content"])
Hardware
The Q4_K_M build is about 5.50 GB on disk and needs roughly 7 GB of free RAM at runtime. On a modern laptop CPU you should see 15-40 tokens per second depending on the size of the model and your core count. Throwing it on a small GPU (Apple Silicon, a 6-8 GB NVIDIA card) gets you considerably faster generation.
If you need more headroom, the Q5_K_M and Q8_0 files are progressively closer to the original bf16 quality at the cost of size.
Picking a quant
- Q4_K_M (5.50 GB): the default for laptops and small servers. Mild quality dip versus full precision but fits almost anywhere.
- Q5_K_M (6.30 GB): a step up if you have the RAM. Most people won't notice the difference from Q8.
- Q8_0 (9.50 GB): closest to the bf16 weights. Use this if you want the cleanest output and have the disk space.
Prompt format
Same as the base model. Use the system prompt verbatim, put the headline
or short snippet in the user turn, and parse the <answer>...</answer>
block for the label.
Limitations
GGUF is a faithful conversion of the base model, so the same caveats apply:
- English only
- Short text only (training context was 2048 tokens)
- Three labels: positive, negative, neutral
- It explains its read but it isn't doing finance research; don't use the reasoning chain as investment advice
Quantization adds a small extra error on top of the base model. For Q4_K_M on a model this size you'll see occasional disagreement with the bf16 model on borderline headlines, usually neutral-vs-positive flips.
Related FinSenti models
Other sizes and bases trained with the same recipe:
- Qwen3: Qwen3-0.6B, Qwen3-1.7B, Qwen3-4B, Qwen3-8B
- Qwen3.5: Qwen3.5-0.8B, Qwen3.5-2B, Qwen3.5-4B
- DeepSeek: DeepSeek-R1-1.5B
- MobileLLM: MobileLLM-R1-950M
- Tiny-LLM: Tiny-LLM-10M
- Llama-3: Llama-3.2-1B
- SmolLM: SmolLM-1.7B
The full-precision SafeTensors version of this model is at Ayansk11/FinSenti-Qwen3.5-9B, and the training data is at Ayansk11/FinSenti-Dataset.
Citation
@misc{shaikh2026finsenti,
title = {FinSenti: Small Language Models for Financial Sentiment with Chain-of-Thought Reasoning},
author = {Shaikh, Ayan},
year = {2026},
url = {https://huggingface.co/collections/Ayansk11/finsenti},
note = {Indiana University}
}
License
Apache 2.0.
- Downloads last month
- 229
4-bit
5-bit
8-bit