Downloads · 30 days
3
2% of all-time downloads
nxtcloud-org/kanana-safeguard-prompt-2.1b-bitsandbytes-4bit
kanana-safeguard-prompt-2.1b-bitsandbytes-4bit is a machine learning model from nxtcloud-org. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
4bit 양자화된 kakaocorp/kanana-safeguard-prompt-2.1b 모델입니다.
Downloads · 30 days
3
2% of all-time downloads
All-time downloads
184
Public
Parameters
2.1B
1.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.4 GB · 99%
How the weights are stored.
U81.9B · 89%
From the Hugging Face model README
4bit 양자화된 kakaocorp/kanana-safeguard-prompt-2.1b 모델입니다.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16
)
model = AutoModelForCausalLM.from_pretrained(
"[your-username]/kanana-safeguard-prompt-2.1b-4bit",
quantization_config=bnb_config,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("nxtcloud-org/kanana-safeguard-prompt-2.1b-4bit")
Apache License 2.0 (원본 모델과 동일)