Downloads · 30 days
0
nesaorg/Llama-3.2-1B-Instruct-Encrypted
Llama-3.2-1B-Instruct-Encrypted is a machine learning model from nesaorg. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Unlike our encrypted DistilBert, this model’s weights reside on Nesa’s secure server, but the tokenizer is on Hugging Face. You can still use the tokenizer to encode and decode text and then submit it for inference vi…
Downloads · 30 days
0
Access
Public
Updated Jan 4, 2025
Repo size
11.6 MB
Likes
2
Public
Click a slice to open those files.
.json11.6 MB · 100%
From the Hugging Face model README
Unlike our encrypted DistilBert, this model’s weights reside on Nesa’s secure server, but the tokenizer is on Hugging Face. You can still use the tokenizer to encode and decode text and then submit it for inference via the Nesa network!
###### Load the Tokenizer
from transformers import AutoTokenizer
hf_token = "<HF TOKEN>" # Replace with your token
model_id = "nesaorg/Llama-3.2-1B-Instruct-Encrypted"
tokenizer = AutoTokenizer.from_pretrained(model_id, token=hf_token, local_files_only=False)
text = "I'm super excited to join Nesa's Equivariant Encryption initiative!"
# Encode text into token IDs
token_ids = tokenizer.encode(text)
print("Token IDs:", token_ids)
# Decode token IDs back to text
decoded_text = tokenizer.decode(token_ids)
print("Decoded Text:", decoded_text)
Token IDs: [128000, 1495, 1135, 2544, 6705, 284, 2219, 11659, 17098, 22968, 8707, 2544, 3539, 285, 34479]
Decoded Text: I'm super excited to join Nesa's Equivariant Encryption initiative!