Skip to content

Commit

Permalink
Adds support for the Solar architecture (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavgarg1 authored Dec 16, 2024
1 parent 170aae1 commit ddd1c2d
Show file tree
Hide file tree
Showing 5 changed files with 818 additions and 19 deletions.
1 change: 1 addition & 0 deletions router/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ pub enum Config {
PhiMsft,
Phi3,
Llama,
Solar,
Baichuan,
Paligemma(Paligemma),
Gemma,
Expand Down
11 changes: 11 additions & 0 deletions server/lorax_server/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,17 @@ def get_model(
**flash_causal_lm_kwargs,
)

if model_type == "solar":
from lorax_server.models.flash_solar import FlashSolar

return FlashSolar(
model_id,
adapter_id,
adapter_source,
revision,
**flash_causal_lm_kwargs,
)

if model_type == "gemma":
from lorax_server.models.flash_gemma import FlashGemma

Expand Down
Loading

0 comments on commit ddd1c2d

Please sign in to comment.