-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bb7a08
commit 60277c0
Showing
82 changed files
with
2,142 additions
and
1,236 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"cSpell.words": [ | ||
"INTERNLM", | ||
"QWEN", | ||
"vidur" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
data/model_configs/codellama/CodeLlama-34b-Instruct-hf.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
from vidur.config.config import Config | ||
|
||
__all__ = [Config] | ||
from .config import * |
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,30 @@ | ||
from abc import ABC | ||
from dataclasses import dataclass | ||
from typing import Any | ||
|
||
from vidur.config.utils import get_all_subclasses | ||
|
||
|
||
@dataclass | ||
class BaseFixedConfig(ABC): | ||
|
||
@classmethod | ||
def create_from_type(cls, type_: Any) -> Any: | ||
for subclass in get_all_subclasses(cls): | ||
if subclass.get_type() == type_: | ||
return subclass() | ||
raise ValueError(f"[{cls.__name__}] Invalid type: {type_}") | ||
|
||
@classmethod | ||
def create_from_name(cls, name: str) -> Any: | ||
for subclass in get_all_subclasses(cls): | ||
if subclass.get_name() == name: | ||
return subclass() | ||
raise ValueError(f"[{cls.__name__}] Invalid name: {name}") | ||
|
||
@classmethod | ||
def create_from_type_string(cls, type_str: str) -> Any: | ||
for subclass in get_all_subclasses(cls): | ||
if str(subclass.get_type()) == type_str: | ||
return subclass() | ||
raise ValueError(f"[{cls.__name__}] Invalid type string: {type_str}") |
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,16 @@ | ||
from abc import ABC | ||
from dataclasses import dataclass | ||
from typing import Any | ||
|
||
from vidur.config.utils import get_all_subclasses | ||
|
||
|
||
@dataclass | ||
class BasePolyConfig(ABC): | ||
|
||
@classmethod | ||
def create_from_type(cls, type_: Any) -> Any: | ||
for subclass in get_all_subclasses(cls): | ||
if subclass.get_type() == type_: | ||
return subclass() | ||
raise ValueError(f"Invalid type: {type_}") |
Oops, something went wrong.