support liger kernel

Former-commit-id: 0f4e54abf6c5feb2329855a4047597ad5147720a
This commit is contained in:
hiyouga
2024-08-27 11:20:14 +08:00
parent 47877acc2a
commit 206a8364d4
8 changed files with 69 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ def create_top() -> Dict[str, "Component"]:
quantization_method = gr.Dropdown(choices=["bitsandbytes", "hqq", "eetq"], value="bitsandbytes", scale=1)
template = gr.Dropdown(choices=list(TEMPLATES.keys()), value="default", scale=1)
rope_scaling = gr.Radio(choices=["none", "linear", "dynamic"], value="none", scale=2)
booster = gr.Radio(choices=["auto", "flashattn2", "unsloth"], value="auto", scale=2)
booster = gr.Radio(choices=["auto", "flashattn2", "unsloth", "liger_kernel"], value="auto", scale=3)
visual_inputs = gr.Checkbox(scale=1)
model_name.change(get_model_info, [model_name], [model_path, template, visual_inputs], queue=False).then(