support liger kernel

Former-commit-id: 72bc8f0111
This commit is contained in:
hiyouga
2024-08-27 11:20:14 +08:00
parent e9800212fa
commit c765292093
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(