mod cache;
pub mod config;
pub mod controller;
mod downloader;
pub mod filter;
pub mod filtered_router;
pub mod load_estimator;
pub mod predictor;
pub mod routing;
mod source;
pub mod state_tracker;
pub use cache::LoRACache;
pub use config::{LoraAllocationConfig, McfConfig};
pub use controller::LoraController;
pub use downloader::LoRADownloader;
pub use filter::LoraFilter;
pub use filtered_router::LoraFilteredRouter;
pub use load_estimator::{LoadEstimator, LoadEstimatorConfig};
pub use routing::{
AllocationAlgorithmType, LoraAllocator, LoraReplicaConfig, LoraRoutingTable,
McfPlacementResult, McfPlacementSolver, McfSolveParams, RendezvousHasher,
create_lora_allocator,
};
pub use source::{HuggingFaceLoRASource, LoRASource, LocalLoRASource, S3LoRASource};
pub use state_tracker::LoraStateTracker;
pub fn lora_serving_enabled() -> bool {
std::env::var(dynamo_runtime::config::environment_names::llm::DYN_LORA_ENABLED)
.map(|v| matches!(v.to_lowercase().as_str(), "true" | "1" | "yes"))
.unwrap_or(false)
}