133 1 year ago

Light weight sentiment analysis for financial articles

1 year ago

5fe0bc213898 · 1.7GB ·

gemma2
·
2.61B
·
Q4_K_M
{{ if .System }}### Instruction: {{ .System }} {{ end }} ### Input: {{ .Prompt }} ### Response:
Analyze the sentiment of this financial news article.
{ "num_ctx": 4096, "repeat_last_n": 256, "temperature": 0.2 }

Readme

Gemma 2 2b fine tuned for sentiment analysis of financial articles, give it an article -> outputs a specific JSON format with confidence and reasoning values:

{
  "reasoning": "The article reports that Qualcomm's CEO Cristiano Amon expressed concerns about the phone market recovering more slowly than expected, which led to a decline in stock value after initially rising due to strong earnings projections. The company projected flattish or single-digit percentage growth for units this year, indicating a slow recovery from a prolonged slump.",
  "sentiment": -0.15,
  "confidence": 0.75
}

Confidence and variance get shakier the lower down the quants, but overall similar performance.