Views
No views yet
Llama-PortOIE3 is a Llama 3–family generative model fine-tuned for Portuguese
extractive Open Information Extraction and published as a single GGUF file for
llama.cpp-compatible runtimes. It generates binary ARG0, V, ARG1 extractions.| Field | Value |
|---|---|
| Public repository | bratao/Llama-PortOIE3 |
| File | llama3_finetune.gguf |
| Architecture from GGUF metadata | Llama, 8,030,261,248 parameters |
| Task | Portuguese extractive OpenIE |
| Context encoded in GGUF metadata | 8,192 tokens |
| Artifact size | 8,540,770,624 bytes (about 8.54 GB) |
| File SHA-256 | 98ffe7115c224c3820e08935e570a9dfdb1178fbaaf5414dcc5fc9288a451ff5 |
| Audited revision | 459d04b8baffbaabae74445715e98974eb869790 (2026-08-30) |
chat_format="llama-3"
explicitly for reproducibility.portuguese-openiepip install "portuguese-openie[gguf]"1from portuguese_openie import Model, PortugueseOpenIE
2
3extractor = PortugueseOpenIE(
4 Model.LLAMA_PORT_OIE3,
5 n_ctx=2048,
6 n_gpu_layers=0, # raise to offload layers when your llama.cpp build supports it
7)
8triples = extractor.extract("A UFBA está localizada em Salvador.")
9print([triple.to_dict() for triple in triples])llama-cpp-python downloads the public GGUF from Hugging
Face on first use and reuses the standard local cache afterward.[{"ARG0": "A UFBA", "V": "está localizada em", "ARG1": "Salvador"}]1from huggingface_hub import hf_hub_download
2from llama_cpp import Llama
3
4model_path = hf_hub_download(
5 repo_id="bratao/Llama-PortOIE3",
6 filename="llama3_finetune.gguf",
7 revision="459d04b8baffbaabae74445715e98974eb869790",
8)
9llm = Llama(
10 model_path=model_path,
11 chat_format="llama-3",
12 n_ctx=2048,
13 n_gpu_layers=0,
14)
15
16sentence = "A UFBA está localizada em Salvador."
17messages = [
18 {
19 "role": "system",
20 "content": (
21 "Dada uma frase S você consegue fazer extrações no formato ARG0 , V, "
22 "ARG1. Realize a extração para a frase abaixo:"
23 ),
24 },
25 {"role": "user", "content": f"S: {sentence}"},
26]
27response = llm.create_chat_completion(
28 messages=messages,
29 max_tokens=512,
30 temperature=0.0,
31)
32print(response["choices"][0]["message"]["content"])Dada uma frase S você consegue fazer extrações no formato ARG0 , V, ARG1. Realize a extração para a frase abaixo:Dada uma sentença S, você faz extrações no formato ARG0, V, ARG1. Realize a extração para a sentença abaixo:.
The wording above is the exact prompt in the associated local inference runner and
the maintained portuguese-openie implementation. Use S: {sentence} as the user
message; an old runner used a debug-style f-string that included the field name.| Source | Criterion | Precision | Recall | F1 |
|---|---|---|---|---|
| Thesis | Perfect match | — | — | 0.1290 |
| Thesis | Lexical match | 0.2857 | 0.2058 | 0.2446 |
| Local evaluation | Lexical match | 0.2394 | 0.2500 | 0.2446 |
| Conflicting local evaluation | Perfect match | 0.0922 | 0.0956 | 0.0939 |
datasets.llama-cpp-python and a compatible llama.cpp build.n_gpu_layers according to available VRAM.1@phdthesis{cabral2025evolving,
2 author = {Cabral, Bruno Souza},
3 title = {Evolving Open Information Extraction for Portuguese employing Language Models},
4 school = {Universidade Federal da Bahia},
5 year = {2025}
6}
7
8@inproceedings{cabral2022portnoie,
9 author = {Cabral, Bruno and Souza, Marlo and Claro, Daniela Barreiro},
10 title = {PortNOIE: A Neural Framework for Open Information Extraction for the Portuguese Language},
11 booktitle = {Computational Processing of the Portuguese Language (PROPOR 2022)},
12 year = {2022},
13 doi = {10.1007/978-3-030-98305-5_23}
14}