ping98k commited on
Commit
58ce209
·
1 Parent(s): 3d44dc1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -0
README.md CHANGED
@@ -21,6 +21,15 @@ This model is a fine-tuned version of [openthaigpt/openthaigpt-1.0.0-beta-7b-cha
21
  It achieves the following results on the evaluation set:
22
  - Loss: 1.5721
23
 
 
 
 
 
 
 
 
 
 
24
  ## Model description
25
 
26
  More information needed
 
21
  It achieves the following results on the evaluation set:
22
  - Loss: 1.5721
23
 
24
+ ## Inference with Pipeline
25
+
26
+ ```python
27
+ import torch
28
+ from transformers import pipeline
29
+ text_generator = pipeline("text-generation", model="ping98k/th-7b-20gb-base", torch_dtype=torch.bfloat16, device_map="auto")
30
+ print(text_generator("แบบจำลองทางวิทยาศาสตร์ (scientific modeling) คือ", max_length=50))
31
+ ```
32
+
33
  ## Model description
34
 
35
  More information needed