NSM 감정 분석 LoRA 모델 NSMC 데이터셋으로 파튜닝된 한국어 감정 분석 모델입니다.

모델 정보

베이스 모델: klue/bert-base 파인튜닝 방법: LoRA 언어: 한국어

  • ** 최종 성능**: Accruacy 85%

사용 방법


# 베이스 모델 로드 (분류용)
print("베이스 모델 로딩")
base_model_reload = AutoModelForSequenceClassification.from_pretrained(
    "klue/bert-base",
    num_labels=2
)

# 업로드한 LoRA 어댑터 로드
print(f"LoRA 어댑터 로딩: gong1221/nsmc-sentiment-lora")
model_reload = PeftModel.from_pretrained(base_model_reload, model_name_upload)
tokenizer_reload = AutoTokenizer.from_pretrained(model_name_upload)

# GPU로 이동
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model_reload = model_reload.to(device)
model_reload.eval()

print("모델 로드 완료!")
print("이제 이 코드로 어디서든 내 모델을 사용할 수 있습니다!")

Note: 이 모델은 교육 목적으로 만들어졌습니다.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for gong1221/nsmc-sentiment-lora

Base model

klue/bert-base
Adapter
(26)
this model

Dataset used to train gong1221/nsmc-sentiment-lora

Space using gong1221/nsmc-sentiment-lora 1