borg / README.md
tiberiu44's picture
Upload folder using huggingface_hub
e14cd69 verified
|
Raw History Blame Contribute Delete
829 Bytes
# 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")
```