Skip to content

Commit

Permalink
Added other missing resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Emulator000 committed May 11, 2023
1 parent 7e00a22 commit a3f484e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/pipelines/conversation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@ impl ConversationModel {

let mut output = HashMap::with_capacity(active_uuid.len());

println!("generated: {:#?}, prompt_ids: {:#?}", &generated, &prompt_ids);

for (
((conversation, (generated_sequence, conversation_promp_ids)), uuid),
removed_padding,
Expand Down
19 changes: 17 additions & 2 deletions src/t5/t5_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ impl T5ModelResources {
"godel-v1-1-base/model",
"https://huggingface.co/microsoft/GODEL-v1_1-base-seq2seq/resolve/main/rust_model.ot",
);
/// Shared under MIT license by the Microsoft team at <https://huggingface.co/microsoft/GODEL-v1_1-base-seq2seq>. Modified with conversion to C-array format.
pub const GODEL_V1_1_LARGE: (&'static str, &'static str) = (
"godel-v1-1-large/model",
"https://huggingface.co/microsoft/GODEL-v1_1-large-seq2seq/resolve/main/rust_model.ot",
);
}

impl T5ConfigResources {
Expand All @@ -89,6 +94,11 @@ impl T5ConfigResources {
"godel-v1-1-base/config",
"https://huggingface.co/microsoft/GODEL-v1_1-base-seq2seq/resolve/main/config.json",
);
/// Shared under MIT license by the Microsoft team at <https://huggingface.co/microsoft/GODEL-v1_1-base-seq2seq>. Modified with conversion to C-array format.
pub const GODEL_V1_1_LARGE: (&'static str, &'static str) = (
"godel-v1-1-large/config",
"https://huggingface.co/microsoft/GODEL-v1_1-large-seq2seq/resolve/main/config.json",
);
}

impl T5VocabResources {
Expand All @@ -107,10 +117,15 @@ impl T5VocabResources {
"sentence-t5-base/spiece",
"https://huggingface.co/sentence-transformers/sentence-t5-base/resolve/main/spiece.model",
);
/// Shared under MIT license by the Microsoft team at <https://huggingface.co/microsoft/GODEL-v1_1-base-seq2seq>. Modified with conversion to C-array format.
/// Shared under Apache 2.0 license by the Google team at <https://github.com/google-research/text-to-text-transfer-transformer>.
pub const GODEL_V1_1_BASE: (&'static str, &'static str) = (
"godel-v1-1-base/spiece",
"https://huggingface.co/microsoft/GODEL-v1_1-base-seq2seq/resolve/main/spiece.model",
"https://huggingface.co/t5-base/resolve/main/spiece.model",
);
/// Shared under Apache 2.0 license by the Google team at <https://github.com/google-research/text-to-text-transfer-transformer>.
pub const GODEL_V1_1_LARGE: (&'static str, &'static str) = (
"godel-v1-1-large/spiece",
"https://huggingface.co/t5-large/resolve/main/spiece.model",
);
}

Expand Down

0 comments on commit a3f484e

Please sign in to comment.