Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
cd687233
Unverified
Commit
cd687233
authored
Jan 26, 2024
by
Cody Yu
Committed by
GitHub
Jan 26, 2024
Browse files
Fix Mistral model loading (#108)
Co-authored-by:
johndun
<
dunavent.jm@gmail.com
>
parent
81561f8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
python/sglang/srt/models/mistral.py
python/sglang/srt/models/mistral.py
+10
-0
No files found.
python/sglang/srt/models/mistral.py
0 → 100644
View file @
cd687233
"""Inference-only Mistral model."""
from
sglang.srt.models.llama2
import
LlamaForCausalLM
class
MistralForCausalLM
(
LlamaForCausalLM
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
EntryClass
=
MistralForCausalLM
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment