docs.rs failed to build ruda-nn-0.21.27
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
ruda-nn-0.21.10
ruda-nn
Neural-network layers, activation modules, padding, and loss functions for Ruda models. Layers operate through tensor backend contracts rather than selecting a GPU driver themselves.
Interfaces
modulescontains neural-network layer implementations and is re-exported at the crate root.activationexposes activation modules;lossexposes loss functions.Initializeris re-exported fromruda-modelfor parameter initialization.LoRALinearConfig::init(base)freezes an existing dense projection and adds trainable A/B adapters.merge()produces a frozen, dropout-free dense projection.loss::CausalLanguageModelseparates decoder hidden states from the vocabulary head.CausalCrossEntropyConfigprojects full-vocabulary token chunks, handles shifted/ignored labels, and returns an FP32 loss sum with the effective token count. Chunking does not recompute the backward graph.
Usage
Cargo package: ruda-nn. Rust import: ruda_nn.
[]
= "0.21"
Features
Default features: std, ruda-model/default.
| Feature | Purpose |
|---|---|
std |
Enable standard-library model integration. |
sparse |
Enable sparse layer support. |
cuda |
Enable the CUDA tensor dependency. |
fusion |
Enable device-fusion integration. |