tangchangli commited on
Commit
aa4521e
1 Parent(s): 62e16cc

chore: add lora alpha

Browse files
Files changed (3) hide show
  1. README.md +2 -1
  2. cli_inference.py +2 -0
  3. web_demo.py +2 -0
README.md CHANGED
@@ -24,7 +24,8 @@ SALMONN is a large language model (LLM) enabling **speech, audio events, and mus
24
 
25
  ## News
26
 
27
- - [10-08] ✨ We release **the model checkpoint** and **the inference code** of SALMONN !
 
28
 
29
  ## Structure
30
 
 
24
 
25
  ## News
26
 
27
+ - [10-08] ✨ We have released [**the model checkpoint**](https://huggingface.co/tsinghua-ee/SALMONN) and **the inference code** for SALMONN-13B!
28
+ - [11-13] 🎁 We have released a **7B version of SALMONN** at [tsinghua-ee/SALMONN-7B](https://huggingface.co/tsinghua-ee/SALMONN-7B) and built the 7B demo [here](https://huggingface.co/spaces/tsinghua-ee/SALMONN-7B-gradio)!
29
 
30
  ## Structure
31
 
cli_inference.py CHANGED
@@ -24,6 +24,7 @@ if __name__ == "__main__":
24
  parser.add_argument("--whisper_path", type=str, default=None)
25
  parser.add_argument("--beats_path", type=str, default=None)
26
  parser.add_argument("--vicuna_path", type=str, default=None)
 
27
  parser.add_argument("--low_resource", action='store_true', default=False)
28
  parser.add_argument("--debug", action="store_true", default=False)
29
 
@@ -34,6 +35,7 @@ if __name__ == "__main__":
34
  whisper_path=args.whisper_path,
35
  beats_path=args.beats_path,
36
  vicuna_path=args.vicuna_path,
 
37
  low_resource=args.low_resource
38
  )
39
  model.to(args.device)
 
24
  parser.add_argument("--whisper_path", type=str, default=None)
25
  parser.add_argument("--beats_path", type=str, default=None)
26
  parser.add_argument("--vicuna_path", type=str, default=None)
27
+ parser.add_argument("--lora_alpha", type=int, default=32)
28
  parser.add_argument("--low_resource", action='store_true', default=False)
29
  parser.add_argument("--debug", action="store_true", default=False)
30
 
 
35
  whisper_path=args.whisper_path,
36
  beats_path=args.beats_path,
37
  vicuna_path=args.vicuna_path,
38
+ lora_alpha=args.lora_alpha,
39
  low_resource=args.low_resource
40
  )
41
  model.to(args.device)
web_demo.py CHANGED
@@ -28,6 +28,7 @@ parser.add_argument("--whisper_path", type=str, default=None)
28
  parser.add_argument("--beats_path", type=str, default=None)
29
  parser.add_argument("--vicuna_path", type=str, default=None)
30
  parser.add_argument("--low_resource", action='store_true', default=False)
 
31
  parser.add_argument("--port", default=9527)
32
 
33
  args = parser.parse_args()
@@ -37,6 +38,7 @@ model = SALMONN(
37
  whisper_path=args.whisper_path,
38
  beats_path=args.beats_path,
39
  vicuna_path=args.vicuna_path,
 
40
  low_resource=args.low_resource
41
  )
42
  model.to(args.device)
 
28
  parser.add_argument("--beats_path", type=str, default=None)
29
  parser.add_argument("--vicuna_path", type=str, default=None)
30
  parser.add_argument("--low_resource", action='store_true', default=False)
31
+ parser.add_argument("--lora_alpha", type=int, default=32)
32
  parser.add_argument("--port", default=9527)
33
 
34
  args = parser.parse_args()
 
38
  whisper_path=args.whisper_path,
39
  beats_path=args.beats_path,
40
  vicuna_path=args.vicuna_path,
41
+ lora_alpha=args.lora_alpha,
42
  low_resource=args.low_resource
43
  )
44
  model.to(args.device)