Skip to content

Commit

Permalink
adding OLMO to the list of Decoder Only Models
Browse files Browse the repository at this point in the history
  • Loading branch information
shobrienDMA committed Nov 12, 2024
1 parent cc4577e commit c94ee92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ std::shared_ptr<Model> CreateModel(OrtEnv& ort_env, const char* config_path, con
std::shared_ptr<Model> CreateModel(OrtEnv& ort_env, std::unique_ptr<Config> config) {
if (config->model.type == "gpt2")
return std::make_shared<Gpt_Model>(std::move(config), ort_env);
if (config->model.type == "llama" || config->model.type == "gemma" || config->model.type == "gemma2" || config->model.type == "mistral" || config->model.type == "phi" || config->model.type == "phi3" || config->model.type == "phi3small" || config->model.type == "phimoe" || config->model.type == "qwen2" || config->model.type == "nemotron" || config->model.type == "chatglm")
if (config->model.type == "llama" || config->model.type == "gemma" || config->model.type == "gemma2" || config->model.type == "mistral" || config->model.type == "phi" || config->model.type == "phi3" || config->model.type == "phi3small" || config->model.type == "phimoe" || config->model.type == "qwen2" || config->model.type == "nemotron" || config->model.type == "chatglm" || config->model.type == "olmo")
return std::make_shared<DecoderOnly_Model>(std::move(config), ort_env);
if (config->model.type == "whisper")
return std::make_shared<Whisper_Model>(std::move(config), ort_env);
Expand Down

0 comments on commit c94ee92

Please sign in to comment.