BERT Hash Nano Models
Collection
Set of BERT models with a modified embeddings layer • 10 items • Updated • 10
How to use NeuML/bert-hash-nano-embeddings-litert with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
bert-hash-nano-embeddings LiteRT model.
This can be run in txtai using the following code.
import txtai
embeddings = txtai.Embeddings(
path="neuml/bert-hash-nano-embeddings-litert/bert-hash-nano-embeddings-fp16.tflite",
content=True,
)
embeddings.index(documents())
# Run a query
embeddings.search("query to run")
See this link to see the code used to create this model.