Downloads · 30 days
0
Kanompung/tsuname_llm_embed
tsuname_llm_embed is a machine learning model from Kanompung. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
- Developed by: Kanompung - License: apache-2.0 - Finetuned from model : Tsunami-th/Tsunami-1.0-14B-Instruct
Downloads · 30 days
0
Access
Public
Updated May 15, 2025
Repo size
562 MB
Likes
0
Public
Click a slice to open those files.
.safetensors551 MB · 97%
From the Hugging Face model README
This qwen2 model was trained 2x faster with Unsloth and Huggingface's TRL library.
from transformers import AutoTokenizer, AutoModel
import torch
tokenizer = AutoTokenizer.from_pretrained("Kanompung/Tsunami_llm_embed")
model = AutoModel.from_pretrained("Kanompung/Tsunami_llm_embed")
texts = ["สวัสดีครับ", "วันนี้อากาศดี"]
enc = tokenizer(texts, padding=True, truncation=True, return_tensors="pt")
with torch.no_grad():
out = model(**enc)
embeds = out.last_hidden_state.mean(dim=1)
print(embeds.shape)