DataoceanAI commited on
Commit
edb16af
·
verified ·
1 Parent(s): 35edd21

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -6
README.md CHANGED
@@ -18,7 +18,6 @@ frameworks:
18
 
19
  ---
20
 
21
-
22
  # Dolphin-Fangyan
23
 
24
  [Paper](https://arxiv.org/abs/2503.20212)
@@ -98,8 +97,8 @@ Currently, Dolphin-Fangyan provides multiple model sizes optimized for different
98
  |:------:|:----------:|:----------:|
99
  | base.fangyan | 74 M | ❌ |
100
  | base.fangyan.streaming | 74 M |❌ |
101
- | small.fangyan | 0.4 B | Encode-biased Hotwords |
102
- | small.fangyan.streaming | 0.4 B | Encode-biased Hotwords |
103
  | small.fangyan.prompt | 0.4 B | Prompt-based Hotwords |
104
 
105
 
@@ -193,8 +192,7 @@ import dolphin
193
  from dolphin import transcribe
194
 
195
  model_name = 'small.fangyan'
196
- model = dolphin.load_model(model_name, f"/home/duhu/.cache/dolphin/{model_name}", "cpu")
197
- # model = dolphin.load_model(model_name, f"/data/models/dolphin/{model_name}", "cpu")
198
 
199
  result = transcribe(model, 'audio.wav')
200
  print(result.text)
@@ -210,7 +208,7 @@ print(result.text)
210
  ## prompt-based hotwords
211
 
212
  model_name = 'small.fangyan.prompt'
213
- model = dolphin.load_model(model_name, f"/home/duhu/.cache/dolphin/{model_name}", "cpu")
214
 
215
  result = transcribe(model, 'audio.wav', hotwords=['诺香丹青牌科研胶囊'], use_prompt_hotword=True, use_two_stage_filter=True, decoding_method='attention')
216
 
 
18
 
19
  ---
20
 
 
21
  # Dolphin-Fangyan
22
 
23
  [Paper](https://arxiv.org/abs/2503.20212)
 
97
  |:------:|:----------:|:----------:|
98
  | base.fangyan | 74 M | ❌ |
99
  | base.fangyan.streaming | 74 M |❌ |
100
+ | small.fangyan | 0.4 B | Encoder-biased Hotwords |
101
+ | small.fangyan.streaming | 0.4 B | Encoder-biased Hotwords |
102
  | small.fangyan.prompt | 0.4 B | Prompt-based Hotwords |
103
 
104
 
 
192
  from dolphin import transcribe
193
 
194
  model_name = 'small.fangyan'
195
+ model = dolphin.load_model(model_name, f"/data/models/dolphin/{model_name}", "cuda")
 
196
 
197
  result = transcribe(model, 'audio.wav')
198
  print(result.text)
 
208
  ## prompt-based hotwords
209
 
210
  model_name = 'small.fangyan.prompt'
211
+ model = dolphin.load_model(model_name, f"/data/models/dolphin/{model_name}", "cuda")
212
 
213
  result = transcribe(model, 'audio.wav', hotwords=['诺香丹青牌科研胶囊'], use_prompt_hotword=True, use_two_stage_filter=True, decoding_method='attention')
214