Steveeeeeeen HF Staff commited on
Commit
d7ee7ae
·
verified ·
1 Parent(s): e2a5790

Update stepaudio2.py

Browse files
Files changed (1) hide show
  1. stepaudio2.py +2 -2
stepaudio2.py CHANGED
@@ -10,8 +10,8 @@ class StepAudio2Base:
10
 
11
  def __init__(self, model_path: str):
12
  print(model_path)
13
- self.llm_tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, padding_side="right")
14
- self.llm = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, torch_dtype=torch.bfloat16).cuda()
15
  self.eos_token_id = self.llm_tokenizer.eos_token_id
16
 
17
  def __call__(self, messages: list, **kwargs):
 
10
 
11
  def __init__(self, model_path: str):
12
  print(model_path)
13
+ self.llm_tokenizer = AutoTokenizer.from_pretrained("stepfun-ai/Step-Audio-2-mini", trust_remote_code=True, padding_side="right")
14
+ self.llm = AutoModelForCausalLM.from_pretrained("stepfun-ai/Step-Audio-2-mini", trust_remote_code=True, torch_dtype=torch.bfloat16).cuda()
15
  self.eos_token_id = self.llm_tokenizer.eos_token_id
16
 
17
  def __call__(self, messages: list, **kwargs):