Automatically set wbits/groupsize/instruct based on model name (#1167)
This commit is contained in:
parent
9d66957207
commit
8e31f2bad4
7 changed files with 377 additions and 286 deletions
31
models/config.yaml
Normal file
31
models/config.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
.*:
|
||||
wbits: 'None'
|
||||
model_type: 'None'
|
||||
groupsize: 'None'
|
||||
pre_layer: 0
|
||||
mode: 'cai-chat'
|
||||
llama-[0-9]*b-4bit$:
|
||||
wbits: 4
|
||||
groupsize: -1
|
||||
model_type: 'llama'
|
||||
.*-(4bit|int4)-(gr128|128g):
|
||||
wbits: 4
|
||||
groupsize: 128
|
||||
.*-(gr128|128g)-(4bit|int4):
|
||||
wbits: 4
|
||||
groupsize: 128
|
||||
.*-3bit-(gr128|128g):
|
||||
wbits: 3
|
||||
groupsize: 128
|
||||
.*-(gr128|128g)-3bit:
|
||||
wbits: 3
|
||||
groupsize: 128
|
||||
.*oasst-sft-1-pythia-12b:
|
||||
mode: 'instruct'
|
||||
instruction_template: 'Open Assistant'
|
||||
.*vicuna:
|
||||
mode: 'instruct'
|
||||
instruction_template: 'Vicuna'
|
||||
.*alpaca:
|
||||
mode: 'instruct'
|
||||
instruction_template: 'Alpaca'
|
Loading…
Add table
Add a link
Reference in a new issue