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:
osobh
2026-04-12 07:01:58 -07:00
co-authored by Claude Opus 4.6
parent bc88a14fa1
commit 02d382d5f6
302 changed files with 1805 additions and 1590 deletions
@@ -92,13 +92,13 @@ impl Default for LLaMAConfig {
impl LLaMAConfig {
/// Create `LLaMA` 7B configuration
#[must_use]
#[must_use]
pub fn llama_7b() -> Self {
Self::default()
}
/// Create `LLaMA` 13B configuration
#[must_use]
#[must_use]
pub fn llama_13b() -> Self {
let mut config = Self::default();
config.hidden_size = 5120;
@@ -110,7 +110,7 @@ impl LLaMAConfig {
}
/// Create `LLaMA` 30B configuration
#[must_use]
#[must_use]
pub fn llama_30b() -> Self {
let mut config = Self::default();
config.hidden_size = 6656;
@@ -122,7 +122,7 @@ impl LLaMAConfig {
}
/// Create `LLaMA` 65B configuration
#[must_use]
#[must_use]
pub fn llama_65b() -> Self {
let mut config = Self::default();
config.hidden_size = 8192;
@@ -552,7 +552,7 @@ impl RMSNorm {
}
/// Get the weight tensor (for parameter access)
#[must_use]
#[must_use]
pub fn weight(&self) -> &Tensor {
&self.weight
}