sh2orc's picture
Create README.md
0444474 verified
|
raw
history blame
4.54 kB
metadata
tags:
  - llama
  - sh2orc
base_model:
  - meta-llama/Meta-Llama-3.1-8B-Instruct

Llama-3.1-Korean-8B-Instruct

Llama-3.1-Korean-8B-Instruct is finetuned from Meta-Llama-3.1:

πŸ’» Usage

Use with transformers Starting with transformers >= 4.43.0 onward, you can run conversational inference using the Transformers pipeline abstraction or by leveraging the Auto classes with the generate() function. Make sure to update your transformers installation via pip install --upgrade transformers.

!pip install -qU transformers accelerate

from transformers import AutoTokenizer
import transformers
import torch

model = "sh2orc/Llama-3.1-Korean-8B-Instruct"
messages = [{"role": "user", "content": "What is a large language model?"}]

tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    torch_dtype=torch.float16,
    device_map="auto",
)

outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])

Q&A

Q. λ‚˜ν˜œμ„μ— λŒ€ν•΄μ„œ μ•Œλ €μ£Όμ„Έμš”.
A. λ‚˜ν˜œμ„μ€ 1896λ…„μƒμœΌλ‘œ, ν•œκ΅­ 졜초의 μ—¬μ„± μ‹œμΈμ΄μž μž‘κ°€μž…λ‹ˆλ‹€. κ·Έλ…€λŠ” μΌλ³Έμ—μ„œ κ΅μœ‘μ„ λ°›κ³  κ·€κ΅­ν•œ ν›„, λ‹€μ–‘ν•œ μž‘ν’ˆλ“€μ„ λ°œν‘œν•˜λ©° ν˜„λŒ€μ μΈ λ¬Έν•™ μŠ€νƒ€μΌμ„ μ„ λ³΄μ˜€μŠ΅λ‹ˆλ‹€. κ·Έλ…€μ˜ λŒ€ν‘œμž‘ 쀑 ν•˜λ‚˜μΈ 'λ‚΄ λ‚˜μ΄μ— 이별'은 여성이 κ²ͺλŠ” μ‚¬λž‘κ³Ό μ™Έλ‘œμ›€μ˜ 감정을 ν‘œν˜„ν•œ κ²ƒμœΌλ‘œ 유λͺ…ν•©λ‹ˆλ‹€.

λ‚˜ν˜œμ„μ€ λ˜ν•œ μ‚¬νšŒμ  문제λ₯Ό 닀루며 λ…νŠΉν•˜κ³  ν˜μ‹ μ μΈ μ‹œμ™€ μ†Œμ„€μ„ μΌμŠ΅λ‹ˆλ‹€. κ·Έλ…€μ˜ μž‘ν’ˆλ“€μ€ λ‹Ήμ‹œ μ‚¬νšŒμ μœΌλ‘œ 큰 영ν–₯을 미쳀으며, 이후에도 λ§Žμ€ μ‚¬λžŒλ“€μ—κ²Œ 영감이 λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

κ·Έλ…€λŠ” λ˜ν•œ μ—¬μ„± ꢌ리 및 평등 μš΄λ™μ— μ°Έμ—¬ν•˜μ˜€μœΌλ©°, μ΄λŸ¬ν•œ ν™œλ™μœΌλ‘œ 인해 κ·Έλ…€λ₯Ό ν•œκ΅­ 졜초의 μ—¬μ„± 민쑱주의자라고 λΆˆλ €μŠ΅λ‹ˆλ‹€.

μš”μ•½ν•˜λ©΄ λ‚˜ν˜œμ„μ€ 역사상 κ°€μž₯ μ€‘μš”ν•œ ν•œκΈ€λ¬Έν•™κ°€μ΄μž μ‹œμΈμœΌλ‘œ κ°„μ£Όλ©λ‹ˆλ‹€. κ·Έλ…€μ˜ μ°½μ‘°λ ₯κ³Ό 영ν–₯λ ₯ 덕뢄에 μ˜€λŠ˜λ‚ κΉŒμ§€λ„ μš°λ¦¬μ—κ²Œ κ°€μΉ˜λ₯Ό μ œκ³΅ν•˜λŠ” 예술적 업적듀이 λ‚¨μ•„μžˆμŠ΅λ‹ˆλ‹€.

Q. 2μ°¨ μ„Έκ³„λŒ€μ „μ— λŒ€ν•΄μ„œ μ•Œλ €μ€˜
A. 2μ°¨ μ„Έκ³„λŒ€μ „μ€ 1939λ…„λΆ€ν„° 1945λ…„κΉŒμ§€ μ§€μ†λœ μ „νˆ¬μ˜€μŠ΅λ‹ˆλ‹€. 이 μ „μŸμ€ 유럽, μ•„μ‹œμ•„ 및 λΆμ•„λ©”λ¦¬μΉ΄μ˜ λ§Žμ€ ꡭ가듀이 μ°Έμ—¬ν•˜μ˜€μœΌλ©°, 독일과 일본이 μ£Όμš” 적으둜 ν™œλ™ν–ˆμŠ΅λ‹ˆλ‹€.

