Repository navigation
v1.1.9
π¦ Release Summary: Multi-Model Serving & Enhanced CLI
π New Features
β Multi-Model Serving System
- Introduced
eai model serveβ launch all downloaded models simultaneously with a single command. - New
--main-hashflag to designate the primary model (automatically selected at random if unspecified). - Zero-config discovery of models from the
llms-storagedirectory β no manual setup required. - Native support for mixed task types in a unified server instance:
- π§ Chat
- 𧬠Embedding
- πΌοΈ Image Generation
Coming soon: ποΈ Video Generation, ποΈ Audio Recognition, and more!
π€ New Models
- Devstral-Small by Mistral AI is now supported!
A compact, high-performance coding model designed for developer productivity β combining speed and efficiency with low resource usage.
Preserved on Lighthouse by EternalAI with content hash:
bafkreicr66zguzdldiqal4jdyrcd6y26lfaiy4glkah7n3hdve2ailptue
π View in CryptoModels
π οΈ Enhanced Model Management
- Smarter validation with improved error messaging.
- Automatic fallback to the main model when a requested model is missing or invalid.
- Dynamic per-request model switching using the
modelfield (by content hash).
Switching Logic Flow:
Incoming Request
β
Check Model Field
β
Model Field Present?
ββ NO β Use Main Model (immediate)
ββ YES β Is Requested Model Valid?
ββ NO β Use Main Model (fallback)
ββ YES β Is Requested Model Active?
ββ YES β Process Request Immediately
ββ NO β Check for Active Streams
ββ Streams Active β Wait for Completion
ββ No Streams β Switch Model β Process Request
π Documentation Improvements
π Multi-Model User Guide
- Comprehensive setup and usage guide for
eai model serve. - Endpoint-specific examples for:
POST /v1/chat/completionsPOST /v1/embeddingsPOST /v1/images/generations
- In-depth explanation of model-switching mechanics and fallback flow.
- Tips for performance tuning and deployment scaling.
π API Clarity
- Extended
/v1/modelsdocumentation (thanks to @ihubanov in PR #7). - Transparent mapping from discovered models to routing logic.
- Switched from folder-based to hash-based model identification.
- Included flowcharts and diagrams to visualize request handling and model selection.
π§ Technical Enhancements
- Automatic fallback model selection when
--main-hashis omitted. - Refined CLI UX with improved help menus and clearer command-line options.
- More robust discovery logic and validation for downloaded models.
- Cleaner error reporting for missing or malformed model hashes.
π‘ Key Benefits
- One Command to Rule Them All β serve multiple models effortlessly.
- Hot Model Switching β swap models on-the-fly with no restart.
- Built for Devs β intuitive CLI, detailed docs, and great DX.
This release marks a major leap toward flexible multi-model deployments.
Dive in and explore the new capabilities today!