style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -93,7 +93,7 @@ pub fn validate_gpt_config(config: &GPTConfig) -> Result<()> {
|
||||
}
|
||||
|
||||
/// Estimate the number of parameters in a GPT model
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn estimate_gpt_parameters(config: &GPTConfig) -> usize {
|
||||
// Token embeddings
|
||||
let token_embedding_params = config.vocab_size * config.hidden_size;
|
||||
|
||||
Reference in New Issue
Block a user