Closed sooraj1002 closed 4 months ago
[!WARNING]
Review failed
The pull request is closed.
These updates primarily focus on enhancing the ML model management within the Django-based application. New models and fields for ML model configurations, deployment, and training metadata have been added. These changes allow for more detailed and flexible configurations, simplifying user interactions with the ML systems while also making the model management more robust.
File Path | Change Summary |
---|---|
workflow/migrations/0027_... | Added MLModelConfig model and altered llm_model in the workflows model. |
workflow/migrations/0028_... | Added config field to mlmodel with ForeignKey to mlmodelconfig . |
workflow/migrations/0029_... | Introduced deployed_at field to mlmodel . |
workflow/migrations/0030_... | Removed user field from TrainingMetadata and added it to mlmodel as a ForeignKey. |
workflow/migrations/0031_... | Removed label_studio_component -related fields, added JSON fields to mlmodel . |
workflow/migrations/0032_... | Renamed uploaded_at to last_trained in the mlmodel model. |
workflow/migrations/0033_... | Added task field to mlmodel . |
workflow/mixins.py | Added MLModel , MLModelConfig , and related methods; enhanced CreateMLBaseMixin handling. |
workflow/models.py | Updated MLModel with new fields and created MLModelConfig and TrainingMetadata classes. |
workflow/serializers.py | Renamed uploaded_at to last_trained ; added task field to serializers. |
workflow/training/train.py | Changed uploaded_at to last_trained in training method. |
workflow/urls.py | Adjusted import and URL pattern for ForceAlignmentView . |
workflow/utils.py | Updated task configurations, renamed fields from camelCase to snake_case. |
workflow/views.py | Modified views to include CreateMLBaseMixin and adapted TrainModelView and MLModelListView . |
sequenceDiagram
participant User
participant ClientApp
participant Server
participant DB
User->>ClientApp: Initiates ML Model Training
ClientApp->>Server: Send Training Request
Server->>DB: Save MLModelConfig
Server->>DB: Save MLModel with Config FK
Server->>ML Engine: Train Model
ML Engine-->>Server: Training Complete
Server->>DB: Update MLModel (last_trained, deployed_at)
Server-->>ClientApp: Training Complete
ClientApp-->>User: Notify Completion
In fields of code, where models grow,
A rabbit prances, swift to show,
With configs new and prompts so grand,
The ML world is at your command. 🌾
JSON fields and tasks in flight,
Deployed with care, trained just right.
Oh, how the data flows tonight! 🌙
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are currently opted into early access features by default.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
MLModelConfig
model for better model configuration management.task
,deployed_at
,last_trained
,label_studio_element
, andtelemetry_data_field
toMLModel
.Enhancements
uploaded_at
field tolast_trained
for clarity.MLModel
configuration with ForeignKey relationships toMLModelConfig
.Bug Fixes
Refactor
CreateMLBaseMixin
for improved code reuse and user-specific model handling.Documentation