mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 07:57:44 +00:00
3e9ba73c2f
* prune model task * add component_description * add model removal logic to component, hypo, and task gen * fix ci * adjust coder to meet the requirement of model removal * fix and refine the logic of model removal * add model removal logic in model_eval * fix ci * fix ci * prune some unnecessary codes
22 lines
614 B
Python
22 lines
614 B
Python
from typing import Dict, Optional
|
|
|
|
from rdagent.components.coder.CoSTEER.task import CoSTEERTask
|
|
|
|
|
|
# Because we use isinstance to distinguish between different types of tasks, we need to use sub classes to represent different types of tasks
|
|
class ModelTask(CoSTEERTask):
|
|
def __init__(
|
|
self,
|
|
name: str,
|
|
description: str,
|
|
*args,
|
|
**kwargs,
|
|
) -> None:
|
|
super().__init__(name=name, description=description, *args, **kwargs)
|
|
|
|
def get_task_information(self):
|
|
task_desc = f"""name: {self.name}
|
|
description: {self.description}
|
|
"""
|
|
return task_desc
|