--- language: - en license: apache-2.0 tags: - text-generation-inference - transformers - unsloth - mistral - trl - sft - phi-3 base_model: unsloth/Phi-3-mini-4k-instruct --- # Uploaded model - **Developed by:** seandearnaley - **License:** apache-2.0 - **Finetuned from model :** unsloth/Phi-3-mini-4k-instruct This phi-3 model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library. [](https://github.com/unslothai/unsloth) Developed to support [Elevating Sentiment Analysis @Medium](https://seandearnaley.medium.com/elevating-sentiment-analysis-ad02a316df1d). example Ollama Modelfile: ``` FROM ./phi3-4k-sentiment-may-24-2024-2epoches-unsloth.Q4_K_M.gguf SYSTEM """ 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: """ TEMPLATE """{{ if .System }}<|system|> {{ .System }}<|end|> {{ end }}{{ if .Prompt }}<|user|> {{ .Prompt }}<|end|> {{ end }}<|assistant|> {{ .Response }}<|end|>""" # PARAMETER stop <|end_of_text|> # Default for Llama3 # PARAMETER stop # Default for Mistral # A parameter that sets the temperature of the model, controlling how creative or conservative the model's responses will be PARAMETER temperature 0.2 # Sets how far back for the model to look back to prevent repetition. (Default: 64, 0 = disabled, -1 = num_ctx) PARAMETER repeat_last_n 256 ```