BaseModel

Model Generation

from transforemrs import AutoTokenizer, AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("AIdenU/Mistral-7B-v0.2-ko-Y24_v1.0", device_map="auto", torch_dtype=torch.bfloat16)
tokenizer = AutoTokenizer.from_pretrained("AIdenU/Mistral-7B-v0.2-ko-Y24_v1.0", use_fast=True)

prompt = [
  {'role': 'system', 'content': '๋‹น์‹ ์€ ์ง€์‹œ๋ฅผ ๋งค์šฐ ์ž˜ ๋”ฐ๋ฅด๋Š” ์ธ๊ณต์ง€๋Šฅ ๋น„์„œ์ž…๋‹ˆ๋‹ค.'},
  {'role': 'user', 'content': '์ง€๋ ์ด๋„ ๋ฐŸ์œผ๋ฉด ๊ฟˆํ‹€ํ•˜๋‚˜์š”?'}
]
outputs = model.generate(
  **tokenizer(
    tokenizer.apply_chat_template(prompt, tokenize=False, add_generation_prompt=True),
    return_tensors='pt'
  ).to('cuda'),
  max_new_tokens=256,
  temperature=0.2,
  top_p=1,
  do_sample=True
)
print(tokenizer.decode(outputs[0]))
Downloads last month
2,017
Safetensors
Model size
7.24B params
Tensor type
BF16
ยท
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.

Model tree for AIdenU/Mistral-7B-v0.2-ko-Y24_v1.0

Quantizations
1 model