Update README.md
Browse files
README.md
CHANGED
@@ -6,14 +6,7 @@ tags: [green, p1, llmware-fx, ov, emerald]
|
|
6 |
|
7 |
# slim-extract-tiny-ov
|
8 |
|
9 |
-
**slim-extract-tiny-ov** is a specialized function calling model with a single mission to look for values in a text, based on an "extract" key that is passed as a parameter. No other instructions are required except to pass the context passage, and the target key,
|
10 |
-
|
11 |
-
text_passage = "The company announced that for the current quarter the total revenue increased by 9% to $125 million."
|
12 |
-
|
13 |
-
llm_response = model.function_call(text_passage, function="extract", params=["revenue"])
|
14 |
-
|
15 |
-
Output: `llm_response = {"revenue": [$125 million"]}`
|
16 |
-
|
17 |
|
18 |
This is an OpenVino int4 quantized version of slim-extract-tiny, providing a very fast, very small inference implementation, optimized for AI PCs using Intel GPU, CPU and NPU.
|
19 |
|
@@ -30,6 +23,16 @@ This is an OpenVino int4 quantized version of slim-extract-tiny, providing a ver
|
|
30 |
- **RAG Benchmark Accuracy Score:** NA
|
31 |
- **Quantization:** int4
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
## Model Card Contact
|
35 |
|
|
|
6 |
|
7 |
# slim-extract-tiny-ov
|
8 |
|
9 |
+
**slim-extract-tiny-ov** is a specialized function calling model with a single mission to look for values in a text, based on an "extract" key that is passed as a parameter. No other instructions are required except to pass the context passage, and the target key, and the model returns a python dictionary consisting of the extract key and a list of the values found in the text.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
This is an OpenVino int4 quantized version of slim-extract-tiny, providing a very fast, very small inference implementation, optimized for AI PCs using Intel GPU, CPU and NPU.
|
12 |
|
|
|
23 |
- **RAG Benchmark Accuracy Score:** NA
|
24 |
- **Quantization:** int4
|
25 |
|
26 |
+
### Example Usage
|
27 |
+
|
28 |
+
from llmware.models import ModelCatalog
|
29 |
+
|
30 |
+
text_passage = "The company announced that for the current quarter the total revenue increased by 9% to $125 million."
|
31 |
+
model = ModelCatalog().load_model("slim-extract-tiny-ov")
|
32 |
+
llm_response = model.function_call(text_passage, function="extract", params=["revenue"])
|
33 |
+
|
34 |
+
Output: `llm_response = {"revenue": [$125 million"]}`
|
35 |
+
|
36 |
|
37 |
## Model Card Contact
|
38 |
|