Downloads · 30 days
10
4% of all-time downloads
0xcubin/crypto-mini-embed
crypto-mini-embed is a machine learning model from 0xcubin. 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 mit.
crypto-mini-embed adalah contoh model mini embedding berbasis arsitektur sederhana untuk eksperimen NLP seperti:
Downloads · 30 days
10
4% of all-time downloads
All-time downloads
258
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 48%
From the Hugging Face model README
crypto-mini-embed adalah contoh model mini embedding berbasis arsitektur sederhana untuk eksperimen NLP seperti:
Model ini merupakan dummy model untuk membantu pengguna memahami struktur repository model di HuggingFace.
MiniEmbeddingModel| File | Fungsi |
|---|---|
config.json | Konfigurasi model |
tokenizer.json | Tokenizer sederhana |
model.safetensors | Parameter model |
README.md | Dokumentasi model |
from transformers import AutoTokenizer, AutoModel
import torch
tok = AutoTokenizer.from_pretrained("0xcubin/crypto-mini-embed")
model = AutoModel.from_pretrained("0xcubin/crypto-mini-embed")
text = "Bitcoin is digital money"
inputs = tok(text, return_tensors="pt")
with torch.no_grad():
emb = model(**inputs).last_hidden_state.mean(dim=1)
print(emb.shape) # contoh: (1, 64)