sh2orc commited on
Commit
ff5ddaf
·
verified ·
1 Parent(s): cd36c16

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +109 -3
README.md CHANGED
@@ -1,3 +1,109 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - bccard
5
+ - bcgpt
6
+ datasets:
7
+ - BCCard/BCCard-Finance-Kor-QnA
8
+ language:
9
+ - ko
10
+ - en
11
+ base_model:
12
+ - deepseek-ai/DeepSeek-R1-Distill-Llama-8B
13
+ ---
14
+
15
+ **BCCard/DeepSeek-R1-Distill-Llama-8B-BCGPT** is a Korean and Financial knowledge model based on DeepSeek-R1-Distill-Llama-8B.
16
+
17
+ BC Card, which is the largest credit card company in Korea, is a question/answer model learned using Korean financial datasets.
18
+
19
+ # How to Use
20
+
21
+ ```python
22
+ import torch
23
+ from transformers import AutoTokenizer, AutoModelForCausalLM
24
+
25
+ model_id = "BCCard/DeepSeek-R1-Distill-Llama-8B-BCGPT"
26
+
27
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
28
+ tokenizer.pad_token = tokenizer.eos_token
29
+ tokenizer.padding_side = 'right'
30
+
31
+ model = AutoModelForCausalLM.from_pretrained(
32
+ model_id,
33
+ torch_dtype=torch.bfloat16,
34
+ device_map="auto",
35
+ )
36
+
37
+ model.eval()
38
+ instruction = "서울의 유명한 관광 코스를 만들어줄래?"
39
+
40
+ messages = [
41
+ {"role": "user", "content": f"{instruction}"}
42
+ ]
43
+
44
+ inputs = tokenizer.apply_chat_template(
45
+ messages,
46
+ add_generation_prompt=True,
47
+ return_tensors="pt",
48
+ padding=True
49
+ )
50
+
51
+ input_ids = inputs.to(model.device)
52
+ attention_mask = (input_ids != tokenizer.pad_token_id).long()
53
+
54
+ outputs = model.generate(
55
+ input_ids,
56
+ attention_mask=attention_mask,
57
+ max_new_tokens=4096,
58
+ do_sample=True, # 샘플링 활성화
59
+ temperature=0.6, # 온도 설정
60
+ top_p=0.9, # nucleus sampling
61
+ )
62
+
63
+ print(tokenizer.decode(outputs[0][input_ids.shape[-1]:], skip_special_tokens=True))
64
+ ```
65
+
66
+ # Generated Text
67
+
68
+ ```
69
+ <think>
70
+ 서울은 다양한 관광 명소와 체험을 제공하는 도시입니다. 다음은 서울의 대표적인 관광 코스입니다:
71
+
72
+ ### 1. **경복궁&한강23로 코스**
73
+ - **경복궁**: 서울의 주요 역사적 유적지로, 여의도에 위치해 있습니다. 여의도公園에서 경복궁을 내려다보는 경치가 아름답습니다.
74
+ - **한강23로**: 한강변을 따라 걷는 코스로, 특히 23로에서는 서울의 전경을 한눈에 볼 수 있습니다. 이곳에서는 자전거 타기나 피크닉을 즐길 수 있습니다.
75
+
76
+ ### 2. **명동&홍대 코스**
77
+ - **명동**: 패션과 유행을 경험할 수 있는 대표적인 쇼핑 명소입니다. 명동은 다양한 브랜드의 가방과 액세서리를 판매하는 곳으로 유명합니다.
78
+ - **홍대**: 트렌디한 카페와 플래그십 스토어들이 밀집한 지역으로, 젊은이들이 많이 찾는 곳입니다. 특히, '다이소'와 같은 가성비 높은 브랜드가 인기를 끌고 있습니다.
79
+
80
+ ### 3. **이태원 코스**
81
+ - 이태원은 다양한 문화와 유흥 시설이 밀집한 지역으로, 세계 각국의 사람들이 모이는 곳입니다. 이곳에서는 다양한 음식과 카페, 그리고 유흥 시설을 경험할 수 있습니다.
82
+
83
+ ### 4. **북한산 코스**
84
+ - 북한산은 서울의 근거리 자연 경관을 즐길 수 있는 곳으로, 사릉과 산책로가 잘 조성되어 있습니다. 특히, 북한산 둘레길은 많은 사람들이 자전거 타거나 산책을 즐기는 코스로 유명합니다.
85
+
86
+ ### 5. **잠실 롯데월드 코스**
87
+ - 잠실 롯데월드는 서울의 대표적인 놀이공원으로, 다양한 놀이기구와 공연을 제공합니다. 특히, 롯데캐니피컬은 세계에서 가장 큰 모형 선박이 있는 곳으로 유명합니다.
88
+
89
+ 이 코스들은 서울의 다양한 면을 경험할 수 있는 기회를 제공하며, 각 코스마다 독특한 문화와 즐길 수 있는 곳이 있습니다.
90
+ ```
91
+
92
+ ## Correspondence to
93
+ - Taeyoung Lee (sh2orc@gmail.com)
94
+
95
+ ## License
96
+ The use of this model is governed by MIT license
97
+
98
+ ## Citation
99
+ If you use this model in your research, please cite it as follows:
100
+
101
+ ```bibtex
102
+ @misc{alpha-instruct,
103
+ author = {BCCard},
104
+ title = {BCGPT},
105
+ year = {2025},
106
+ publisher = {Hugging Face},
107
+ journal = {Hugging Face repository},
108
+ url = {https://huggingface.co/BCCard/DeepSeek-R1-Distill-Llama-8B-BCGPT},
109
+ }