Expand description
Type definitions Core types for UniLLM runtime
This module defines fundamental data structures used throughout the runtime.
Structs§
- Generation
Stats - Generation statistics
- Inference
Inputs - Inference inputs
- Inference
Output - Inference output
- Memory
Requirements - Memory requirements for a model
- Model
Config - Model configuration
- Model
Output - Model output structure
- Model
Weight Metadata - Model weight metadata
- Model
Weights - Container for loaded model weights
- Prepared
Inputs - Prepared inputs for model execution
- Tensor
- Tensor structure with real data storage
- Weight
Metadata - Metadata about loaded weights
Enums§
- Data
Type - Data types supported by tensors
- Device
- Device types for tensor placement
- Model
Error - Error types for model operations
- Model
Feature - Model features that can be supported
- Model
Format - Model format types
- Model
Inputs - Model inputs for forward pass
- Model
Outputs - Model outputs from forward pass
- Model
Precision - Model precision types
- Normalization
Type - Normalization types
- Position
Embedding Type - Position embedding types
- Tensor
Data - Tensor data storage
- Weight
Format - Supported weight file formats for model loading
Functions§
- calculate_
strides - Calculate strides for a given shape (row-major order)
Type Aliases§
- Model
Result - Result type for model operations