Skip to content

Commit aa4e633

Browse files
authoredNov 7, 2023
actual release 1.1.0 (#345)
* actual release * test * adding library name
1 parent f73b7ae commit aa4e633

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed
 

‎.github/actions/audiocraft_build/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ runs:
2121
python3 -m venv env
2222
. env/bin/activate
2323
python -m pip install --upgrade pip
24-
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
25-
pip install --pre xformers
24+
pip install torch torchvision torchaudio
25+
pip install xformers
2626
pip install -e '.[dev]'
2727
- name: System Dependencies
2828
shell: bash

‎CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77

8-
## [1.1.0a] - TBD
8+
## [1.1.0] - 2023-11-06
99

1010
Not using torchaudio anymore when writing audio files, relying instead directly on the commandline ffmpeg. Also not using it anymore for reading audio files, for similar reasons.
1111

‎audiocraft/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
# flake8: noqa
2424
from . import data, modules, models
2525

26-
__version__ = '1.1.0a1'
26+
__version__ = '1.1.0'

‎audiocraft/models/loaders.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from omegaconf import OmegaConf, DictConfig
2828
import torch
2929

30+
import audiocraft
3031
from . import builders
3132
from .encodec import CompressionModel
3233

@@ -60,7 +61,9 @@ def _get_state_dict(
6061
else:
6162
assert filename is not None, "filename needs to be defined if using HF checkpoints"
6263

63-
file = hf_hub_download(repo_id=file_or_url_or_id, filename=filename, cache_dir=cache_dir)
64+
file = hf_hub_download(
65+
repo_id=file_or_url_or_id, filename=filename, cache_dir=cache_dir,
66+
library_name="audiocraft", library_version=audiocraft.__version__)
6467
return torch.load(file, map_location=device)
6568

6669

0 commit comments

Comments
 (0)
Failed to load comments.