Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(extra): aggregtion prompts tuning #83

Merged
merged 13 commits into from
Sep 24, 2024
Prev Previous commit
Next Next commit
fix types issues
  • Loading branch information
micpst committed Aug 17, 2024
commit 596868e4ca2933050810706d534c796a2592d010
5 changes: 3 additions & 2 deletions extra/prompt_tuning/tuning/loaders.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from abc import ABC, abstractmethod
from typing import Dict, Iterable, List
from typing import Iterable, List

import dspy.datasets
from dspy import Example
from omegaconf import DictConfig


class DataLoader(ABC):
"""
Data loader.
"""

def __init__(self, config: Dict) -> None:
def __init__(self, config: DictConfig) -> None:
self.config = config

@abstractmethod
Expand Down
Loading