pmetal-core
Core abstractions and types for the PMetal framework.
Overview
This crate provides the foundational types, traits, and configurations used throughout the PMetal ecosystem. It defines the contracts that all other crates depend on.
Features
- Configuration Types:
ModelConfig,LoraConfig,TrainingConfig,DatasetConfig - Core Traits:
Model,Trainer,Quantizer,LLMModel - Common Types:
Dtype,Device,QuantizationType - Secret Handling:
SecretStringfor secure token/credential storage
Usage
use *;
// Configure LoRA training
let lora_config = LoraConfig ;
// Configure training
let training_config = TrainingConfig ;
Modules
| Module | Description |
|---|---|
config |
Configuration structures for models, training, and data |
traits |
Core trait definitions for models and trainers |
types |
Common type definitions and enums |
error |
Error types and handling |
secrets |
Secure string handling for credentials |
License
MIT OR Apache-2.0