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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user