μ „μŸ μ΄ˆκΈ°μ—λŠ” λ‚˜μΉ˜ 독일이 ν΄λž€λ“œλ₯Ό μΉ¨κ³΅ν•˜κ³  μ†Œλ ¨μ„ κ³΅κ²©ν•˜λ©° μ„œμœ λŸ½μ— μ§„μΆœν•˜λŠ” λ“± λΉ λ₯΄κ²Œ ν™•μž₯λ˜μ—ˆμŠ΅λ‹ˆλ‹€. 영ꡭ과 ν”„λž‘μŠ€λŠ” λ…μΌκ΅°μ—κ²Œ νŒ¨λ°°ν•˜μ—¬ μ—°ν•©κ΅­μ—μ„œ λ²—μ–΄λ‚¬μ§€λ§Œ 미ꡭ은 곧 참전에 λ“€μ–΄κ°”κ³  κ²°κ΅­ μŠΉλ¦¬ν•œ κ²ƒμž…λ‹ˆλ‹€.

일본도 λ™λ‚¨μ•„μ‹œμ•„μ™€ νƒœν‰μ–‘ μ§€μ—­μ—μ„œ 점령지λ₯Ό ν™•λ³΄ν•˜λ©΄μ„œ μ€‘κ΅­κ³Όμ˜ μ „μŸμ„ λ²Œμ˜€μŠ΅λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ 미ꡭ의 μ›μžν­νƒ„ νˆ¬ν•˜λ‘œ 인해 일본은 ν•­λ³΅ν•˜κ²Œ λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

μ „μŸ κΈ°κ°„ λ™μ•ˆ 수백만 λͺ… μ΄μƒμ˜ μ‚¬λžŒλ“€μ΄ μ‚¬λ§ν–ˆμœΌλ©° 경제적 ν”Όν•΄κ°€ λ§‰λŒ€ν•œ κ²ƒμœΌλ‘œ μ•Œλ €μ Έ μžˆμŠ΅λ‹ˆλ‹€.

Q. λˆμ„ λΉŒλ ΈλŠ”λ°, λˆμ„ μ•ˆ 갚으면?
A. λˆμ„ λΉŒλ ΈλŠ”λ° μ•ˆ 갚으면, λˆμ„ 빌린 μ‚¬λžŒμ—κ²Œ λŒ€κ°€λ‘œ μΈλ‚΄μ‹¬μ΄λ‚˜ 이해λ₯Ό 보여주어야 ν•©λ‹ˆλ‹€. λ˜ν•œ, 상황에 λ”°λΌμ„œ 더 λ§Žμ€ 보상을 해쀄 μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€.

Q. κ±΄κ°•ν•˜κ²Œ μ‚΄κΈ° μœ„ν•œ μžμ„Έ

κ±΄κ°•ν•˜κ²Œ μ‚΄κΈ° μœ„ν•œ μžμ„ΈλŠ” λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€:

  1. κ·œμΉ™μ μΈ μš΄λ™: 맀일 적어도 30λΆ„ μ΄μƒμ˜ 신체 ν™œλ™μ„ ν•˜μ„Έμš”.
  2. κ· ν˜• 작힌 식단: 과일, μ±„μ†Œ, λ‹¨λ°±μ§ˆ 및 κ±΄κ°•ν•œ 지방이 ν¬ν•¨λœ λ‹€μ–‘ν•œ μŒμ‹μ„ μ„­μ·¨ν•˜μ„Έμš”.
  3. μΆ©λΆ„ν•œ 수면: ν•˜λ£¨μ— 7-9μ‹œκ°„μ˜ μˆ™λ©΄μ„ μ·¨ν•˜μ„Έμš”.
  4. 슀트레슀 관리: μš”κ°€, λͺ…상 λ˜λŠ” λ‹€λ₯Έ 슀트레슀 μ™„ν™” κΈ°μˆ μ„ ν™œμš©ν•˜μ„Έμš”.
  5. μ •κΈ°μ μœΌλ‘œ 검진 λ°›κΈ°
  6. 흑연과 μ•Œμ½”μ˜¬ μ†ŒλΉ„λ₯Ό ν”Όν•˜μ‹­μ‹œμ˜€
  7. μ•ˆμ „ν•˜κ³  κΉ¨λ—ν•œ ν™˜κ²½μ—μ„œ μƒν™œν•˜κΈ°