Update README.md
Browse files
README.md
CHANGED
|
@@ -6,24 +6,15 @@ license: apache-2.0
|
|
| 6 |
|
| 7 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 8 |
|
| 9 |
-
**
|
| 10 |
|
| 11 |
-
slim-sentiment-tool is a 4_K_M quantized GGUF version of slim-sentiment-tool, providing a fast, small inference implementation.
|
| 12 |
|
| 13 |
Load in your favorite GGUF inference engine, or try with llmware as follows:
|
| 14 |
|
| 15 |
from llmware.models import ModelCatalog
|
| 16 |
|
| 17 |
-
|
| 18 |
-
response =
|
| 19 |
-
|
| 20 |
-
Slim models can also be loaded even more simply as part of LLMfx calls:
|
| 21 |
-
|
| 22 |
-
from llmware.agents import LLMfx
|
| 23 |
-
|
| 24 |
-
llm_fx = LLMfx()
|
| 25 |
-
llm_fx.load_tool("sentiment")
|
| 26 |
-
response = llm_fx.sentiment(text)
|
| 27 |
|
| 28 |
|
| 29 |
### Model Description
|
|
@@ -33,26 +24,16 @@ Slim models can also be loaded even more simply as part of LLMfx calls:
|
|
| 33 |
- **Developed by:** llmware
|
| 34 |
- **Model type:** GGUF
|
| 35 |
- **Language(s) (NLP):** English
|
| 36 |
-
- **License:**
|
| 37 |
-
- **Quantized from model:** llmware/
|
| 38 |
|
| 39 |
## Uses
|
| 40 |
|
| 41 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
Example:
|
| 46 |
-
|
| 47 |
-
text = "The stock market declined yesterday as investors worried increasingly about the slowing economy."
|
| 48 |
-
|
| 49 |
-
model generation - {"sentiment": ["negative"]}
|
| 50 |
-
|
| 51 |
-
keys = "sentiment"
|
| 52 |
-
|
| 53 |
-
All of the SLIM models use a novel prompt instruction structured as follows:
|
| 54 |
|
| 55 |
-
"<human> " + text + "
|
| 56 |
|
| 57 |
|
| 58 |
## Model Card Contact
|
|
|
|
| 6 |
|
| 7 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 8 |
|
| 9 |
+
**dragon-yi-qa-tool** is a Q4_K_M GGUF quantized version of the DRAGON Yi model series, providing a fast, small inference implementation.
|
| 10 |
|
|
|
|
| 11 |
|
| 12 |
Load in your favorite GGUF inference engine, or try with llmware as follows:
|
| 13 |
|
| 14 |
from llmware.models import ModelCatalog
|
| 15 |
|
| 16 |
+
qa_tool = ModelCatalog().load_model("llmware/dragon-yi-qa-tool")
|
| 17 |
+
response = qa_tool.inference(question, text_sample)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
### Model Description
|
|
|
|
| 24 |
- **Developed by:** llmware
|
| 25 |
- **Model type:** GGUF
|
| 26 |
- **Language(s) (NLP):** English
|
| 27 |
+
- **License:** Yi Community License
|
| 28 |
+
- **Quantized from model:** llmware/dragon-yi-6b (finetuned yi-6b-base)
|
| 29 |
|
| 30 |
## Uses
|
| 31 |
|
| 32 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 33 |
|
| 34 |
+
All of the DRAGON models use the following prompt template:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
+
"<human> " + text + "\n" + question + "\n<bot>: "
|
| 37 |
|
| 38 |
|
| 39 |
## Model Card Contact
|