-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add granite documents format (#1566)
* Add granite documents format Signed-off-by: elronbandel <[email protected]> * Update process method to use Optional for stream_name parameter Signed-off-by: elronbandel <[email protected]> --------- Signed-off-by: elronbandel <[email protected]> Co-authored-by: OfirArviv <[email protected]>
- Loading branch information
1 parent
121c268
commit 912dc2a
Showing
4 changed files
with
199 additions
and
2 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,6 @@ | ||
from unitxt.catalog import add_to_catalog | ||
from unitxt.formats import GraniteDocumentsFormat | ||
|
||
format = GraniteDocumentsFormat(model="ibm-granite/granite-3.1-8b-instruct") | ||
|
||
add_to_catalog(format, "formats.models.granite_3_1_documents", overwrite=True) |
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,4 @@ | ||
{ | ||
"__type__": "granite_documents_format", | ||
"model": "ibm-granite/granite-3.1-8b-instruct" | ||
} |
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