Fix FastLanguageModel
This commit is contained in:
parent
51dd120e35
commit
1128ecb82a
3 changed files with 4 additions and 4 deletions
|
|
@ -609,7 +609,7 @@ class FastLlamaModel:
|
|||
|
||||
@staticmethod
|
||||
def from_pretrained(
|
||||
model_name = "meta-llama/Llama-2-7b-hf",
|
||||
model_name = "unsloth/llama-2-7b-bnb-4bit",
|
||||
max_seq_length = 4096,
|
||||
dtype = None,
|
||||
load_in_4bit = True,
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@ from .mistral import FastMistralModel
|
|||
from transformers import AutoConfig
|
||||
|
||||
|
||||
class FastLanguageModel:
|
||||
class FastLanguageModel(FastLlamaModel):
|
||||
@staticmethod
|
||||
def from_pretrained(
|
||||
model_name = "mistralai/Mistral-7B-v0.1",
|
||||
model_name = "unsloth/mistral-7b-bnb-4bit",
|
||||
max_seq_length = 4096,
|
||||
dtype = None,
|
||||
load_in_4bit = True,
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ class FastMistralModel(FastLlamaModel):
|
|||
|
||||
@staticmethod
|
||||
def from_pretrained(
|
||||
model_name = "mistralai/Mistral-7B-v0.1",
|
||||
model_name = "unsloth/mistral-7b-bnb-4bit",
|
||||
max_seq_length = 4096,
|
||||
dtype = None,
|
||||
load_in_4bit = True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue