add readme
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
use crate::{
|
||||
models::{
|
||||
base_modules::{AttentionNobias, MLPNoBias},
|
||||
common::{AttentionNobias, MLPNoBias},
|
||||
voxcpm::config::VoxMiniCPM4Config,
|
||||
},
|
||||
position_embed::rope::compute_default_rope_parameters,
|
||||
@@ -193,7 +193,7 @@ impl MiniCPMDecoderLayer {
|
||||
+ xs.affine(
|
||||
self.scale_depth as f64 / (self.num_hidden_layers as f64).sqrt(),
|
||||
0.0,
|
||||
))?;
|
||||
)?)?;
|
||||
res_add
|
||||
} else {
|
||||
let res_add = (residual + xs)?;
|
||||
@@ -206,7 +206,7 @@ impl MiniCPMDecoderLayer {
|
||||
+ xs.affine(
|
||||
self.scale_depth as f64 / (self.num_hidden_layers as f64).sqrt(),
|
||||
0.0,
|
||||
))?;
|
||||
)?)?;
|
||||
res_add
|
||||
} else {
|
||||
let res_add = (residual + xs)?;
|
||||
|
||||
Reference in New Issue
Block a user