Update README.md
Browse files
README.md
CHANGED
@@ -77,14 +77,15 @@ Any model can provide inaccurate or incomplete information, and should be used i
|
|
77 |
|
78 |
The fastest way to get started with BLING is through direct import in transformers:
|
79 |
|
80 |
-
from transformers import AutoTokenizer, AutoModelForCausalLM
|
81 |
-
tokenizer = AutoTokenizer.from_pretrained("llmware/bling-stable-lm-3b-4e1t-0.1")
|
82 |
-
model = AutoModelForCausalLM.from_pretrained("llmware/bling-stable-lm-3b-4e1t-0.1")
|
83 |
|
|
|
84 |
|
85 |
The BLING model was fine-tuned with a simple "\<human> and \<bot> wrapper", so to get the best results, wrap inference entries as:
|
86 |
|
87 |
-
full_prompt = "
|
88 |
|
89 |
The BLING model was fine-tuned with closed-context samples, which assume generally that the prompt consists of two sub-parts:
|
90 |
|
@@ -93,7 +94,7 @@ The BLING model was fine-tuned with closed-context samples, which assume general
|
|
93 |
|
94 |
To get the best results, package "my_prompt" as follows:
|
95 |
|
96 |
-
my_prompt = {{text_passage}} + "\n" + {{question/instruction}}
|
97 |
|
98 |
|
99 |
## Citations
|
@@ -110,8 +111,3 @@ This model has been fine-tuned on the base StableLM-3B-4E1T model from Stability
|
|
110 |
## Model Card Contact
|
111 |
|
112 |
Darren Oberst & llmware team
|
113 |
-
|
114 |
-
Please reach out anytime if you are interested in this project and would like to participate and work with us!
|
115 |
-
|
116 |
-
|
117 |
-
|
|
|
77 |
|
78 |
The fastest way to get started with BLING is through direct import in transformers:
|
79 |
|
80 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
81 |
+
tokenizer = AutoTokenizer.from_pretrained("llmware/bling-stable-lm-3b-4e1t-0.1")
|
82 |
+
model = AutoModelForCausalLM.from_pretrained("llmware/bling-stable-lm-3b-4e1t-0.1")
|
83 |
|
84 |
+
Please refer to the generation_test .py files in the Files repository, which includes 200 samples and script to test the model. The **generation_test_llmware_script.py** includes built-in llmware capabilities for fact-checking, as well as easy integration with document parsing and actual retrieval to swap out the test set for RAG workflow consisting of business documents.
|
85 |
|
86 |
The BLING model was fine-tuned with a simple "\<human> and \<bot> wrapper", so to get the best results, wrap inference entries as:
|
87 |
|
88 |
+
full_prompt = "<human>: " + my_prompt + "\n" + "<bot>:"
|
89 |
|
90 |
The BLING model was fine-tuned with closed-context samples, which assume generally that the prompt consists of two sub-parts:
|
91 |
|
|
|
94 |
|
95 |
To get the best results, package "my_prompt" as follows:
|
96 |
|
97 |
+
my_prompt = {{text_passage}} + "\n" + {{question/instruction}}
|
98 |
|
99 |
|
100 |
## Citations
|
|
|
111 |
## Model Card Contact
|
112 |
|
113 |
Darren Oberst & llmware team
|
|
|
|
|
|
|
|
|
|