Instructions to use tim1900/bert-chunker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tim1900/bert-chunker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="tim1900/bert-chunker")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("tim1900/bert-chunker") model = AutoModel.from_pretrained("tim1900/bert-chunker", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,7 +9,7 @@ pipeline_tag: sentence-similarity
|
|
| 9 |
|
| 10 |
## Introduction
|
| 11 |
|
| 12 |
-
BertChunker is an end-to-end trained chunker for chunking text for RAG. It was trained based on [MiniLM-L6-H384-uncased](https://huggingface.co/nreimers/MiniLM-L6-H384-uncased) with an adapter. The whole
|
| 13 |
|
| 14 |
This repo includes model checkpoint, BertChunker class definition file and all the other files needed.
|
| 15 |
|
|
|
|
| 9 |
|
| 10 |
## Introduction
|
| 11 |
|
| 12 |
+
BertChunker is an end-to-end trained chunker for chunking text for RAG. It was trained based on [MiniLM-L6-H384-uncased](https://huggingface.co/nreimers/MiniLM-L6-H384-uncased) with an adapter. The whole training lasted for 10 minutes on a Nvidia P40 GPU on a 50 MB synthetized dataset.
|
| 13 |
|
| 14 |
This repo includes model checkpoint, BertChunker class definition file and all the other files needed.
|
| 15 |
|