How to use samuerio/model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("samuerio/model") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
How to use samuerio/model with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for samuerio/model to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for samuerio/model to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for samuerio/model to start chatting
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="samuerio/model", max_seq_length=2048, )
The community tab is the place to discuss and collaborate with the HF community!