File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
notebooks/minicpm-o-omnimodal-chatbot Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -315,12 +315,12 @@ def patch_model_code(orig_model_dir):
315
315
content = content .replace ("from flash_attn import flash_attn_func" , "" )
316
316
content = content .replace ("from flash_attn.bert_padding import index_first_axis" , "" )
317
317
content = content .replace ("from flash_attn.bert_padding import pad_input" , "" )
318
- content = content .replace ("ffrom flash_attn.bert_padding import unpad_input" , "" )
318
+ content = content .replace ("from flash_attn.bert_padding import unpad_input" , "" )
319
319
320
320
with model_file .open ("w" ) as out_f :
321
321
out_f .write (content )
322
322
resampler_file = orig_model_dir / "resampler.py"
323
- orig_resampler_file = resampler_path .parent / ("orig_" + resampler_file .name )
323
+ orig_resampler_file = resampler_file .parent / ("orig_" + resampler_file .name )
324
324
if not orig_resampler_file .exists ():
325
325
resampler_file .rename (orig_resampler_file )
326
326
with orig_resampler_file .open ("r" ) as f :
You can’t perform that action at this time.
0 commit comments