File size: 829 Bytes
e14cd69
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# Borg Cube

This repository contains the borg-cube pipeline configuration and runtime code, but not its component weights. Publish each component to a model repository named by appending `-<component>` to this repository ID (for example, `racai-ai/mixed-tokenizer`). The pipeline downloads the listed components at runtime. Pass `adapter_variant` to select repositories with an additional suffix, such as `racai/borg-tokenizer-combined`; omit it for default repositories. Its custom pipeline code is loaded by Transformers; review it before enabling `trust_remote_code`.

Install the dependencies listed in `requirements.txt`, then run:

```python
from transformers import pipeline

nlp = pipeline(model="your-username/your-nlp-repo", trust_remote_code=True, adapter_variant='combined')
result = nlp("Your input text here")
```