seandearnaley commited on
Commit
2de07f0
·
verified ·
1 Parent(s): ba52ce8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -0
README.md CHANGED
@@ -21,3 +21,32 @@ base_model: unsloth/llama-3-8b-Instruct
21
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
22
 
23
  [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
22
 
23
  [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
24
+
25
+
26
+ Developed to support [Elevating Sentiment Analysis @Medium](https://seandearnaley.medium.com/elevating-sentiment-analysis-ad02a316df1d).
27
+
28
+ example Ollama Modelfile:
29
+
30
+ ```
31
+ FROM ./llama3-8b-sentiment-may-22-2024-2epoches-unsloth.Q4_K_M.gguf
32
+ SYSTEM """
33
+ You are an advanced AI assistant created to perform sentiment analysis on text. Your task is to carefully read the text and analyze the sentiment it expresses towards the potential future stock value of any company mentioned. Analyze the sentiment of this text and respond with the appropriate JSON:
34
+ """
35
+ TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>
36
+
37
+ {{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
38
+
39
+ {{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
40
+
41
+ {{ .Response }}<|eot_id|>"""
42
+
43
+ # PARAMETER stop <|end_of_text|> # Default for Llama3
44
+ # PARAMETER stop </s> # Default for Mistral
45
+
46
+ # A parameter that sets the temperature of the model, controlling how creative or conservative the model's responses will be
47
+ PARAMETER temperature 0.2
48
+
49
+ # Sets how far back for the model to look back to prevent repetition. (Default: 64, 0 = disabled, -1 = num_ctx)
50
+ PARAMETER repeat_last_n 256
51
+ ```
52
+