Instructions to use hf-audio/xcodec2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-audio/xcodec2 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hf-audio/xcodec2", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -22,9 +22,7 @@ Its architecture is based on X-Codec with several major differences:
|
|
| 22 |
|
| 23 |
## Usage example
|
| 24 |
|
| 25 |
-
Since Xcodec2 isn't yet merged into Transformers, you can install from source from the [corresponding fork](https://github.com/Deep-unlearning/transformers/tree/add-xcodec2)
|
| 26 |
-
|
| 27 |
-
Setup
|
| 28 |
```python
|
| 29 |
pip install git+https://github.com/Deep-unlearning/transformers.git@add-xcodec2
|
| 30 |
```
|
|
|
|
| 22 |
|
| 23 |
## Usage example
|
| 24 |
|
| 25 |
+
Since Xcodec2 isn't yet merged into Transformers, you can install from source from the [corresponding fork](https://github.com/Deep-unlearning/transformers/tree/add-xcodec2):
|
|
|
|
|
|
|
| 26 |
```python
|
| 27 |
pip install git+https://github.com/Deep-unlearning/transformers.git@add-xcodec2
|
| 28 |
```
|