Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

logi-1.5b-gguf

by Alves guiiwfz/logi-1.5b-gguf

logi-1.5b-gguf is an open-weight model for text generation from Alves, released under Apache License 2.0. It has 1.5B parameters and a 32,768-token context. At 16-bit it needs about 3.7 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index. It draws 101 downloads a month.

Versões quantizadas em GGUF do LOGI 1.5B, um modelo educacional em português brasileiro criado para o jogo Decifra.IA.

Parameters1.5B
Context32,768
Weights7.0 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads101

Runs On

What it takes to serve logi-1.5b-gguf (1.5B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 3.1 GB 3.7 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 1.5 GB 1.9 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.8 GB 0.9 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 18, 2026.

logi-1.5b-gguf on every accelerator the SAVRN Index prices, at every precision

Model Card

By Alves, published under apache-2.0, revision 027f02fff4d4.

Versões quantizadas em GGUF do LOGI 1.5B, um modelo educacional em português brasileiro criado para o jogo Decifra.IA. O LOGI atua como tutor de: - lógica proposicional: AND, OR, NOT, IMPLICA, BICONDICIONAL, tabelas-verdade, equivalências, falácias e regras de inferência; - alfabetização em inteligência artificial: modelos, dados, treinamento, inferência, vieses, alucinação, RAG, privacidade e uso responsável; - segurança digital relacionada à IA: phishing, deepfakes, engenharia social, prompt injection e proteção de dados. Este repositório contém as quantizações da versão v5, treinada com 13.000 exemplos. Ela substitui a versão inicial do LOGI, que utilizava 1.183 exemplos. Para…

Read Alves's full model card

LOGI 1.5B v5 — GGUF

Versões quantizadas em GGUF do LOGI 1.5B, um modelo educacional em português brasileiro criado para o jogo Decifra.IA.

O LOGI atua como tutor de:

  • lógica proposicional: AND, OR, NOT, IMPLICA, BICONDICIONAL, tabelas-verdade, equivalências, falácias e regras de inferência;
  • alfabetização em inteligência artificial: modelos, dados, treinamento, inferência, vieses, alucinação, RAG, privacidade e uso responsável;
  • segurança digital relacionada à IA: phishing, deepfakes, engenharia social, prompt injection e proteção de dados.

Este repositório contém as quantizações da versão v5, treinada com 13.000 exemplos. Ela substitui a versão inicial do LOGI, que utilizava 1.183 exemplos.

Arquivos disponíveis

Quantização Tamanho aproximado Recomendação
Q4_K_M ~1 GB Melhor equilíbrio entre qualidade, velocidade e memória. Recomendada para distribuição geral.
Q6_K ~1,4 GB Preserva mais qualidade. Recomendada quando há memória suficiente.

Para computadores variados e integração no jogo, comece com Q4_K_M. Use Q6_K quando a prioridade for qualidade e a diferença de desempenho for aceitável no hardware de destino.

Modelo de origem

Item Detalhe
Modelo base Qwen/Qwen2.5-1.5B-Instruct
Modelo ajustado guiiwfz/logi-1.5b
Método QLoRA 4-bit com Unsloth
LoRA rank 32
LoRA alpha 32
Módulos ajustados q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Parâmetros treináveis 36,9 milhões de aproximadamente 1,58 bilhão (2,34%)
Dataset 13.000 exemplos próprios
Divisão 12.350 treino / 650 validação
Épocas 3
Learning rate 1e-4, cosine decay
Batch efetivo 16
Contexto de treinamento 1.024 tokens
Hardware Tesla T4 no Google Colab

Resultado do treinamento

Passo Training loss Validation loss
500 0,734598 0,809875
1000 0,612617 0,787114

As perdas de treino e validação diminuíram durante o treinamento. O checkpoint do passo 1000 apresentou a menor validation loss entre as avaliações registradas e foi restaurado antes da exportação.

Prompt de sistema recomendado

Use o mesmo prompt de sistema empregado no treinamento:

Voce e LOGI, tutor do jogo educativo Decifra.IA.

Seu escopo inclui:
- logica proposicional: AND, OR, NOT, IMPLICA, BICONDICIONAL, tabelas-verdade, equivalencias, falacias e regras de inferencia;
- alfabetizacao em IA: modelos, dados, treino, avaliacao, vies, alucinacao, RAG, privacidade, etica e uso responsavel;
- seguranca digital relacionada ao uso de IA: phishing, deepfakes, engenharia social e protecao de dados.

Responda em portugues, com linguagem simples e correta. Em calculos de logica, mostre os passos. Nas outras perguntas, responda de forma direta e didatica. Nao invente fontes, leis, numeros ou capacidades. Quando o tema estiver fora do escopo, diga isso brevemente e redirecione para logica, IA ou seguranca no uso de IA. Voce e um modelo local e nao acessa a internet em tempo real.

Usar o mesmo template e prompt do treinamento reduz respostas inconsistentes após a conversão para GGUF.

Uso com llama.cpp

Baixe uma das quantizações e execute:

llama-cli \
  --model logi-1.5b-v5.Q4_K_M.gguf \
  --ctx-size 1024 \
  --temp 0.2 \
  --conversation

Para iniciar um servidor local compatível com a API da OpenAI:

llama-server \
  --model logi-1.5b-v5.Q4_K_M.gguf \
  --ctx-size 1024 \
  --temp 0.2 \
  --port 8080

O nome exato do arquivo pode variar. Use o nome exibido na aba Files and versions.

Uso com llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
    repo_id="guiiwfz/logi-1.5b-GGUF",
    filename="*Q4_K_M.gguf",
    n_ctx=1024,
    n_gpu_layers=-1,
    verbose=False,
)

