zhoukz commited on
Commit
3ac6626
·
1 Parent(s): 44519c3

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +5 -13
README.md CHANGED
@@ -27,19 +27,11 @@ base_model:
27
 
28
  ## Usage
29
 
30
- Dependencies:
31
-
32
- * `transformers`
33
- * `torchaudio`
34
-
35
- TODO:以下由Qwen2.5-Omni-3B依赖,引入路径未知,需要去除
36
-
37
- * `pillow`
38
- * `torchvision`
39
-
40
- ### Inference
41
-
42
  ```python
 
 
 
 
43
  >>> from transformers import AutoModelForCausalLM, AutoProcessor
44
  >>> model = AutoModelForCausalLM.from_pretrained("zhoukz/MiDashengLM-HF-dev", trust_remote_code=True)
45
  >>> model.eval()
@@ -56,7 +48,7 @@ TODO:以下由Qwen2.5-Omni-3B依赖,引入路径未知,需要去除
56
  ... output = processor.batch_decode(generation, skip_special_tokens=True)
57
 
58
  >>> print(output)
59
- ["An engine is idling.'"]
60
  ```
61
 
62
  ## Citation
 
27
 
28
  ## Usage
29
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  ```python
31
+ >>> !pip install "transformers[torch]" torchaudio
32
+ >>> # To load audio files, you may need to install additional dependencies, e.g. ffmpeg:
33
+ >>> # !apt-get install ffmpeg
34
+
35
  >>> from transformers import AutoModelForCausalLM, AutoProcessor
36
  >>> model = AutoModelForCausalLM.from_pretrained("zhoukz/MiDashengLM-HF-dev", trust_remote_code=True)
37
  >>> model.eval()
 
48
  ... output = processor.batch_decode(generation, skip_special_tokens=True)
49
 
50
  >>> print(output)
51
+ ["An engine is idling."]
52
  ```
53
 
54
  ## Citation