Safetensors
Korean
English
Japanese
gemma2
bccard
bcgpt

BCCard/gemma-2-27b-it-Korean is a Korean language model based on Google's Gemma 2 (27B parameters) architecture. It was developed by fine-tuning on a variety of open-source Korean datasets, enabling it to excel in tasks such as Korean text generation, comprehension, and translation

How to Use

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "BCCard/gemma-2-27b-it-Korean"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    low_cpu_mem_usage=True,
    device_map="auto",
)

model.eval()
instruction = "μ„œμšΈμ˜ 유λͺ…ν•œ κ΄€κ΄‘ μ½”μŠ€λ₯Ό λ§Œλ“€μ–΄μ€„λž˜?"

messages = [
    {"role": "user", "content": f"{instruction}"}
]

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("<end_of_turn>")
]

outputs = model.generate(
    input_ids,
    max_new_tokens=2048,
    eos_token_id=terminators,
    do_sample=True,
    temperature=0.6,
    top_p=0.9,
)

print(tokenizer.decode(outputs[0][input_ids.shape[-1]:], skip_special_tokens=True))

Generated Text

## μ„œμšΈ 유λͺ… κ΄€κ΄‘ μ½”μŠ€: 3가지 ν…Œλ§ˆλ‘œ μ¦κΈ°λŠ” μ„œμšΈ μ—¬ν–‰!

**1. 역사 μ†μœΌλ‘œ μ‹œκ°„ μ—¬ν–‰: 경볡ꢁ & 뢁촌 ν•œμ˜₯λ§ˆμ„ μ½”μŠ€ (ν•˜λ£¨)**

* **μ˜€μ „:** 경볡ꢁ (μ‘°μ„ μ‹œλŒ€ ꢁꢐ, ꡭ보 제1호)
    * 경회루, κ·Όμ •μ „, ν₯λ‘€λ¬Έ 등을 λ°©λ¬Έν•˜λ©° μ‘°μ„ μ‹œλŒ€μ˜ 아름닀움을 λŠκ»΄λ³΄μ„Έμš”.
    * ν•œλ³΅ λŒ€μ—¬ ν›„ ꢁꢐ 사진 μ΄¬μ˜λ„ μΆ”μ²œν•©λ‹ˆλ‹€.
* **점심:** 뢁촌 ν•œμ˜₯λ§ˆμ„ 근처 전톡 ν•œμ‹ λ§›μ§‘μ—μ„œ 점심 식사
    * 뢁촌 ν•œμ˜₯λ§ˆμ„μ˜ μ•„λŠ‘ν•œ λΆ„μœ„κΈ° μ†μ—μ„œ 전톡 μŒμ‹μ„ μ¦κ²¨λ³΄μ„Έμš”.
* **μ˜€ν›„:** 뢁촌 ν•œμ˜₯λ§ˆμ„ (전톡 ν•œμ˜₯κ³Ό 골λͺ©κΈΈμ˜ 맀λ ₯)
    * 예쁜 ν•œμ˜₯λ“€ 사이λ₯Ό 거닐며 전톡 κ³΅μ˜ˆν’ˆ 쇼핑을 μ¦κ²¨λ³΄μ„Έμš”.
    * 뢁촌 8κΈΈ, 뢁촌 1κΈΈ, 뢁촌 3κΈΈ 등을 νƒλ°©ν•˜λ©° μ•„λ¦„λ‹€μš΄ 사진을 λ‚¨κ²¨λ³΄μ„Έμš”.
* **저녁:** 인사동 (전톡 κ³΅μ˜ˆν’ˆκ³Ό 가러리)
    * 전톡 κ³΅μ˜ˆν’ˆμ„ κ΅¬κ²½ν•˜κ³ , κ°€λŸ¬λ¦¬μ—μ„œ 예술 μž‘ν’ˆμ„ κ°μƒν•˜μ„Έμš”.
    * 저녁 μ‹μ‚¬λŠ” μΈμ‚¬λ™μ˜ λ‹€μ–‘ν•œ λ ˆμŠ€ν† λž‘μ—μ„œ 즐길 수 μžˆμŠ΅λ‹ˆλ‹€.

**2. νž™μŠ€ν„°λ“€μ˜ 거리 탐방: ν™λŒ€ & μ΄νƒœμ› μ½”μŠ€ (ν•˜λ£¨)**

