Comments (3)
I have created a repository for data generation and training of bi-encoder models (so far, only for entity-linking) based on the BLINK model. In it, you can choose which bert base model to use to make your evaluation faster :). As I remember using a bert-mini I could get R@64 of 84% on zeshel dataset.*
But no cross-encoder was implemented, so, you can make only faster the bi-encoder part.
from blink.
@Giovani-Merlin Is that repo still active? The link is now dead.
from blink.
If you have your own training data, it's not hard to modify the code slightly to use the latest and smaller HuggingFace BERT models (such as BERT mini or google/bert_uncased_L-8_H-512_A-8) for training biencoder.
You'll need to change how the base model is loaded (use HuggingFace's AutoModel
and AutoTokenizer
classes) and how the tokenized input is fed to the model (input_ids
, token_type_ids
and attention_mask
).
I tried training the Zeshel model after making these changes and training seemed to go on fine.
from blink.
Related Issues (20)
- How to generate embeddings for new candidates? HOT 6
- Slightly different scores when using a quantized model
- Poor recall using non-dense FAISS indexes HOT 2
- How to only generate Precision, Recall, and f1 score when benchmarking BLINK HOT 3
- Biencoder with GPU RuntimeError: Expected object of device type cuda but got device type cpu for argument #3 'index' in call to _th_index_select HOT 3
- python: symbol lookup error:
- KeyError HOT 7
- A short tutorial on how to train a smaller biencoder model on custom dataset HOT 1
- Entity linking in Wikidata? HOT 3
- Missing `add_special_tokens` in biencoder? HOT 1
- Average length of words in a Wikipedia Entity HOT 1
- AttributeError: 'KeyedVectors' object has no attribute 'key_to_index' HOT 1
- Add truncation for data_process.get_context_representation
- Tutorial on how to train a Crossencoder HOT 1
- Python 3.7 no longer supported by conda HOT 2
- How to get entity type?
- ValueError in faiss_indexer.py Due to Mismatched Tensor Shapes During ELQ Training
- ELQ Wikipedia-trained biencoder checkpoints
- Can Support Chinese?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blink.