mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-13 11:50:37 +08:00
gptj 8bit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
from transformers import AutoModelForCausalLM
|
||||
from .gptj import get_model as get_gptj_model
|
||||
|
||||
def get_specific_model(model_name, cache_dir, quantization):
|
||||
if "gpt-j" in model_name.lower():
|
||||
return get_gptj_model(model_name, cache_dir, quantization)
|
||||
else:
|
||||
return AutoModelForCausalLM.from_pretrained(conf.model_name, cache_dir=conf.cache_dir)
|
||||
Reference in New Issue
Block a user