-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better batching, handling of default model, simple flow to get respon…
…ses (#6) * feat: Add a simple flow to get granite model responses Signed-off-by: shiv-sr <[email protected]> * refactor: Split dataset into smaller batches for improved processing This commit modifies the class in to split the dataset into smaller batches for improved processing. The code now uses start and end ids of the batch to split dataset and creates a batch on the fly rather than creating the batches apriori. This is necessary for large datasets. Signed-off-by: shiv-sr <[email protected]> * refactor: Update LLMBlock to use default model if model_id is not provided This commit modifies the LLMBlock class in llmblock.py to use the default model if the model_id is not provided. It checks if the model_id is None and if so, retrieves the default model id from the client. This ensures that the LLMBlock can still function even if the model_id is not explicitly specified. Signed-off-by: shiv-sr <[email protected]> * refactor: Remove commented out code for dataset batching The code changes in sdg.py remove the commented out code that was used for dataset batching. This code is no longer needed and can be safely removed. Signed-off-by: shiv-sr <[email protected]> --------- Signed-off-by: shiv-sr <[email protected]>
- Loading branch information
Shivchander Sudalairaj
authored and
GitHub Enterprise
committed
Aug 14, 2024
1 parent
0fea5ec
commit 3c1c491
Showing
5 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
system: | ||
introduction: | ||
principles: | ||
examples: | ||
generation: | | ||
{question} | ||
start_tags: [""] | ||
end_tags: [""] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- block_type: LLMBlock | ||
block_config: | ||
block_name: gen_response | ||
config_path: configs/skills/respond.yaml | ||
model_family: rhelai | ||
output_cols: | ||
- gen_response | ||
gen_kwargs: | ||
temperature: 0 | ||
max_tokens: 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters