Instructions to use germla/satoken-zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use germla/satoken-zh with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("germla/satoken-zh") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use germla/satoken-zh with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("germla/satoken-zh") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from germla/satoken-zh: direct link, hf CLI and curl.
- Browser
- Download file 471 MB
-
https://huggingface.co/germla/satoken-zh/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://germla/satoken-zh/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/germla/satoken-zh/resolve/main/pytorch_model.bin
471 MB
- Xet hash:
- 85013fd135a4082ec94646040a711b8ddb632748e2c9bb3ed62192ddf0b3e5d4
- Size of remote file:
- 471 MB
- SHA256:
- ede501aa23af597d86cf7e8fd82d9b863f21a4dae626ed9548db493b7f255e6a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.