Run this model with HF Jobs
Run patrickvonplaten/wav2vec2_tiny_random_robust on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/patrickvonplaten/wav2vec2_tiny_random_robust. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/patrickvonplaten/wav2vec2_tiny_random_robust on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use patrickvonplaten/wav2vec2_tiny_random_robust with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use patrickvonplaten/wav2vec2_tiny_random_robust with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="patrickvonplaten/wav2vec2_tiny_random_robust")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("patrickvonplaten/wav2vec2_tiny_random_robust") model = AutoModel.from_pretrained("patrickvonplaten/wav2vec2_tiny_random_robust", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
bf9b1e6
1
Parent(s): a1b0827
upload
Browse filesFiles changed (7)
- config.json+1-1
- preprocessor_config.jsonAdded+9
- pytorch_model.bin+1-1
- run.shAdded+2
- special_tokens_map.jsonAdded+1
- tokenizer_config.jsonAdded+1
- vocab.jsonAdded+1
46 unmodified lines474849505146 unmodified lines"num_hidden_layers": 2,"pad_token_id": 0,"transformers_version": "4.6.0.dev0","vocab_size": 32}46 unmodified lines474849505146 unmodified lines"num_hidden_layers": 2,"pad_token_id": 0,"transformers_version": "4.6.0.dev0","vocab_size": 12}
123456789{ "do_normalize": true, "feature_extractor_type": "Wav2Vec2FeatureExtractor", "feature_size": 1, "padding_side": "right", "padding_value": 0.0, "return_attention_mask": false, "sampling_rate": 16000}123version https://git-lfs.github.com/spec/v1oid sha256:487f6322674b5e608eb056e6b3d5c210abd3d04258137e59a4e6c83139cdf46dsize 1233503123version https://git-lfs.github.com/spec/v1oid sha256:40bff8e06f2ac9a5931ed60695d028ef72168eab7933427900a90ffb6ec76a03size 1233503
12#!/usr/bin/env bashpython ../transformers/examples/research_projects/wav2vec2/run_asr.py --output_dir=output_dir --num_train_epochs=1 --per_device_train_batch_size=2 --per_device_eval_batch_size=2 --evaluation_strategy=steps --save_steps=500 --eval_steps=100 --logging_steps=50 --learning_rate=5e-4 --warmup_steps=3000 --model_name_or_path=./wav2vec2_tiny_random_robust --dataset_name=patrickvonplaten/librispeech_asr_dummy --dataset_config_name=clean --train_split_name=validation --validation_split_name=validation --orthography=timit --preprocessing_num_workers=1 --group_by_length --freeze_feature_extractor --verbose_logging1{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>"}1{"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "pad_token": "<pad>", "do_lower_case": false, "word_delimiter_token": "|"}1{"a": 0, "b": 1, "c": 2, "d": 3, "e": 4, "f": 5, "g": 6, "<s>": 7, "</s>": 8, "<unk>": 9, "<pad>": 10, "|": 11}config.json+1-1
preprocessor_config.jsonAdded+9
pytorch_model.bin+1-1
run.shAdded+2
special_tokens_map.jsonAdded+1
tokenizer_config.jsonAdded+1
vocab.jsonAdded+1