Downloads · 30 days
28
30% of all-time downloads
RichardErkhov/jojo-ai-mst_-_thai-opt350m-instruct-awq
jojo-ai-mst_-_thai-opt350m-instruct-awq is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
28
30% of all-time downloads
All-time downloads
93
Public
Parameters
340M
234 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors234 MB · 95%
How the weights are stored.
I32302M · 89%
From the Hugging Face model README
Quantization made by Richard Erkhov.
thai-opt350m-instruct - AWQ
library_name: transformers tags:

a generative language model for thai language based on opt350m
Thai-OPT350M-Instruct is a fine-tuned pretrained transformer for thai language based on facebook/opt-350m.
Dataset for thai-opt350m-instruct
https://huggingface.co/jojo-ai-mst/thai-opt350m-instruct
User: อะไรคือวิธีที่ดีที่สุดในการทําความสะอาดพรม Assistant:
# pip install transformers
from transformers import AutoModelForCausalLM,AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("jojo-ai-mst/thai-opt350m-instruct")
tokenizer = AutoTokenizer.from_pretrained("jojo-ai-mst/thai-opt350m-instruct")
def generate_text(prompt, max_length=200, temperature=0.8, top_k=50):
input_ids = tokenizer.encode(prompt, return_tensors="pt").cuda() # remove .cuda() if only cpu
output = model.generate(
input_ids,
max_length=max_length,
temperature=temperature,
top_k=top_k,
pad_token_id=tokenizer.eos_token_id,
do_sample=True
)
for result in output:
generated_text = tokenizer.decode(result, skip_special_tokens=True)
print(generated_text)
generate_text("User: อะไรคือวิธีที่ดีที่สุดในการทําความสะอาดพรม Assistant:")
22/03/2024
MIT
This ai model is a movement of MyanmarGPT-Movement.