Text Generation
Transformers
Safetensors
Thai
English
qwen2
text-generation-inference
sft
trl
4-bit precision
bitsandbytes
LoRA
Fine-Tuning with LoRA
LLM
GenAI
NT GenAI
ntgenai
lahnmah
NT Thai GPT
ntthaigpt
medical
medtech
HealthGPT
หลานม่า
NT Academy
conversational
Inference Endpoints
4-bit precision
Update README.md
Browse files
README.md
CHANGED
@@ -172,7 +172,7 @@ inputs = {k: v.to(device) for k, v in inputs.items()}
|
|
172 |
Now, generate the medical response by running the model:
|
173 |
|
174 |
```python
|
175 |
-
outputs = model.generate(**inputs, max_new_tokens=
|
176 |
```
|
177 |
|
178 |
## 8. Decode the Generated Text
|
@@ -186,7 +186,15 @@ print(generated_text)
|
|
186 |
|
187 |
## 9. Output
|
188 |
```python
|
189 |
-
[INST] <You are a question answering assistant. Answer the question as truthfully and helpfully as possible. คุณคือผู้ช่วยตอบคำถาม จงตอบคำถามอย่างถูกต้องและมีประโยชน์ที่สุด<>โปรดอธิบายลักษณะช่องปากที่เป็นมะเร็งในระยะเริ่มต้น[/INST]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
```
|
191 |
|
192 |
### Authors
|
|
|
172 |
Now, generate the medical response by running the model:
|
173 |
|
174 |
```python
|
175 |
+
outputs = model.generate(**inputs, max_new_tokens=256, do_sample=True)
|
176 |
```
|
177 |
|
178 |
## 8. Decode the Generated Text
|
|
|
186 |
|
187 |
## 9. Output
|
188 |
```python
|
189 |
+
[INST] <You are a question answering assistant. Answer the question as truthfully and helpfully as possible. คุณคือผู้ช่วยตอบคำถาม จงตอบคำถามอย่างถูกต้องและมีประโยชน์ที่สุด<>โปรดอธิบายลักษณะช่องปากที่เป็นมะเร็งในระยะเริ่มต้น[/INST] <ช่องปากที่เป็นมะเร็งในระยะเริ่มต้นอาจจะไม่มีอาการรุนแรง แต่บางครั้งก็อาจจะมีลักษณะต่อไปนี้:
|
190 |
+
|
191 |
+
1. ตุ่มน้ำลายหรือแผลที่ไม่หายซึ่งคงอยู่นานกว่า 2 สัปดาห์
|
192 |
+
2. ความเสียหายหรือเปลี่ยนแปลงของช่องปากที่เกิดขึ้นอย่างช้าๆ เช่น แต้มขนาดเล็ก เจล หรือลักษณะของชิ้นผิวที่เปลี่ยนแปลง
|
193 |
+
3. ความยากในการกัดนิ้ว คำ หรืออาหาร
|
194 |
+
4. บวมหรือเปลี่ยนแปลงของเยื่อบุในช่องปาก
|
195 |
+
5. คำที่หายไปจากชั้นหรือแกลบต่างๆ
|
196 |
+
6. ปัญหาในการให้อาหาร ตัวอย่างเช่น การเคี้ยวอาหารและกลืน
|
197 |
+
7. เข้าใกล้ริม
|
198 |
```
|
199 |
|
200 |
### Authors
|