* **μ˜€μ „:** ν™λŒ€ (μ Šμ€ λ¬Έν™”μ˜ 쀑심지)
    * ν™λŒ€ 거리의 λ…νŠΉν•œ νŒ¨μ…˜κ³Ό 예술 μž‘ν’ˆμ„ κ°μƒν•˜μ„Έμš”.
    * ν™λŒ€ κ±·κ³  싢은 κ±°λ¦¬μ—μ„œ 사진 μ΄¬μ˜μ„ μ¦κ²¨λ³΄μ„Έμš”.
    * ν™λŒ€ μ Šμ€ μ˜ˆμˆ κ°€λ“€μ˜ μž‘ν’ˆμ„ 감상할 수 μžˆλŠ” κ°€λŸ¬λ¦¬λ„ λ°©λ¬Έν•΄λ³΄μ„Έμš”.
* **점심:** ν™λŒ€ λ§›μ§‘μ—μ„œ 점심 식사 (νŠΈλ Œλ””ν•œ μΉ΄νŽ˜μ™€ λ ˆμŠ€ν† λž‘)
* **μ˜€ν›„:** μ΄νƒœμ› (λ‹€μ–‘ν•œ 문화와 맛집이 λͺ¨μ—¬μžˆλŠ” κ³³)
    * μ΄νƒœμ› 거리의 λ‹€μ–‘ν•œ λ¬Έν™”λ₯Ό κ²½ν—˜ν•˜κ³ , μ™Έκ΅­μΈλ“€μ—κ²Œ 인기 μžˆλŠ” λ ˆμŠ€ν† λž‘κ³Ό 카페λ₯Ό λ°©λ¬Έν•˜μ„Έμš”.
    * μ΄νƒœμ›μ˜ λ…νŠΉν•œ λΆ„μœ„κΈ°λ₯Ό λŠλ‚„ 수 μžˆλŠ” 바와 νŽλ„ λ§ŽμŠ΅λ‹ˆλ‹€.
* **저녁:** μ΄νƒœμ›μ˜ λ‹€μ–‘ν•œ λ ˆμŠ€ν† λž‘μ—μ„œ 저녁 식사 (세계 각ꡭ의 μŒμ‹)

**3. μžμ—° μ†μ—μ„œ νœ΄μ‹: λΆν•œμ‚° & ν•œκ°• 곡원 μ½”μŠ€ (ν•˜λ£¨)**

* **μ˜€μ „:** λΆν•œμ‚° ꡭ립곡원 (μ„œμšΈμ˜ 숲, μ•„λ¦„λ‹€μš΄ μžμ—° κ²½κ΄€)
    * λΆν•œμ‚°μ˜ λ‹€μ–‘ν•œ λ“±μ‚° μ½”μŠ€λ₯Ό μ„ νƒν•˜μ—¬ μžμ—°μ„ λ§Œλ½ν•˜μ„Έμš”.
    * λΆν•œμ‚° λ΄‰μš°λ¦¬μ—μ„œ μ„œμšΈμ˜ μ•„λ¦„λ‹€μš΄ 전경을 κ°μƒν•˜μ„Έμš”.
* **점심:** λΆν•œμ‚° ꡭ립곡원 λ‚΄ μ‹λ‹Ήμ΄λ‚˜ μ‚°μ±…λ‘œ κ·Όμ²˜μ—μ„œ κ°„λ‹¨ν•œ 점심 식사
* **μ˜€ν›„:** ν•œκ°• 곡원 (ν•œκ°•μ˜ 아름닀움을 λŠλ‚„ 수 μžˆλŠ” 곡원)
    * μžμ „κ±°λ₯Ό νƒ€κ±°λ‚˜, 산책을 ν•˜λ©° ν•œκ°•μ˜ 아름닀움을 λ§Œλ½ν•˜μ„Έμš”.
    * ν•œκ°• κ³΅μ›μ˜ λ‹€μ–‘ν•œ 편의 μ‹œμ„€μ„ μ΄μš©ν•΄ νœ΄μ‹μ„ μ·¨ν•˜μ„Έμš”.
    * ν•œκ°• κ³΅μ›μ—μ„œ 피크닉을 즐기며 μ•„λ¦„λ‹€μš΄ 노을을 κ°μƒν•˜μ„Έμš”.

**팁:**

* μ„œμšΈμ˜ λŒ€μ€‘κ΅ν†΅μ€ 맀우 νŽΈλ¦¬ν•©λ‹ˆλ‹€. μ§€ν•˜μ² κ³Ό λ²„μŠ€λ₯Ό μ΄μš©ν•˜μ—¬ 각 κ΄€κ΄‘μ§€λ‘œ μ΄λ™ν•˜μ„Έμš”.
* 각 κ΄€κ΄‘μ§€μ˜ μž…μž₯λ£Œμ™€ 운영 μ‹œκ°„μ„ 미리 ν™•μΈν•˜μ„Έμš”.
* μ—¬ν–‰ 전에 μ„œμšΈμ˜ 날씨λ₯Ό ν™•μΈν•˜κ³ , μ μ ˆν•œ μ˜·μ„ μ€€λΉ„ν•˜μ„Έμš”.
* ν•œκ΅­μ–΄λ₯Ό 잘 λͺ»ν•œλ‹€λ©΄, λ²ˆμ—­ 앱을 μ‚¬μš©ν•˜λ©΄ νŽΈλ¦¬ν•©λ‹ˆλ‹€.

