Skip to content

Commit

Permalink
Update python/sglang/srt/models/llama2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Sep 3, 2024
1 parent e115fd6 commit 23f4beb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/sglang/srt/models/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,5 +362,8 @@ def load_weights(self, weights: Iterable[Tuple[str, torch.Tensor]]):
weight_loader(param, loaded_weight)


EntryClass = LlamaForCausalLM
EntryClassRemapping = [("Phi3ForCausalLM", LlamaForCausalLM)]
class Phi3ForCausalLM(LlamaForCausalLM):
pass


EntryClass = [LlamaForCausalLM, Phi3ForCausalLM]

0 comments on commit 23f4beb

Please sign in to comment.