this code is not compatable with the newer huggingface versions, whats the updated code?…
- User
this code is not compatable with the newer huggingface versions, whats the updated code?
from sentence_transformers import SentenceTransformer, util sentence_model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
- Assistant
The code you've provided is compatible with the latest versions of the Hugging Face libraries. However, if you're encountering compatibility issues, it's advisable to ensure that all related libraries are updated to their latest versions. Here's how you can do that:
-
Update the
sentence-transformerslibrary: This library builds upon the and libraries. Updating it will also update its dependencies to compatible versions.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.