-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DH-5033/ finalized llm finetuning with openai
- Loading branch information
1 parent
9922110
commit d683a32
Showing
6 changed files
with
165 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
from dataherald.config import Component | ||
from dataherald.types import Finetuning | ||
|
||
|
||
class FinetuningModel(Component, ABC): | ||
def __init__(self, storage): | ||
self.storage = storage | ||
|
||
@abstractmethod | ||
def count_tokens(self, messages: dict) -> int: | ||
pass | ||
|
||
@abstractmethod | ||
def create_fintuning_dataset(self): | ||
pass | ||
|
||
@abstractmethod | ||
def create_fine_tuning_job(self): | ||
pass | ||
|
||
@abstractmethod | ||
def retrieve_finetuning_job(self) -> Finetuning: | ||
pass | ||
|
||
@abstractmethod | ||
def cancel_finetuning_job(self) -> Finetuning: | ||
pass |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters