Text Generation
Transformers
Safetensors
English
Korean
exaone4
sql
text-generation-inference
conversational
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("thenewth/EXAONE-4-32B-text2sql")
model = AutoModelForCausalLM.from_pretrained("thenewth/EXAONE-4-32B-text2sql")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))Quick Links
Model Details
Model Description
한국어로 작성된 자연어 질문을 SQL 쿼리로 변환하는 텍스트2SQL 모델입니다.
LGAI-EXAONE 기반으로 한국어 데이터에 특화된 파인튜닝 진행.
- Developed by: Donghyun Kim
- Language(s) (NLP): 한국어, 영어
- License: Apache 2.0
Uses
한국어 기반의 SQL 생성이 필요한 데이터 분석 툴이나 챗봇 등에 사용 가능.
Bias, Risks, and Limitations
비정형 질문이나 데이터베이스 구조가 명확하지 않은 경우 정확도가 떨어질 수 있음.
- Downloads last month
- 3
Model tree for thenewth/EXAONE-4-32B-text2sql
Base model
LGAI-EXAONE/EXAONE-4.0-32B
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="thenewth/EXAONE-4-32B-text2sql") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)