Downloads · 30 days
70
0% of all-time downloads
quantumaikr/llama-2-70b-fb16-korean
llama-2-70b-fb16-korean is a text generation model from quantumaikr. Use it when you need the model to write or continue text. It is set up for transformers.
<p align="center" width="100%" <img src="https://i.imgur.com/snFDU0P.png" alt="KoreanLM icon" style="width: 500px; display: block; margin: auto; border-radius: 10%;" </p
Downloads · 30 days
70
0% of all-time downloads
All-time downloads
62.1K
Public
Parameters
69B
138 GB on disk
Likes
37
Public
Click a slice to open those files.
.safetensors138 GB · 100%
From the Hugging Face model README
quantumaikr/llama-2-70b-fb16-korean is a Llama2 70B model finetuned the Korean Dataset
Start chatting with quantumaikr/llama-2-70b-fb16-korean using the following code snippet:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
tokenizer = AutoTokenizer.from_pretrained("quantumaikr/llama-2-70b-fb16-korean")
model = AutoModelForCausalLM.from_pretrained("quantumaikr/llama-2-70b-fb16-korean", torch_dtype=torch.float16, device_map="auto")
system_prompt = "### System:\n귀하는 지시를 매우 잘 따르는 AI인 QuantumLM입니다. 최대한 많이 도와주세요. 안전에 유의하고 불법적인 행동은 하지 마세요.\n\n"
message = "인공지능이란 무엇인가요?"
prompt = f"{system_prompt}### User: {message}\n\n### Assistant:\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
output = model.generate(**inputs, do_sample=True, temperature=0.9, top_p=0.75, max_new_tokens=4096)
print(tokenizer.decode(output[0], skip_special_tokens=True))
QuantumLM should be used with this prompt format:
### System:
This is a system prompt, please behave and help the user.
### User:
Your prompt here
### Assistant
The output of QuantumLM
These models are intended for research only, in adherence with the CC BY-NC-4.0 license.
Although the aforementioned dataset helps to steer the base language models into "safer" distributions of text, not all biases and toxicity can be mitigated through fine-tuning. We ask that users be mindful of such potential issues that can arise in generated responses. Do not treat model outputs as substitutes for human judgment or as sources of truth. Please use it responsibly.
Contact us : [email protected]