Commit
·
e9bccf8
1
Parent(s):
bf041ff
Upload LanceAI
Browse files- generation_config.json +1 -1
- lance_ai_model.py +1 -1
generation_config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_from_model_config": true,
|
| 3 |
"do_sample": true,
|
| 4 |
-
"max_new_tokens":
|
| 5 |
"no_repeat_ngram_size": 3,
|
| 6 |
"repetition_penalty": 1.3,
|
| 7 |
"temperature": 0.8,
|
|
|
|
| 1 |
{
|
| 2 |
"_from_model_config": true,
|
| 3 |
"do_sample": true,
|
| 4 |
+
"max_new_tokens": 250,
|
| 5 |
"no_repeat_ngram_size": 3,
|
| 6 |
"repetition_penalty": 1.3,
|
| 7 |
"temperature": 0.8,
|
lance_ai_model.py
CHANGED
|
@@ -35,7 +35,7 @@ class LanceAI(PreTrainedModel, GenerationMixin):
|
|
| 35 |
self.loss_fct = nn.CrossEntropyLoss(ignore_index=-100)
|
| 36 |
|
| 37 |
# Set generation config defaults for more natural responses
|
| 38 |
-
self.generation_config.max_new_tokens =
|
| 39 |
self.generation_config.temperature = 0.8
|
| 40 |
self.generation_config.top_k = 40
|
| 41 |
self.generation_config.top_p = 0.9
|
|
|
|
| 35 |
self.loss_fct = nn.CrossEntropyLoss(ignore_index=-100)
|
| 36 |
|
| 37 |
# Set generation config defaults for more natural responses
|
| 38 |
+
self.generation_config.max_new_tokens = 250
|
| 39 |
self.generation_config.temperature = 0.8
|
| 40 |
self.generation_config.top_k = 40
|
| 41 |
self.generation_config.top_p = 0.9
|