VaibTFU commited on
Commit
f252dea
·
verified ·
1 Parent(s): 61bd093

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ qwen-0.5b-stocks-news-v2-f16.gguf filter=lfs diff=lfs merge=lfs -text
37
+ qwen-0.5b-stocks-news-v2-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
38
+ qwen-0.5b-stocks-news-v2-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - gguf
4
+ - qwen2
5
+ - finance
6
+ - news-analysis
7
+ - stock-market
8
+ base_model: Qwen/Qwen2.5-0.5B-Instruct
9
+ license: apache-2.0
10
+ ---
11
+
12
+ # qwen-0.5b-stocks-news-v2 (GGUF)
13
+
14
+ GGUF quantized versions of [qwen-0.5b-stocks-news-v2](https://huggingface.co/VaibTFU/qwen-0.5b-stocks-news-v2).
15
+
16
+ ## Model Description
17
+
18
+ Fine-tuned **Qwen2.5-0.5B-Instruct** for financial news analysis. Outputs structured JSON with:
19
+ - `impactTerm`: LONGTERM / SHORTTERM
20
+ - `impactScope`: GLOBAL / INDUSTRY / STOCK
21
+ - `scopeItems`: list of affected stocks/industries
22
+ - `highlights`: key information summary
23
+ - `sentiment`: POSITIVE / NEGATIVE / NEUTRAL
24
+
25
+ ## Available Quantizations
26
+
27
+ | Quantization | Size | Quality | Use Case |
28
+ |:------------|:-----|:--------|:---------|
29
+ | F16 | ~1 GB | Highest | Reference / GPU inference |
30
+ | Q8_0 | ~530 MB | Very High | Desktop / server inference |
31
+ | Q4_K_M | ~320 MB | Good | Mobile / edge / low-RAM |
32
+
33
+ ## Usage
34
+
35
+ ### With llama.cpp
36
+
37
+ ```bash
38
+ ./llama-cli -m qwen-0.5b-stocks-news-v2-q4_k_m.gguf \
39
+ -p '<|im_start|>system
40
+ You are a financial news AI. Analyze the given news article and output its scope, impact, highlights, and sentiment in JSON format. /no_think<|im_end|>
41
+ <|im_start|>user
42
+ RBI holds repo rate at 6.5% in MPC meeting<|im_end|>
43
+ <|im_start|>assistant
44
+ ' \
45
+ -n 256 --temp 0.7
46
+ ```
47
+
48
+ ### With Ollama
49
+
50
+ Create a `Modelfile`:
51
+ ```
52
+ FROM ./qwen-0.5b-stocks-news-v2-q4_k_m.gguf
53
+
54
+ TEMPLATE """<|im_start|>system
55
+ {{ .System }}<|im_end|>
56
+ <|im_start|>user
57
+ {{ .Prompt }}<|im_end|>
58
+ <|im_start|>assistant
59
+ """
60
+
61
+ SYSTEM "You are a financial news AI. Analyze the given news article and output its scope, impact, highlights, and sentiment in JSON format. /no_think"
62
+
63
+ PARAMETER temperature 0.7
64
+ PARAMETER top_p 0.8
65
+ PARAMETER stop <|im_end|>
66
+ ```
67
+
68
+ Then:
69
+ ```bash
70
+ ollama create qwen-0.5b-stocks-news-v2 -f Modelfile
71
+ ollama run qwen-0.5b-stocks-news-v2 "Infosys Q3 profit rises 11%"
72
+ ```
qwen-0.5b-stocks-news-v2-f16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f503393e7b55ebde733d13c3a2790cb0002db5b8081e2edc95ed37c57de30ac
3
+ size 994156320
qwen-0.5b-stocks-news-v2-q4_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c12b98dccfc8c4ef210fe02e6b52cc10a64ebab1598007aaa4f8c2c8b69240fc
3
+ size 397807392
qwen-0.5b-stocks-news-v2-q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5cee4c0179989239a937561d3c6f2b5b145db782fa1d619b3b9185a640ac48f3
3
+ size 531067680