Instructions to use AdamLangePL/Allegro-PLT5-Base-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use AdamLangePL/Allegro-PLT5-Base-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AdamLangePL/Allegro-PLT5-Base-GGUF", filename="allegro-plT5-base-Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use AdamLangePL/Allegro-PLT5-Base-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M
Use Docker
docker model run hf.co/AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use AdamLangePL/Allegro-PLT5-Base-GGUF with Ollama:
ollama run hf.co/AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M
- Unsloth Studio new
How to use AdamLangePL/Allegro-PLT5-Base-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AdamLangePL/Allegro-PLT5-Base-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AdamLangePL/Allegro-PLT5-Base-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AdamLangePL/Allegro-PLT5-Base-GGUF to start chatting
- Docker Model Runner
How to use AdamLangePL/Allegro-PLT5-Base-GGUF with Docker Model Runner:
docker model run hf.co/AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M
- Lemonade
How to use AdamLangePL/Allegro-PLT5-Base-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AdamLangePL/Allegro-PLT5-Base-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Allegro-PLT5-Base-GGUF-Q4_K_M
List all available models
lemonade list
plT5 Base
plT5 models are T5-based language models trained on Polish corpora. The models were optimized for the original T5 denoising target.
Corpus
plT5 was trained on six different corpora available for Polish language:
| Corpus | Tokens | Documents |
|---|---|---|
| CCNet Middle | 3243M | 7.9M |
| CCNet Head | 2641M | 7.0M |
| National Corpus of Polish | 1357M | 3.9M |
| Open Subtitles | 1056M | 1.1M |
| Wikipedia | 260M | 1.4M |
| Wolne Lektury | 41M | 5.5k |
Tokenizer
The training dataset was tokenized into subwords using a sentencepiece unigram model with vocabulary size of 50k tokens.
Usage
Example code:
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("allegro/plt5-base")
model = AutoModel.from_pretrained("allegro/plt5-base")
License
CC BY 4.0
Citation
If you use this model, please cite the following paper:
@article{chrabrowa2022evaluation,
title={Evaluation of Transfer Learning for Polish with a Text-to-Text Model},
author={Chrabrowa, Aleksandra and Dragan, {\L}ukasz and Grzegorczyk, Karol and Kajtoch, Dariusz and Koszowski, Miko{\l}aj and Mroczkowski, Robert and Rybak, Piotr},
journal={arXiv preprint arXiv:2205.08808},
year={2022}
}
Authors
The model was trained by Machine Learning Research Team at Allegro and Linguistic Engineering Group at Institute of Computer Science, Polish Academy of Sciences.
You can contact us at: klejbenchmark@allegro.pl
- Downloads last month
- 26
4-bit
5-bit
16-bit