aws-neuron / snowflake-arctic-embed-l

huggingface.co
Total runs: 13
24-hour runs: -1
7-day runs: 1
30-day runs: 9
Model's Last Updated: September 28 2024

Introduction of snowflake-arctic-embed-l

Model Details of snowflake-arctic-embed-l

***This model is a neuron compiled version of https://huggingface.co/Snowflake/snowflake-arctic-embed-l ***

It was compiled on version 2.20 of the Neuron SDK. You may need to run the compilation process again.

See https://huggingface.co/docs/optimum-neuron/en/inference_tutorials/sentence_transformers for more details

For information on how to run on SageMaker: https://huggingface.co/docs/optimum-neuron/en/inference_tutorials/sentence_transformers

To run:


from optimum.neuron import NeuronModelForSentenceTransformers
from transformers import AutoTokenizer
model_id = "jburtoft/snowflake-arctic-embed-l"

# Use the line below if you have to compile the model yourself
#model_id = "snowflake-arctic-embed-l-inf2"


model = NeuronModelForSentenceTransformers.from_pretrained(model_id)
tokenizer = AutoTokenizer.from_pretrained(model_id)

# Run inference
prompt = "I like to eat apples"
encoded_input = tokenizer(prompt, return_tensors='pt')
outputs = model(**encoded_input)

token_embeddings = outputs.token_embeddings
sentence_embedding = outputs.sentence_embedding

print(f"token embeddings: {token_embeddings.shape}") # torch.Size([1, 7, 384])
print(f"sentence_embedding: {sentence_embedding.shape}") # torch.Size([1, 384])

To compile :

optimum-cli export neuron -m Snowflake/snowflake-arctic-embed-l --sequence_length 512 --batch_size 1 --task feature-extraction snowflake-arctic-embed-l-inf2

Runs of aws-neuron snowflake-arctic-embed-l on huggingface.co

13
Total runs
-1
24-hour runs
1
3-day runs
1
7-day runs
9
30-day runs

More Information About snowflake-arctic-embed-l huggingface.co Model

More snowflake-arctic-embed-l license Visit here:

https://choosealicense.com/licenses/apache-2.0

snowflake-arctic-embed-l huggingface.co

snowflake-arctic-embed-l huggingface.co is an AI model on huggingface.co that provides snowflake-arctic-embed-l's model effect (), which can be used instantly with this aws-neuron snowflake-arctic-embed-l model. huggingface.co supports a free trial of the snowflake-arctic-embed-l model, and also provides paid use of the snowflake-arctic-embed-l. Support call snowflake-arctic-embed-l model through api, including Node.js, Python, http.

snowflake-arctic-embed-l huggingface.co Url

https://huggingface.co/aws-neuron/snowflake-arctic-embed-l

aws-neuron snowflake-arctic-embed-l online free

snowflake-arctic-embed-l huggingface.co is an online trial and call api platform, which integrates snowflake-arctic-embed-l's modeling effects, including api services, and provides a free online trial of snowflake-arctic-embed-l, you can try snowflake-arctic-embed-l online for free by clicking the link below.

aws-neuron snowflake-arctic-embed-l online free url in huggingface.co:

https://huggingface.co/aws-neuron/snowflake-arctic-embed-l

snowflake-arctic-embed-l install

snowflake-arctic-embed-l is an open source model from GitHub that offers a free installation service, and any user can find snowflake-arctic-embed-l on GitHub to install. At the same time, huggingface.co provides the effect of snowflake-arctic-embed-l install, users can directly use snowflake-arctic-embed-l installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

snowflake-arctic-embed-l install url in huggingface.co:

https://huggingface.co/aws-neuron/snowflake-arctic-embed-l

Url of snowflake-arctic-embed-l

snowflake-arctic-embed-l huggingface.co Url

Provider of snowflake-arctic-embed-l huggingface.co

aws-neuron
ORGANIZATIONS

Other API from aws-neuron