Text Generation
Transformers
Safetensors
Portuguese
llama
portuguese
brazilian-portuguese
pt-br
megatron-lm
causal-lm
text-generation-inference
Instructions to use AIInstituteLNCC/manaca-1b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AIInstituteLNCC/manaca-1b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AIInstituteLNCC/manaca-1b-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AIInstituteLNCC/manaca-1b-base") model = AutoModelForCausalLM.from_pretrained("AIInstituteLNCC/manaca-1b-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AIInstituteLNCC/manaca-1b-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AIInstituteLNCC/manaca-1b-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AIInstituteLNCC/manaca-1b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AIInstituteLNCC/manaca-1b-base
- SGLang
How to use AIInstituteLNCC/manaca-1b-base with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "AIInstituteLNCC/manaca-1b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AIInstituteLNCC/manaca-1b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "AIInstituteLNCC/manaca-1b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AIInstituteLNCC/manaca-1b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AIInstituteLNCC/manaca-1b-base with Docker Model Runner:
docker model run hf.co/AIInstituteLNCC/manaca-1b-base
Update README.md
Browse files
README.md
CHANGED
|
@@ -102,7 +102,7 @@ O Manacá-1B é o modelo mais forte abaixo de 7B na predição da última palavr
|
|
| 102 |
(LAMBADA-PT), empata com os melhores modelos de 1 a 2 B no CALAME-PT, e fica na faixa
|
| 103 |
de acaso em ARC-Challenge-PT (como todo modelo base nessa escala). Detalhes, testes
|
| 104 |
pareados de McNemar e validação do harness no
|
| 105 |
-
[repositório](https://github.com/Instituto-IA-LNCC/manaca-1b-base) e no [preprint](https://
|
| 106 |
|
| 107 |
### Uso
|
| 108 |
|
|
@@ -203,7 +203,7 @@ Manacá-1B is the strongest model below 7B on last-word prediction (LAMBADA-PT),
|
|
| 203 |
the best 1-to-2B models on CALAME-PT, and sits near chance on ARC-Challenge-PT (as
|
| 204 |
does every base model at this scale). Details, paired McNemar tests, and harness
|
| 205 |
validation are in the
|
| 206 |
-
[repository](https://github.com/Instituto-IA-LNCC/manaca-1b-base) and the [preprint](https://
|
| 207 |
|
| 208 |
### Usage
|
| 209 |
|
|
|
|
| 102 |
(LAMBADA-PT), empata com os melhores modelos de 1 a 2 B no CALAME-PT, e fica na faixa
|
| 103 |
de acaso em ARC-Challenge-PT (como todo modelo base nessa escala). Detalhes, testes
|
| 104 |
pareados de McNemar e validação do harness no
|
| 105 |
+
[repositório](https://github.com/Instituto-IA-LNCC/manaca-1b-base) e no [preprint](https://github.com/Instituto-IA-LNCC/manaca-1b-base/blob/main/paper/manaca_1b_base_arxiv.pdf).
|
| 106 |
|
| 107 |
### Uso
|
| 108 |
|
|
|
|
| 203 |
the best 1-to-2B models on CALAME-PT, and sits near chance on ARC-Challenge-PT (as
|
| 204 |
does every base model at this scale). Details, paired McNemar tests, and harness
|
| 205 |
validation are in the
|
| 206 |
+
[repository](https://github.com/Instituto-IA-LNCC/manaca-1b-base) and the [preprint](https://github.com/Instituto-IA-LNCC/manaca-1b-base/blob/main/paper/manaca_1b_base_arxiv.pdf).
|
| 207 |
|
| 208 |
### Usage
|
| 209 |
|