🚀 Easy-Systems/easy-ko-Llama3-8b-Instruct-v1
Easy-Systems/easy-ko-Llama3-8b-Instruct-v1是(주)이지시스템的首個大語言模型(LLM)。該模型基於英文基礎模型meta-llama/Meta-Llama-3-8B-Instruct,經過韓語微調而成。此LLM模型後續將持續更新。
✨ 主要特性
- 以英文基礎模型meta-llama/Meta-Llama-3-8B-Instruct為基礎,進行了韓語的微調。
- 後續會持續對模型進行更新迭代。
DALL-E로 생성한 이미지입니다.
📦 安裝指南
此部分文檔未提供具體安裝步驟,若使用該模型,可參考以下依賴庫的安裝:
pip install torch transformers
💻 使用示例
基礎用法
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Easy-Systems/easy-ko-Llama3-8b-Instruct-v1"
model = AutoModelForCausalLM.from_pretrained(model_id,
attn_implementation="flash_attention_2",
torch_dtype=torch.bfloat16,
device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_id, add_special_tokens=True)
prompt="리눅스 프로세스를 강제로 종료하는 방법은?"
messages = [
{"role": "system", "content": "당신은 친절한 AI chatbot 입니다. 요청에 대해서 step-by-step 으로 간결하게 한국어(Korean)로 답변해주세요."},
{"role": "user", "content": f"\n\n### 명령어: {prompt}\n\n### 응답:"}
]
input_ids = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
terminators = [
tokenizer.eos_token_id,
tokenizer.convert_tokens_to_ids("<|eot_id|>")
]
outputs = model.generate(
input_ids,
max_new_tokens=1024,
eos_token_id=terminators,
pad_token_id=tokenizer.eos_token_id,
do_sample=True,
temperature=0.2,
repetition_penalty = 1.3,
top_p=0.9,
top_k=10,
)
response = outputs[0][input_ids.shape[-1]:]
print(tokenizer.decode(response, skip_special_tokens=True).strip())
輸出示例
리눅스의 경우, `kill` 또는 `pkill` 명령을 사용하여 특정 프로세스를 강제로 종료할 수 있습니다.
1단계: ps -ef | grep <프로세스_이름>`으로 현재 실행 중인 모든 프로세스가 표시됩니다.
2단계: kill <프로세스_ID>`를 입력하면 해당 프로세스가 즉시 종료됩니다.
또는 `-9`(SIGKILL 신호)를 지정하여 프로세스를 강제로 종료하도록 할 수도 있으며, 이는 운영 체제에서 정상적으로 종료하기 전에 마지막 기회를 주지 않고 바로 죽게 됩니다:
3단계: kill -9 <프로세스_ID>`를 입력합니다.
참고로, 시스템의 안정을 위해 필요한 파일이나 서비스가 있는 경우에는 직접 삭제하지 말아야 하며, 적절한 권한과 지시에 따라 처리해야 합니다. 또한 일부 프로그램들은 강제종료 시 데이터 손실 등의 문제가 발생할 가능성이 있으므로 미리 저장된 작업 내용 등을 확인하고 종료하시기 바랍니다.
📚 詳細文檔
數據
- 使用AI hub (https://www.aihub.or.kr/) 的數據,經過多種任務(問答、摘要、翻譯等)處理後用於微調。
- 利用公司內部自行處理的數據進行微調。
📄 許可證
- 本模型採用知識共享署名 - 非商業性使用 - 相同方式共享 4.0 國際許可協議(Creative Commons Attribution-NonCommercial-ShareAlike 4.0,即CC-BY-NC-SA-4.0)。
- 如需商業使用,請通過以下聯繫方式進行諮詢。
📞 聯繫我們
如果您有商業使用需求或其他諮詢事項,請通過以下郵箱聯繫:
📋 模型信息
屬性 |
詳情 |
模型類型 |
文本生成 |
訓練數據 |
AI hub數據(經多種任務處理)、公司內部自行處理的數據 |
許可證 |
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC-BY-NC-SA-4.0) |