tamdiep106
commited on
Commit
•
afa4f8e
1
Parent(s):
7a22495
Update README.md
Browse files
README.md
CHANGED
@@ -17,6 +17,8 @@ This model is finetune on Japanese and English prompt
|
|
17 |
|
18 |
# Usage:
|
19 |
|
|
|
|
|
20 |
To use in code:
|
21 |
|
22 |
```python
|
@@ -42,7 +44,7 @@ tokenizer.eos_token_id = 2
|
|
42 |
To try out this model, use this colab space
|
43 |
https://colab.research.google.com/drive/1kVcN0L_n5lwhFlIqDkNbLNURboifgbBO?usp=sharing
|
44 |
|
45 |
-
Japanese prompt:
|
46 |
|
47 |
```python
|
48 |
instruction_input_JP = 'あなたはアシスタントです。以下に、タスクを説明する指示と、さらなるコンテキストを提供する入力を組み合わせます。 リクエストを適切に完了するレスポンスを作成します。'
|
@@ -68,7 +70,7 @@ result:
|
|
68 |
![Japanese result](image/363534374_1451622835571215_2216121698904551333_n.png)
|
69 |
|
70 |
|
71 |
-
English prompt:
|
72 |
|
73 |
```python
|
74 |
instruction_input_EN = 'You are an Assistant, below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.'
|
@@ -80,7 +82,7 @@ prompt = """{}
|
|
80 |
|
81 |
### Response:"""
|
82 |
|
83 |
-
instruction = "
|
84 |
input = "" #@param {type:"string"}
|
85 |
|
86 |
if input=='':
|
|
|
17 |
|
18 |
# Usage:
|
19 |
|
20 |
+
## Init model:
|
21 |
+
|
22 |
To use in code:
|
23 |
|
24 |
```python
|
|
|
44 |
To try out this model, use this colab space
|
45 |
https://colab.research.google.com/drive/1kVcN0L_n5lwhFlIqDkNbLNURboifgbBO?usp=sharing
|
46 |
|
47 |
+
## Japanese prompt:
|
48 |
|
49 |
```python
|
50 |
instruction_input_JP = 'あなたはアシスタントです。以下に、タスクを説明する指示と、さらなるコンテキストを提供する入力を組み合わせます。 リクエストを適切に完了するレスポンスを作成します。'
|
|
|
70 |
![Japanese result](image/363534374_1451622835571215_2216121698904551333_n.png)
|
71 |
|
72 |
|
73 |
+
## English prompt:
|
74 |
|
75 |
```python
|
76 |
instruction_input_EN = 'You are an Assistant, below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.'
|
|
|
82 |
|
83 |
### Response:"""
|
84 |
|
85 |
+
instruction = "write an email for my boss letting him know that i will resign from the position" #@param {type:"string"}
|
86 |
input = "" #@param {type:"string"}
|
87 |
|
88 |
if input=='':
|