Run this model with HF Jobs

Run stevenvo780/autologic-slm-onnx on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/stevenvo780/autologic-slm-onnx. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/stevenvo780/autologic-slm-onnx on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/stevenvo780/autologic-slm-onnx. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/stevenvo780/autologic-slm-onnx. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Autologic SLM - ONNX fp32

Fine-tuned Qwen2.5-0.5B model that translates natural language text into structured logic AST (JSON).

Model Details

  • Base model: Qwen/Qwen2.5-0.5B
  • Training: LoRA (r=16, alpha=32) on q/v/k/o_proj, bf16, 15 epochs
  • Dataset: 395 verified samples, 10 logic patterns (modus ponens, syllogisms, etc.)
  • Format: ONNX fp32 with KV cache (for Transformers.js)
  • Size: ~2.4 GB
  • RAM usage: ~2.2 GB at inference

Output Format

The model outputs JSON conforming to Autologic AST:

{
  "axioms": [
    {"name": "a1", "formulaJSON": {"type": "Connective", "operator": "IMPLIES",
      "left": {"type": "Atom", "id": "Llueve", "text": "llueve"},
      "right": {"type": "Atom", "id": "SueloMojado", "text": "suelo mojado"}}}
  ],
  "conclusions": [
    {"formulaJSON": {"type": "Atom", "id": "SueloMojado", "text": "suelo mojado"}}
  ]
}

Critical Notes

  • Must use fp32: int8/uint8 quantization destroys instruction following on 0.5B models
  • Must use exact training prompt format: ChatML with specific system prompt
  • Exported with task=text-generation-with-past (includes KV cache)
  • Tokenizer merges are strings (Transformers.js compatible)

Part of

Autologic - Automatic formalization of natural language to formal logic.

Downloads last month
7
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support