mirror of
https://github.com/gpt-omni/mini-omni
synced 2024-11-16 05:03:47 +00:00
Add mixin
This commit is contained in:
parent
aafb97f765
commit
ca96547590
@ -15,7 +15,7 @@ from typing_extensions import Self
|
||||
from litgpt.config import Config
|
||||
|
||||
|
||||
class GPT(nn.Module):
|
||||
class GPT(nn.Module, PyTorchModelHubMixin, repo_url="https://github.com/gpt-omni/mini-omni", pipeline_tag="text-to-speech", license="mit"):
|
||||
def __init__(self, config: Config) -> None:
|
||||
super().__init__()
|
||||
assert config.padded_vocab_size is not None
|
||||
|
Loading…
Reference in New Issue
Block a user