Downloads · 30 days
18
14% of all-time downloads
MyeongHo0621/eeve-vss-smh-bnb-4bit
eeve-vss-smh-bnb-4bit is a text generation model from MyeongHo0621. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-sa-4.0.
Downloads · 30 days
18
14% of all-time downloads
All-time downloads
132
Public
Parameters
10.8B
6.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.1 GB · 100%
How the weights are stored.
U810.8B · 97%
From the Hugging Face model README
4-bit Quantized Version | 4-bit 양자화 버전
This model is a BitsAndBytes NF4 4-bit quantized version of MyeongHo0621/eeve-vss-smh.
pip install transformers torch bitsandbytes accelerate
Required: bitsandbytes library is mandatory!
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
import torch
# 4-bit configuration
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.float16,
bnb_4bit_use_double_quant=True,
bnb_4bit_quant_type="nf4"
)
# Load model
model = AutoModelForCausalLM.from_pretrained(
"MyeongHo0621/eeve-vss-smh-bnb-4bit",
quantization_config=bnb_config,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("MyeongHo0621/eeve-vss-smh-bnb-4bit")
# Prompt template
def create_prompt(user_input):
return f"""A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
Human: {user_input}
Assistant: """
# Generate
user_input = "Implement Fibonacci sequence in Python"
prompt = create_prompt(user_input)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.3,
top_p=0.85,
repetition_penalty=1.0,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
print(response)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load with explicit dtype (automatic 4-bit loading)
model = AutoModelForCausalLM.from_pretrained(
"MyeongHo0621/eeve-vss-smh-bnb-4bit",
device_map="auto",
torch_dtype=torch.float16, # or torch.bfloat16
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("MyeongHo0621/eeve-vss-smh-bnb-4bit")
from transformers import AutoModelForCausalLM, AutoTokenizer
# Automatically loads saved quantization settings
model = AutoModelForCausalLM.from_pretrained(
"MyeongHo0621/eeve-vss-smh-bnb-4bit",
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("MyeongHo0621/eeve-vss-smh-bnb-4bit")
| Component | Minimum | Recommended |
|---|---|---|
| GPU | GTX 1660 (6GB) | RTX 3060 (12GB) |
| VRAM | 4GB | 6GB+ |
| RAM | 8GB | 16GB+ |
| CUDA | 11.0+ | 12.0+ |
Quantization Type: NF4 (NormalFloat4)
Bits: 4-bit
Compute dtype: float16
Double Quantization: True
Method: Weight-only quantization
| Version | Model Size | VRAM Usage | Quality Loss | Inference Speed |
|---|---|---|---|---|
| FP16 Original | ~21GB | ~21GB | 0% | ⚡⚡⚡⚡ |
| BNB 4-bit | ~5.5GB | ~3.5GB | 1-2% | ⚡⚡⚡ |
generation_config = {
"max_new_tokens": 512,
"temperature": 0.3,
"top_p": 0.85,
"repetition_penalty": 1.0,
"do_sample": True,
"pad_token_id": tokenizer.pad_token_id,
"eos_token_id": tokenizer.eos_token_id,
}
| Use Case | Temperature | Top P | Notes |
|---|---|---|---|
| Factual Answers | 0.1-0.3 | 0.8-0.9 | Fact-based questions |
| Balanced | 0.5-0.7 | 0.85-0.95 | General usage |
| Creative | 0.8-1.0 | 0.9-1.0 | Stories, poems |
Input:
Implement a Python function to reverse a list
Output:
# High-quality code generation like the original model
my_list = [1, 2, 3, 4, 5]
# Method 1: reverse()
my_list.reverse()
# Method 2: slicing
reversed_list = my_list[::-1]
# Method 3: reversed()
reversed_list = list(reversed(my_list))
This is a quantized version of:
For detailed training process, see original model page.
# Use lower batch size
generation_config = {
"max_new_tokens": 256, # 512 → 256
...
}
# Check CUDA version
nvidia-smi
# CUDA 11.x
pip install bitsandbytes
# CUDA 12.x
pip install bitsandbytes --upgrade
bitsandbytes library@misc{eeve-vss-smh-bnb-4bit-2025,
author = {MyeongHo0621},
title = {EEVE-VSS-SMH-BNB-4bit: 4-bit Quantized Korean Model},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/MyeongHo0621/eeve-vss-smh-bnb-4bit}},
note = {4-bit quantized version using BitsAndBytes NF4}
}
| Model | Size | VRAM | Use Case |
|---|---|---|---|
| eeve-vss-smh | 21GB | 21GB | High-end GPUs |
| eeve-vss-smh-bnb-4bit | 5.5GB | 3.5GB | Low-end GPUs ⭐ |
Quantization Date: 2025-10-11
Method: BitsAndBytes NF4 4-bit
Status: Ready for Low-VRAM Deployment 🚀
이 모델은 MyeongHo0621/eeve-vss-smh를 BitsAndBytes NF4 4-bit로 양자화한 버전입니다.
pip install transformers torch bitsandbytes accelerate
필수: bitsandbytes 라이브러리가 반드시 필요합니다!
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
import torch
# 4-bit 설정
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.float16,
bnb_4bit_use_double_quant=True,
bnb_4bit_quant_type="nf4"
)
# 모델 로드
model = AutoModelForCausalLM.from_pretrained(
"MyeongHo0621/eeve-vss-smh-bnb-4bit",
quantization_config=bnb_config,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("MyeongHo0621/eeve-vss-smh-bnb-4bit")
# 프롬프트 템플릿
def create_prompt(user_input):
return f"""A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
Human: {user_input}
Assistant: """
# 대화
user_input = "파이썬으로 피보나치 수열 구현해줘"
prompt = create_prompt(user_input)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.3,
top_p=0.85,
repetition_penalty=1.0,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
print(response)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# dtype 명시적 지정 (자동 4-bit 로딩)
model = AutoModelForCausalLM.from_pretrained(
"MyeongHo0621/eeve-vss-smh-bnb-4bit",
device_map="auto",
torch_dtype=torch.float16, # 또는 torch.bfloat16
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("MyeongHo0621/eeve-vss-smh-bnb-4bit")
from transformers import AutoModelForCausalLM, AutoTokenizer
# 저장된 양자화 설정을 자동으로 로드
model = AutoModelForCausalLM.from_pretrained(
"MyeongHo0621/eeve-vss-smh-bnb-4bit",
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("MyeongHo0621/eeve-vss-smh-bnb-4bit")
| 구성 요소 | 최소 사양 | 추천 사양 |
|---|---|---|
| GPU | GTX 1660 (6GB) | RTX 3060 (12GB) |
| VRAM | 4GB | 6GB+ |
| RAM | 8GB | 16GB+ |
| CUDA | 11.0+ | 12.0+ |
Quantization Type: NF4 (NormalFloat4)
Bits: 4-bit
Compute dtype: float16
Double Quantization: True
Method: Weight-only quantization
| 버전 | 모델 크기 | VRAM 사용 | 품질 손실 | 추론 속도 |
|---|---|---|---|---|
| FP16 원본 | ~21GB | ~21GB | 0% | ⚡⚡⚡⚡ |
| BNB 4-bit | ~5.5GB | ~3.5GB | 1-2% | ⚡⚡⚡ |
generation_config = {
"max_new_tokens": 512,
"temperature": 0.3,
"top_p": 0.85,
"repetition_penalty": 1.0,
"do_sample": True,
"pad_token_id": tokenizer.pad_token_id,
"eos_token_id": tokenizer.eos_token_id,
}
| 용도 | Temperature | Top P | 설명 |
|---|---|---|---|
| 정확한 답변 | 0.1-0.3 | 0.8-0.9 | 사실 기반 질문 |
| 균형 답변 | 0.5-0.7 | 0.85-0.95 | 일반적 사용 |
| 창의적 답변 | 0.8-1.0 | 0.9-1.0 | 스토리, 시 등 |
입력:
WMS가 뭐야?
출력:
WMS는 Warehouse Management System의 약자로, 창고 관리 시스템을 의미합니다.
재고 추적, 입출고 관리, 피킹, 패킹 등의 물류 프로세스를 자동화하고 최적화하는
소프트웨어 시스템입니다. 효율적인 창고 운영을 위해 사용되며, 실시간 재고 가시성과
작업 생산성 향상을 제공합니다.
입력:
파이썬으로 리스트를 역순으로 만들어줘
출력:
# 원본 모델과 동일한 고품질 코드 생성
my_list = [1, 2, 3, 4, 5]
# 방법 1: reverse()
my_list.reverse()
# 방법 2: 슬라이싱
reversed_list = my_list[::-1]
# 방법 3: reversed()
reversed_list = list(reversed(my_list))
이 모델은 다음 모델의 양자화 버전입니다:
자세한 훈련 과정은 원본 모델 페이지를 참조하세요.
# 더 낮은 배치 크기 사용
generation_config = {
"max_new_tokens": 256, # 512 → 256
...
}
# CUDA 버전 확인
nvidia-smi
# CUDA 11.x
pip install bitsandbytes
# CUDA 12.x
pip install bitsandbytes --upgrade
bitsandbytes 라이브러리 필수@misc{eeve-vss-smh-bnb-4bit-2025,
author = {MyeongHo0621},
title = {EEVE-VSS-SMH-BNB-4bit: 4-bit Quantized Korean Model},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/MyeongHo0621/eeve-vss-smh-bnb-4bit}},
note = {4-bit quantized version using BitsAndBytes NF4}
}
| 모델 | 크기 | VRAM | 용도 |
|---|---|---|---|
| eeve-vss-smh | 21GB | 21GB | 고사양 GPU |
| eeve-vss-smh-bnb-4bit | 5.5GB | 3.5GB | 저사양 GPU ⭐ |
양자화 일자: 2025-10-11
방법: BitsAndBytes NF4 4-bit
상태: 저사양 GPU 배포 준비 완료 🚀