Skip to content

Instantly share code, notes, and snippets.

View soltanoff's full-sized avatar
🗿
¯\_(ツ)_/¯

soltanoff

🗿
¯\_(ツ)_/¯
View GitHub Profile
@soltanoff
soltanoff / sgr_assistant.py
Created August 26, 2025 22:13 — forked from sb-static/sgr_assistant.py
SGR Demo - assistant based on small LLM (Qwen3-4B) using llama.cpp and Schema-Guided Reasoning (SGR)
"""
This Python code demonstrates Schema-Guided Reasoning (SGR) with llama.cpp and small model - Qwen3-4B Q8_0. It:
- implements a business agent capable of planning and reasoning
- implements tool calling using only SGR and simple dispatch
- uses with a simple (inexpensive) non-reasoning model for that
This demo is modified from https://abdullin.com/schema-guided-reasoning/demo to support local llm
Test model: Qwen3-4B-Instruct-2507-Q8_0 (https://huggingface.co/unsloth/Qwen3-4B-Instruct-2507-GGUF/resolve/main/Qwen3-4B-Instruct-2507-Q8_0.gguf)
@soltanoff
soltanoff / schema-guided-reasoning.py
Created August 26, 2025 21:17 — forked from abdullin/schema-guided-reasoning.py
Demo for a Schema-Guided Reasoning (Business Assistant)
"""
This Python code demonstrates Schema-Guided Reasoning (SGR) with OpenAI. It:
- implements a business agent capable of planning and reasoning
- implements tool calling using only SGR and simple dispatch
- uses with a simple (inexpensive) non-reasoning model for that
To give this agent something to work with, we ask it to help with running
a small business - selling courses to help to achieve AGI faster.
@soltanoff
soltanoff / dnsmasq OS X.md
Created April 13, 2022 09:43 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

/* VT100 terminal reset (<ESC>c) */
console.log('\033c');
/* numbers comparations */
> '2' == 2
true
> '2' === 2