Expand description
PyTorch-shaped embedding generation — currently a deterministic MOCK, not real PyTorch inference.
PyTorchEmbedder models the API a real tch (libtorch FFI) or
candle-core (Pure Rust) backed embedder would expose, but
PyTorchEmbedder::load_model and the internal forward pass never
actually load a model or run a neural network: they only validate that
model_path exists and then compute a hash-seeded pseudo-random vector.
tch requires a C++ libtorch FFI dependency, which is disallowed by the
COOLJAPAN Pure Rust Policy for this crate’s default build; candle-core
is Pure Rust but is not currently a workspace dependency. Until one of
those is wired in, treat this type as test-only / an API placeholder —
do not use it for anything that needs real semantic embeddings.
Structs§
- Device
Manager - Device manager for PyTorch models
- PyTorch
Config - PyTorch model configuration
- PyTorch
Embedder - PyTorch-shaped embedding generator — currently a deterministic mock,
not real PyTorch inference. See the
pytorchmodule-level docs. - PyTorch
Model Manager - PyTorch model manager for handling multiple models
- PyTorch
Model Metadata - PyTorch model metadata
- PyTorch
Tokenizer - PyTorch tokenizer for text preprocessing
Enums§
- Architecture
Type - Neural network architecture types
- Compile
Mode - PyTorch model compilation modes
- PyTorch
Device - PyTorch device configuration