Iliass Lasri commited on
Commit
ba17403
·
1 Parent(s): 1116ce3

add usage

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md CHANGED
@@ -31,6 +31,22 @@ This quantizer was trained to provide discrete pseudo-labels that are resilient
31
  - **Algorithm:** K-Means
32
  - **Dataset:** [LibriSpeech](https://huggingface.co/datasets/librispeech_asr) (`train-clean-100`)
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  ## Relevant Links
35
  - Original Paper: [Augmentation Invariant Discrete Representation for Generative Spoken Language Modeling (Gat et al., 2023)](https://aclanthology.org/2023.iwslt-1.46/)
36
  - Project Repository: [github](https://github.com/iliasslasri/snlp_project)
 
31
  - **Algorithm:** K-Means
32
  - **Dataset:** [LibriSpeech](https://huggingface.co/datasets/librispeech_asr) (`train-clean-100`)
33
 
34
+ ## Usage
35
+
36
+ ### Download the Model
37
+
38
+ ```python
39
+ from huggingface_hub import hf_hub_download
40
+
41
+ model_path = hf_hub_download(repo_id="iliasslasri/robust_speech_quantizer",
42
+ filename="500_vocab_size/round_1/E1_best.pt",
43
+ force_download=True)
44
+ config_path = hf_hub_download(repo_id="iliasslasri/robust_speech_quantizer",
45
+ filename="500_vocab_size/round_1/config.yaml",
46
+ force_download=True)
47
+ ```
48
+
49
+
50
  ## Relevant Links
51
  - Original Paper: [Augmentation Invariant Discrete Representation for Generative Spoken Language Modeling (Gat et al., 2023)](https://aclanthology.org/2023.iwslt-1.46/)
52
  - Project Repository: [github](https://github.com/iliasslasri/snlp_project)