Skip to content

Commit

Permalink
Model def update for upstream compatibility (#40)
Browse files Browse the repository at this point in the history
* update model to prepare for upstreaming

* more

* ok
  • Loading branch information
masahi authored Oct 26, 2023
1 parent 24a515a commit 70902d8
Show file tree
Hide file tree
Showing 3 changed files with 494 additions and 86 deletions.
4 changes: 2 additions & 2 deletions mlc_llm/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
gpt_neox,
gptj,
llama,
llama_batched,
llama_batched_vllm,
minigpt,
param_manager,
rwkv,
Expand Down Expand Up @@ -606,7 +606,7 @@ def build_model_from_args(args: argparse.Namespace):
config = json.load(i_f)
if not use_cache or args.convert_weight_only:
if args.model_category in ["llama", "mistral"] and args.batched:
mod, param_manager, params, model_config = llama_batched.get_model(args, config)
mod, param_manager, params, model_config = llama_batched_vllm.get_model(args, config)
elif args.model_category == "llama":
mod, param_manager, params, model_config = llama.get_model(args, config)
elif args.model_category == "mistral":
Expand Down
Loading

0 comments on commit 70902d8

Please sign in to comment.