Downloads · 30 days
26
41% of all-time downloads
yasyf/bert-for-patents
bert-for-patents is a feature extraction model from yasyf. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as apache-2.0.
This model is based on anferico/bert-for-patents - a BERT<subLARGE</sub model (See next section for details below). By default, the pre-trained model's output embeddings with size 768 (base-models) or with size 1024 (…
Downloads · 30 days
26
41% of all-time downloads
All-time downloads
63
Public
Parameters
345M
4.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.h51.4 GB · 33%
How the weights are stored.
F32345M · 100%
From the Hugging Face model README
This model is based on anferico/bert-for-patents - a BERT<sub>LARGE</sub> model (See next section for details below). By default, the pre-trained model's output embeddings with size 768 (base-models) or with size 1024 (large-models). However, when you store Millions of embeddings, this can require quite a lot of memory/storage. So have reduced the embedding dimension to 64 i.e 1/16th of 1024 using Principle Component Analysis (PCA) and it still gives a comparable performance. Yes! PCA gives better performance than NMF. Note: This process neither improves the runtime, nor the memory requirement for running the model. It only reduces the needed space to store embeddings, for example, for semantic search using vector databases.
BERT for Patents is a model trained by Google on 100M+ patents (not just US patents).
If you want to learn more about the model, check out the blog post, white paper and GitHub page containing the original TensorFlow checkpoint.