CjangCjengh
commited on
Commit
•
da3c425
1
Parent(s):
d328f40
Update README.md
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ language:
|
|
4 |
- ko
|
5 |
- zh
|
6 |
---
|
7 |
-
基于[Qwen1.5-14B-Chat](https://huggingface.co/Qwen/Qwen1.5-14B-Chat),在韩文轻小说翻译数据上微调(包含
|
8 |
|
9 |
模型仅支持韩文→简体中文的翻译
|
10 |
|
@@ -12,7 +12,7 @@ language:
|
|
12 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
13 |
from transformers.generation import GenerationConfig
|
14 |
|
15 |
-
model_path = 'CjangCjengh/LN-Korean-14B-v0.
|
16 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
17 |
model = AutoModelForCausalLM.from_pretrained(model_path, device_map='auto', trust_remote_code=True).eval()
|
18 |
model.generation_config = GenerationConfig.from_pretrained(model_path, trust_remote_code=True)
|
|
|
4 |
- ko
|
5 |
- zh
|
6 |
---
|
7 |
+
基于[Qwen1.5-14B-Chat](https://huggingface.co/Qwen/Qwen1.5-14B-Chat),在韩文轻小说翻译数据上微调(包含550本日轻的韩翻和中翻对照以及14本韩轻的中翻)
|
8 |
|
9 |
模型仅支持韩文→简体中文的翻译
|
10 |
|
|
|
12 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
13 |
from transformers.generation import GenerationConfig
|
14 |
|
15 |
+
model_path = 'CjangCjengh/LN-Korean-14B-v0.2'
|
16 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
17 |
model = AutoModelForCausalLM.from_pretrained(model_path, device_map='auto', trust_remote_code=True).eval()
|
18 |
model.generation_config = GenerationConfig.from_pretrained(model_path, trust_remote_code=True)
|