Closed xiezipeng-ML closed 1 year ago
baichuan的模型代码没有添加到transformers库里,是在权重文件这里实现的,用的时候需要把baichuan-inc/Baichuan-7B放到libai/projects/mock_transformers/Baichuan里,然后通过from Baichuan import modeling_baichuan来替换libai的layer
baichuan-inc/Baichuan-7B
libai/projects/mock_transformers/Baichuan
from Baichuan import modeling_baichuan
baichuan的模型代码没有添加到transformers库里,是在权重文件这里实现的,用的时候需要把
baichuan-inc/Baichuan-7B
放到libai/projects/mock_transformers/Baichuan
里,然后通过from Baichuan import modeling_baichuan
来替换libai的layer