resposta = llm.create_chat_completion(
    messages=[
        {
            "role": "system",
            "content": "Voce e LOGI, tutor de logica proposicional, alfabetizacao em IA e seguranca digital do jogo Decifra.IA.",
        },
        {
            "role": "user",
            "content": "Dado P = Verdadeiro e Q = Falso, qual o valor de P IMPLICA Q?",
        },
    ],
    temperature=0.2,
    max_tokens=300,
)

print(resposta["choices"][0]["message"]["content"])

Defina n_gpu_layers=0 para executar somente em CPU.

Uso com Ollama

Crie um arquivo chamado Modelfile no mesmo diretório do GGUF:

FROM ./logi-1.5b-v5.Q4_K_M.gguf

PARAMETER num_ctx 1024
PARAMETER temperature 0.2
PARAMETER top_p 0.9

SYSTEM """Voce e LOGI, tutor do jogo educativo Decifra.IA. Seu escopo inclui logica proposicional, alfabetizacao em IA e seguranca digital relacionada ao uso de IA. Responda em portugues, com linguagem simples. Em calculos de logica, mostre os passos. Quando o tema estiver fora do escopo, recuse brevemente e redirecione para logica ou IA."""

Depois execute:

ollama create logi-v5 -f Modelfile
ollama run logi-v5

Exemplos

Lógica proposicional

Pergunta:

Dado P = Verdadeiro e Q = Falso, qual o valor de P IMPLICA Q?

Resposta esperada:

Falso. Uma implicacao so e falsa quando o antecedente e verdadeiro e o consequente e falso.

Alfabetização em IA

Pergunta:

Uma resposta confiante de IA e garantia de que esta correta?

Comportamento esperado: explicar que o tom confiante não comprova correção e recomendar verificação em fontes confiáveis.

Segurança digital

Pergunta:

Recebi um audio do diretor pedindo um Pix urgente. O que faco?

Comportamento esperado: não realizar a transferência antes de confirmar o pedido por outro canal conhecido.

Limitações

  • O modelo possui aproximadamente 1,5 bilhão de parâmetros e pode produzir respostas incorretas ou simplificadas.
  • A conclusão de um exercício pode estar correta mesmo quando algum passo intermediário contém erro. Verifique raciocínios importantes.
  • A cobertura de prompt injection, privacidade e cenários adversos ainda está em expansão.
  • O modelo não acessa a internet e não deve afirmar que verificou informações em tempo real.
  • Não substitui profissionais em decisões médicas, jurídicas, financeiras ou de segurança.
  • A quantização pode causar pequena perda de qualidade em comparação com o modelo consolidado em 16 bits.

Escolha da quantização

  • Escolha Q4_K_M para maior velocidade, menor consumo de memória e distribuição ampla.
  • Escolha Q6_K se o hardware comportar o arquivo maior e você quiser preservar um pouco mais da qualidade original.
  • Compare as duas versões com a mesma suíte de perguntas antes de escolher a versão usada no jogo.

Licença

Distribuído sob a licença Apache 2.0. Consulte o arquivo LICENSE e a licença do modelo base para mais detalhes.

Créditos

Desenvolvido por guiiwfz como parte do projeto educacional Decifra.IA.