즐거운 μ„œμšΈ μ—¬ν–‰ λ˜μ„Έμš”!

Q&A

Q. μœ„ λ‚΄μš©μ„ μ˜μ–΄λ‘œ λ²ˆμ—­ν•΄μ£Όμ„Έμš”.
A. ##  Seoul's Must-See Attractions: 3 Themed Itineraries for Your Seoul Trip!

**1. Journey Through History: Gyeongbokgung Palace & Bukchon Hanok Village (One Day)**

* **Morning:** Gyeongbokgung Palace (Joseon Dynasty Palace, National Treasure No. 1)
    * Visit Gyeonghoeru Pavilion, Geunjeongjeon Hall, and Heungnyemun Gate to experience the beauty of the Joseon Dynasty.
    * We recommend renting a hanbok (traditional Korean attire) and taking photos in the palace.
* **Lunch:** Enjoy a traditional Korean meal at a restaurant near Bukchon Hanok Village.
    * Savor traditional cuisine in the cozy atmosphere of Bukchon Hanok Village.
* **Afternoon:** Bukchon Hanok Village (Charm of Traditional Korean Houses and Alleys)
    * Stroll through the picturesque hanoks and enjoy shopping for traditional crafts.
    * Explore Bukchon 8th Street, Bukchon 1st Street, and Bukchon 3rd Street to capture beautiful photos.
* **Evening:** Insadong (Traditional Crafts and Galleries)
    * Browse traditional crafts and admire artwork at galleries.
    * Enjoy dinner at one of Insadong's diverse restaurants.

**2. Hipster Hotspot Exploration: Hongdae & Itaewon (One Day)**

* **Morning:** Hongdae (Center of Youth Culture)
    * Admire Hongdae Street's unique fashion and art.
    * Take photos at Hongdae's "Walking Street."
    * Visit galleries showcasing the works of young Hongdae artists.
* **Lunch:** Enjoy lunch at a trendy cafe or restaurant in Hongdae.
* **Afternoon:** Itaewon (Melting Pot of Diverse Cultures and Cuisine)
    * Experience Itaewon's vibrant cultural scene and visit popular restaurants and cafes frequented by foreigners.
    * Explore Itaewon's unique bars and pubs.
* **Evening:** Indulge in dinner at one of Itaewon's diverse restaurants, offering cuisines from around the world.

**3. Relaxation in Nature: Bukhansan National Park & Han River Park (One Day)**

* **Morning:** Bukhansan National Park (Seoul's Forest, Stunning Natural Scenery)
    * Choose from various hiking trails in Bukhansan and immerse yourself in nature.
    * Admire the panoramic views of Seoul from the summit of Bukhansan.
* **Lunch:** Enjoy a simple lunch at a restaurant within Bukhansan National Park or near a hiking trail.
* **Afternoon:** Han River Park (Park Where You Can Enjoy the Beauty of the Han River)
    * Cycle, stroll, and soak in the beauty of the Han River.
    * Utilize the park's various amenities for relaxation.
    * Enjoy a picnic at Han River Park and witness a breathtaking sunset.

**Tips:**

* Seoul's public transportation is very convenient. Use the subway and buses to travel between attractions.
* Check the admission fees and operating hours of each attraction in advance.
* Check Seoul's weather forecast before your trip and pack appropriate clothing.
* If you don't speak Korean fluently, a translation app can be helpful.

Have a wonderful trip to Seoul!

Correspondence to

License

The use of this model is governed by the GOOGLE GEMMA TERM OF USE

Citation

If you use this model in your research, please cite it as follows:

@misc{alpha-instruct,
  author       = {BCCard},
  title        = {BCCard/gemma-2-27b-it-Korean},
  year         = {2025},
  publisher = {Hugging Face},
  journal = {Hugging Face repository},
  url          = {https://huggingface.co/BCCard/gemma-2-27b-it-Korean},
}
Downloads last month
11
Safetensors
Model size
27.2B params
Tensor type
BF16
Β·
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no library tag.

Model tree for BCCard/gemma-2-27b-it-Korean

Base model

google/gemma-2-27b
Finetuned
(31)
this model

Datasets used to train BCCard/gemma-2-27b-it-Korean