Comments (3)
I've also observed this in the log:
04/01/2024 00:35:47 - WARNING - accelerate.utils.other - Removed shared tensor {'proj_out.weight'} while saving. This should be OK, but check by verifying that you don't receive any warning while reloading
from distil-whisper.
any updates on this ? I'm facing the same problem
from distil-whisper.
Here's a temporary fix according to https://huggingface.co/docs/safetensors/torch_shared_tensors
Modify load_accelerator_state()
: https://github.com/huggingface/accelerate/blob/main/src/accelerate/checkpointing.py#L153
-from safetensors.torch import load_file
+from safetensors.torch import load_model
...
if input_model_file.exists():
- state_dict = load_file(input_model_file, device=str(map_location))
+ load_model(models[i], input_model_file, device=str(map_location), **load_model_func_kwargs)
else:
# Load with torch
input_model_file = input_dir.joinpath(f"{MODEL_NAME}{ending}.bin")
state_dict = torch.load(input_model_file, map_location=map_location)
- models[i].load_state_dict(state_dict, **load_model_func_kwargs)
+ models[i].load_state_dict(state_dict, **load_model_func_kwargs)
from distil-whisper.
Related Issues (20)
- large-v2 for english lost voice to text HOT 1
- Finetuning on which model? HOT 1
- [Issue] latest run_pseudo_labelling.py
- [Question] Can we distill for multiple langauges for distil-small-whisper HOT 3
- Quantize distil-whisper?
- perceptually faster inference through pre-completion inference of audio
- RuntimeError: User specified an unsupported autocast device_type 'mps'
- question about when to apply WER threshold filtering strategy with concatenated audio
- Problems in concatenate_dataset
- How to set the target language for examples in README? HOT 7
- Unable to reproduce results from the paper HOT 6
- Question: should the pseudo-labelling model and teacher model be the same? HOT 2
- BetterTransformer optimization / flash_attn{_2} HOT 6
- Cached English Common Voice dataset size. HOT 1
- How to use distil-whisper-large-v3-de-kd model from HF? HOT 10
- Pseudo-labelling librispeech_asr (train.360): KeyError `train-360` when not streaming. HOT 1
- Training README datasets table: text column and id column HOT 4
- Voxpopuli text column "raw_text" HF dataset card shows empty string. HOT 1
- any executable script for running on custom data/given dataset HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distil-whisper.