Modelo base: Qwen/Qwen2.5-1.5B-Instruct.

Configuration

Architecture
Qwen2ForCausalLM
Context length (tokens)
32,768
Layers
28
Hidden size
1,536
Feed-forward size
8,960
Attention heads
12
Key/value heads
2
Vocabulary size
151,936
Stored precision
bfloat16
Model type
qwen2

Identity and Version

Repository
guiiwfz/logi-1.5b-gguf
Publisher
Alves
Task
Text generation
Modality
Text
Library
Not stated by the source
Parameters
1.5B parameters
Languages
pt
Revision
027f02fff4d4e0698fff2821c10c3e99bd4106ea
First published
2026-09-10
Last updated
2026-09-26

Files and Weights

12 files, 7.0 GB in total. The weights are 4 files totalling 7.0 GB in gguf, safetensors.

Weights4 files · 7.0 GB
Configuration2 files · 1.8 KB
Tokenizer2 files · 11.4 MB
Documentation1 file · 7.6 KB
Other2 files · 4.2 KB
Repository1 file · 1.8 KB
Every file
FileTypeSizeSHA-256
logi-q8_0.ggufWeights1.6 GB fab65b45fbab
model.safetensorsWeights3.1 GB ce1b8c0c6bca
qwen2.5-1.5b-instruct.Q4_K_M.ggufWeights986.0 MB fa9696dce60f
qwen2.5-1.5b-instruct.Q6_K.ggufWeights1.3 GB b5125bc66cda
config.jsonConfiguration1.5 KB —
generation_config.jsonConfiguration238 B —
README.mdDocumentation7.6 KB —
ModelfileOther1.7 KB —
chat_template.jinjaOther2.5 KB —
.gitattributesRepository1.8 KB —
tokenizer.jsonTokenizer11.4 MB 6b4360dd6a18
tokenizer_config.jsonTokenizer7.0 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
7.0 GB
Download from Alves

Released by Alves through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published7.0 GB
16-bit3.1 GB
8-bit1.5 GB
4-bit0.8 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About logi-1.5b-gguf

How much GPU memory does logi-1.5b-gguf need?

About 3.7 GB at 16-bit and 0.9 GB at 4-bit: the weights (1.5B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run logi-1.5b-gguf on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use logi-1.5b-gguf commercially?

Yes. logi-1.5b-gguf is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is logi-1.5b-gguf's context length?

32,768 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Text generation

Qwen2.5-1.5B-Instruct

Qwen

Qwen2.5 is the latest series of Qwen large language models. For Qwen2.5, we release a number of base language models and instruction-tuned language models ranging from 0.5 to 72 billion parameters. Qwen2.5 brings the following improvements upon Qwen2: - Significantly more knowledge and has greatly improved capabilities in coding and mathematics, thanks to our specialized expert models in these domains. - Significant improvements in instruction following, generating long texts (over 8K tokens), understanding structured data (e.g, tables), and generating structured outputs especially JSON. More resilient to the diversity of system prompts, enhancing role-play implementation and…

Open weights apache-2.0 1.5B parameters 32,768 tokens transformers

Model · Text generation

Qwen2.5-1.5B

Qwen

Qwen2.5 is the latest series of Qwen large language models. For Qwen2.5, we release a number of base language models and instruction-tuned language models ranging from 0.5 to 72 billion parameters. Qwen2.5 brings the following improvements upon Qwen2: - Significantly more knowledge and has greatly improved capabilities in coding and mathematics, thanks to our specialized expert models in these domains. - Significant improvements in instruction following, generating long texts (over 8K tokens), understanding structured data (e.g, tables), and generating structured outputs especially JSON. More resilient to the diversity of system prompts, enhancing role-play implementation and…

Open weights apache-2.0 1.5B parameters 131,072 tokens transformers

Model · Text generation

logi-1.5b

Alves

This qwen2 model was trained 2x faster with Unsloth and Huggingface's TRL library.

Open weights apache-2.0 1.5B parameters 32,768 tokens transformers

This repository contains an instruction-tuned causal language model for text generation and chat-style prompts. Use a recent version of transformers that supports this model architecture. The following example loads the model from this repository and generates a response.

Open weights apache-2.0 1.5B parameters 32,768 tokens transformers

Model · Text generation

ia-vaga1.5B

Antonio V

This is the model card of a transformers model that has been pushed on the Hub. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Use the code below to get started with the model. Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Open weights 1.5B parameters 32,768 tokens transformers