Skip to content

Commit

Permalink
feat: remove dead code (metavoiceio#23)
Browse files Browse the repository at this point in the history
* remove: dead ode

* update: README.md

---------

Co-authored-by: sid <sid@themetavoice.xyz>
  • Loading branch information
vatsalaggarwal and sid authored Feb 8, 2024
1 parent 11428f9 commit a52ac77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 70 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MetaVoice-1B is a 1.2B parameter base model trained on 100K hours of speech for

We’re releasing MetaVoice-1B under the Apache 2.0 license, *it can be used without restrictions*.

Try out [demo](https://ttsdemo.themetavoice.xyz/)!
Try out the [demo](https://ttsdemo.themetavoice.xyz/)!

## Installation
```bash
Expand All @@ -36,7 +36,7 @@ python fam/llm/sample.py --huggingface_repo_id="metavoiceio/metavoice-1B-v0.1" -
python fam/llm/serving.py --huggingface_repo_id="metavoiceio/metavoice-1B-v0.1"
```

3. Use it on HuggingFace
3. Use it via [HuggingFace](https://huggingface.co/metavoiceio)

## Soon
- Long form TTS
Expand Down
62 changes: 0 additions & 62 deletions fam/llm/mixins/gpt2loading.py

This file was deleted.

8 changes: 2 additions & 6 deletions fam/llm/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
from torch.nn import functional as F

from fam.llm.layers import Block, LayerNorm, RMSNorm
from fam.llm.mixins import (
CausalInferenceMixin,
GPT2LoadingMixin,
NonCausalInferenceMixin,
)
from fam.llm.mixins import CausalInferenceMixin, NonCausalInferenceMixin

END_OF_TEXT_TOKEN = 1537

Expand Down Expand Up @@ -80,7 +76,7 @@ def _check_speaker_emb_dims(
return speaker_embs


class GPT(nn.Module, NonCausalInferenceMixin, CausalInferenceMixin, GPT2LoadingMixin):
class GPT(nn.Module, NonCausalInferenceMixin, CausalInferenceMixin):
def __init__(self, config: GPTConfig, speaker_emb_dim: Optional[int] = None):
"""
Initialize the GPT model.
Expand Down

0 comments on commit a52ac77

Please sign in to comment.