code_execution_files / google_embeddinggemma-300m_8.txt
ariG23498's picture
ariG23498 HF Staff
Upload google_embeddinggemma-300m_8.txt with huggingface_hub
6ec2929 verified
raw
history blame
492 Bytes
```CODE:
embeddings = model.encode(words, truncate_dim=512, normalize_embeddings=True)
for idx, embedding in enumerate(embeddings):
print(f"Embedding {idx+1}: {embedding.shape}")
print("-"*80)
check_word_similarities()
```
ERROR:
Traceback (most recent call last):
File "/tmp/google_embeddinggemma-300m_8kFRUVt.py", line 14, in <module>
embeddings = model.encode(words, truncate_dim=512, normalize_embeddings=True)
^^^^^
NameError: name 'model' is not defined