Qwen-14B-MixAT-GCG
4
14.0B
license:apache-2.0
by
INSAIT-Institute
Other
OTHER
14B params
New
4 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
32GB+ RAM
Mobile
Laptop
Server
Quick Summary
This is a model adapter for Qwen/Qwen2.
Device Compatibility
Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
14GB+ RAM
Code Examples
Use in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytesUse in 🤗 PEFT and Transformers (Quantized)bash
pip install transformers peft bitsandbytespythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")pythontransformers
from peft import PeftModel
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype="bfloat16"
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-14B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
quantization_config=bnb_config
)
model = PeftModel.from_pretrained(base_model, "INSAIT-Institute/Qwen-14B-MixAT-GCG")Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.