query_rewrite (#5)
Browse files- Updated query_rewrite model and YAML files (14038f48068a9eaa4045aada301f79c7e274785a)
Co-authored-by: Fred Reiss <[email protected]>
- .gitignore +4 -0
- query_rewrite/lora/gpt-oss-20b/io.json +0 -30
- query_rewrite/lora/gpt-oss-20b/io.yaml +22 -0
- query_rewrite/lora/granite-3.3-2b-instruct/adapter_config.json +33 -0
- query_rewrite/lora/granite-3.3-2b-instruct/adapter_model.safetensors +3 -0
- query_rewrite/lora/granite-3.3-2b-instruct/io.yaml +22 -0
- query_rewrite/lora/granite-3.3-8b-instruct/io.json +0 -30
- query_rewrite/lora/granite-3.3-8b-instruct/io.yaml +22 -0
.gitignore
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# No MacOS image cache files, please.
|
| 3 |
+
**/.DS_Store
|
| 4 |
+
|
query_rewrite/lora/gpt-oss-20b/io.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"messages": [
|
| 3 |
-
{
|
| 4 |
-
"role": "assistant",
|
| 5 |
-
"content": "Welcome to pet questions!"
|
| 6 |
-
},
|
| 7 |
-
{
|
| 8 |
-
"role": "user",
|
| 9 |
-
"content": "I have two pets, a dog named Rex and a cat named Lucy."
|
| 10 |
-
},
|
| 11 |
-
{
|
| 12 |
-
"role": "assistant",
|
| 13 |
-
"content": "Great, what would you like to share about them?"
|
| 14 |
-
},
|
| 15 |
-
{
|
| 16 |
-
"role": "user",
|
| 17 |
-
"content": "Rex spends a lot of time in the backyard and outdoors, and Luna is always inside."
|
| 18 |
-
},
|
| 19 |
-
{
|
| 20 |
-
"role": "assistant",
|
| 21 |
-
"content": "Sounds good! Rex must love exploring outside, while Lucy probably enjoys her cozy indoor life."
|
| 22 |
-
},
|
| 23 |
-
{
|
| 24 |
-
"role": "user",
|
| 25 |
-
"content": "But is he more likely to get fleas because of that?"
|
| 26 |
-
}
|
| 27 |
-
],
|
| 28 |
-
"temperature": 0.0,
|
| 29 |
-
"n": 1024
|
| 30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
query_rewrite/lora/gpt-oss-20b/io.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Model name string, or null to use whatever is provided in the chat completion request
|
| 2 |
+
model: ~
|
| 3 |
+
# JSON schema of the model's output
|
| 4 |
+
response_format: |
|
| 5 |
+
{
|
| 6 |
+
"properties": {
|
| 7 |
+
"rewritten_question": {
|
| 8 |
+
"title": "Rewritten Question",
|
| 9 |
+
"type": "string"
|
| 10 |
+
}
|
| 11 |
+
},
|
| 12 |
+
"required": [
|
| 13 |
+
"rewritten_question"
|
| 14 |
+
],
|
| 15 |
+
"title": "QueryRewriteOutput",
|
| 16 |
+
"type": "object"
|
| 17 |
+
}
|
| 18 |
+
transformations: ~
|
| 19 |
+
instruction: ~
|
| 20 |
+
parameters:
|
| 21 |
+
max_completion_tokens: 1024
|
| 22 |
+
sentence_boundaries: false
|
query_rewrite/lora/granite-3.3-2b-instruct/adapter_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "ibm-granite/granite-3.3-2b-instruct",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"eva_config": null,
|
| 7 |
+
"exclude_modules": null,
|
| 8 |
+
"fan_in_fan_out": false,
|
| 9 |
+
"inference_mode": true,
|
| 10 |
+
"init_lora_weights": true,
|
| 11 |
+
"layer_replication": null,
|
| 12 |
+
"layers_pattern": null,
|
| 13 |
+
"layers_to_transform": null,
|
| 14 |
+
"loftq_config": {},
|
| 15 |
+
"lora_alpha": 32,
|
| 16 |
+
"lora_bias": false,
|
| 17 |
+
"lora_dropout": 0.1,
|
| 18 |
+
"megatron_config": null,
|
| 19 |
+
"megatron_core": "megatron.core",
|
| 20 |
+
"modules_to_save": null,
|
| 21 |
+
"peft_type": "LORA",
|
| 22 |
+
"r": 32,
|
| 23 |
+
"rank_pattern": {},
|
| 24 |
+
"revision": null,
|
| 25 |
+
"target_modules": [
|
| 26 |
+
"k_proj",
|
| 27 |
+
"v_proj",
|
| 28 |
+
"q_proj"
|
| 29 |
+
],
|
| 30 |
+
"task_type": "CAUSAL_LM",
|
| 31 |
+
"use_dora": false,
|
| 32 |
+
"use_rslora": false
|
| 33 |
+
}
|
query_rewrite/lora/granite-3.3-2b-instruct/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd32d3a2e95d08873873de4910e22c0b5a89b1cd52a322c360c03dc18ad6ec10
|
| 3 |
+
size 47218112
|
query_rewrite/lora/granite-3.3-2b-instruct/io.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Model name string, or null to use whatever is provided in the chat completion request
|
| 2 |
+
model: ~
|
| 3 |
+
# JSON schema of the model's output
|
| 4 |
+
response_format: |
|
| 5 |
+
{
|
| 6 |
+
"properties": {
|
| 7 |
+
"rewritten_question": {
|
| 8 |
+
"title": "Rewritten Question",
|
| 9 |
+
"type": "string"
|
| 10 |
+
}
|
| 11 |
+
},
|
| 12 |
+
"required": [
|
| 13 |
+
"rewritten_question"
|
| 14 |
+
],
|
| 15 |
+
"title": "QueryRewriteOutput",
|
| 16 |
+
"type": "object"
|
| 17 |
+
}
|
| 18 |
+
transformations: ~
|
| 19 |
+
instruction: ~
|
| 20 |
+
parameters:
|
| 21 |
+
max_completion_tokens: 1024
|
| 22 |
+
sentence_boundaries: false
|
query_rewrite/lora/granite-3.3-8b-instruct/io.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"messages": [
|
| 3 |
-
{
|
| 4 |
-
"role": "assistant",
|
| 5 |
-
"content": "Welcome to pet questions!"
|
| 6 |
-
},
|
| 7 |
-
{
|
| 8 |
-
"role": "user",
|
| 9 |
-
"content": "I have two pets, a dog named Rex and a cat named Lucy."
|
| 10 |
-
},
|
| 11 |
-
{
|
| 12 |
-
"role": "assistant",
|
| 13 |
-
"content": "Great, what would you like to share about them?"
|
| 14 |
-
},
|
| 15 |
-
{
|
| 16 |
-
"role": "user",
|
| 17 |
-
"content": "Rex spends a lot of time in the backyard and outdoors, and Luna is always inside."
|
| 18 |
-
},
|
| 19 |
-
{
|
| 20 |
-
"role": "assistant",
|
| 21 |
-
"content": "Sounds good! Rex must love exploring outside, while Lucy probably enjoys her cozy indoor life."
|
| 22 |
-
},
|
| 23 |
-
{
|
| 24 |
-
"role": "user",
|
| 25 |
-
"content": "But is he more likely to get fleas because of that?"
|
| 26 |
-
}
|
| 27 |
-
],
|
| 28 |
-
"temperature": 0.0,
|
| 29 |
-
"n": 1024
|
| 30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
query_rewrite/lora/granite-3.3-8b-instruct/io.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Model name string, or null to use whatever is provided in the chat completion request
|
| 2 |
+
model: ~
|
| 3 |
+
# JSON schema of the model's output
|
| 4 |
+
response_format: |
|
| 5 |
+
{
|
| 6 |
+
"properties": {
|
| 7 |
+
"rewritten_question": {
|
| 8 |
+
"title": "Rewritten Question",
|
| 9 |
+
"type": "string"
|
| 10 |
+
}
|
| 11 |
+
},
|
| 12 |
+
"required": [
|
| 13 |
+
"rewritten_question"
|
| 14 |
+
],
|
| 15 |
+
"title": "QueryRewriteOutput",
|
| 16 |
+
"type": "object"
|
| 17 |
+
}
|
| 18 |
+
transformations: ~
|
| 19 |
+
instruction: ~
|
| 20 |
+
parameters:
|
| 21 |
+
max_completion_tokens: 1024
|
| 22 |
+
sentence_boundaries: false
|