-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
- Loading branch information
Showing
18 changed files
with
145 additions
and
85 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
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
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
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
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,46 @@ | ||
/* | ||
Appellation: config <module> | ||
Contrib: FL03 <jo3mccain@icloud.com> | ||
*/ | ||
|
||
|
||
pub struct TransformerConfig { | ||
pub heads: usize, | ||
} | ||
|
||
pub struct Features { | ||
|
||
pub d_model: usize, | ||
|
||
} | ||
|
||
pub struct QkvShape { | ||
pub dq: usize, | ||
pub dk: usize, | ||
pub dv: usize, | ||
} | ||
|
||
impl QkvShape { | ||
pub fn new(dq: usize, dk: usize, dv: usize) -> Self { | ||
Self { | ||
dq, | ||
dk, | ||
dv, | ||
} | ||
} | ||
|
||
pub fn std(dk: usize) -> Self { | ||
let (dq, dv) = (dk, dk); | ||
|
||
Self::new(dq, dk, dv) | ||
} | ||
} | ||
|
||
|
||
pub struct EmbedConfig { | ||
|
||
} | ||
|
||
pub struct FFNConfig { | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.