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
- Taeyoung Lee ([email protected])
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
- 3
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
🙋
Ask for provider support