Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions crates/ruvector-graph-transformer-wasm/pkg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Ruvector Team"
],
"description": "WASM bindings for ruvector-graph-transformer: proof-gated graph attention in the browser",
"version": "2.2.0",
"version": "2.2.2",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -28,4 +28,4 @@
"verified",
"webassembly"
]
}
}
Binary file not shown.
4 changes: 2 additions & 2 deletions crates/ruvector-sparse-inference/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub use precision::{
Quantizer5Bit, Quantizer7Bit,
};
pub use predictor::{LowRankPredictor, Predictor};
pub use sparse::{FeedForward, SparseFfn};
pub use sparse::{FeedForward, SparseFfn, TernarySparseFfn};

/// Sparse inference engine that coordinates prediction and computation
pub struct SparseInferenceEngine {
Expand All @@ -89,7 +89,7 @@ pub struct SparseInferenceEngine {
impl SparseInferenceEngine {
/// Create a new sparse inference engine with sparsity
///
/// The sparsity_ratio determines what fraction of neurons are kept active (0.0-1.0)
/// The sparsity_ratio determines what fraction of neurons are kepped active (0.0-1.0)
/// e.g., sparsity_ratio=0.3 means 30% of neurons are active (70% sparsity)
pub fn new_sparse(input_dim: usize, hidden_dim: usize, sparsity_ratio: f32) -> Result<Self> {
// Use top-K selection based on sparsity ratio for reliable activation
Expand Down
2 changes: 2 additions & 0 deletions crates/ruvector-sparse-inference/src/sparse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
//! This module provides sparse implementations of neural network layers.

mod ffn;
mod ternary_ffn;

pub use crate::config::ActivationType;
pub use ffn::SparseFfn;
pub use ternary_ffn::TernarySparseFfn;

/// Trait for feed-forward network layers.
pub trait FeedForward: Send + Sync {
Expand Down
Loading