Text Generation
Transformers
Safetensors
English
gemma
finance
lora
unsloth
instruction-following
conversational
Instructions to use prxshetty/gemma-3-finance-mix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prxshetty/gemma-3-finance-mix with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prxshetty/gemma-3-finance-mix") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prxshetty/gemma-3-finance-mix", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use prxshetty/gemma-3-finance-mix with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prxshetty/gemma-3-finance-mix" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prxshetty/gemma-3-finance-mix", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prxshetty/gemma-3-finance-mix
- SGLang
How to use prxshetty/gemma-3-finance-mix 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 "prxshetty/gemma-3-finance-mix" \ --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": "prxshetty/gemma-3-finance-mix", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "prxshetty/gemma-3-finance-mix" \ --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": "prxshetty/gemma-3-finance-mix", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use prxshetty/gemma-3-finance-mix with Docker Model Runner:
docker model run hf.co/prxshetty/gemma-3-finance-mix
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,22 +1,59 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
-
-
|
| 5 |
-
-
|
|
|
|
| 6 |
- unsloth
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
language:
|
| 11 |
- en
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
-
- **License:** apache-2.0
|
| 18 |
-
- **Finetuned from model :** unsloth/gemma-3-270m-it
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
| 4 |
+
base_model: google/gemma-3-270m-it
|
| 5 |
tags:
|
| 6 |
+
- gemma
|
| 7 |
+
- finance
|
| 8 |
+
- lora
|
| 9 |
- unsloth
|
| 10 |
+
- text-generation
|
| 11 |
+
- instruction-following
|
| 12 |
+
datasets:
|
| 13 |
+
- gbharti/finance-alpaca
|
| 14 |
+
- Balaji173/finance_news_sentiment
|
| 15 |
+
- winddude/reddit_finance_43_250k
|
| 16 |
+
- causal-lm/finance
|
| 17 |
+
pipeline_tag: text-generation
|
| 18 |
language:
|
| 19 |
- en
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# Gemma-3 Finance Mix
|
| 23 |
+
|
| 24 |
+
A lightweight **Gemma-3 270M** model fine-tuned for *financial Q&A, news-headline sentiment and retail-investor discourse*.
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## Overview
|
| 29 |
+
|
| 30 |
+
| Item | Details |
|
| 31 |
+
|---|---|
|
| 32 |
+
| **Base checkpoint** | `google/gemma-3-270m-it` |
|
| 33 |
+
| **Fine-tune method** | LoRA (PEFT) with Unsloth|
|
| 34 |
+
| **Training run** | 1 epoch • 325,528 blended examples • 100 steps |
|
| 35 |
+
| **Trainable params** | 30.4 M / 298 M (10.18 %) |
|
| 36 |
+
| **Loss** | 4.11 → **2.74** |
|
| 37 |
+
| **Hardware** | 2 × T4-16GB (Collab Free Tier) |
|
| 38 |
+
| **License** | Apache-2.0 |
|
| 39 |
+
| **Intended use** | Educational & research
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
## Datasets
|
| 43 |
+
|
| 44 |
+
| Dataset | Size | Focus |
|
| 45 |
+
|---|---|---|
|
| 46 |
+
| `gbharti/finance-alpaca` | 52 k | Instruction Q-A on corporate finance & investing |
|
| 47 |
+
| `Balaji173/finance_news_sentiment` | 217 k | Bullish/bearish labels for news headlines |
|
| 48 |
+
| `winddude/reddit_finance_43_250k` | 250 k | Reddit finance post–comment pairs |
|
| 49 |
+
| `causal-lm/finance` | 31 k | Analytical prompts & causal reasoning in economics/markets |
|
| 50 |
+
|
| 51 |
+
All shards were concatenated and wrapped with the **Gemma chat template** before training.
|
| 52 |
+
|
| 53 |
+
---
|
| 54 |
|
| 55 |
+
## Responsible use
|
|
|
|
|
|
|
| 56 |
|
| 57 |
+
Disclose AI assistance, double-check outputs, and do **not** rely on this model for trading decisions. The author and base-model creators accept no liability for financial losses.
|
| 58 |
|
| 59 |
+
---
|