Instructions to use AGofficial/AGI-4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use AGofficial/AGI-4 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AGofficial/AGI-4", filename="agi/Qwen3-4B-Instruct-2507-Q3_K_S.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use AGofficial/AGI-4 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf AGofficial/AGI-4:Q3_K_S # Run inference directly in the terminal: llama-cli -hf AGofficial/AGI-4:Q3_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf AGofficial/AGI-4:Q3_K_S # Run inference directly in the terminal: llama-cli -hf AGofficial/AGI-4:Q3_K_S
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf AGofficial/AGI-4:Q3_K_S # Run inference directly in the terminal: ./llama-cli -hf AGofficial/AGI-4:Q3_K_S
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf AGofficial/AGI-4:Q3_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf AGofficial/AGI-4:Q3_K_S
Use Docker
docker model run hf.co/AGofficial/AGI-4:Q3_K_S
- LM Studio
- Jan
- Ollama
How to use AGofficial/AGI-4 with Ollama:
ollama run hf.co/AGofficial/AGI-4:Q3_K_S
- Unsloth Studio new
How to use AGofficial/AGI-4 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AGofficial/AGI-4 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AGofficial/AGI-4 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AGofficial/AGI-4 to start chatting
- Pi new
How to use AGofficial/AGI-4 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf AGofficial/AGI-4:Q3_K_S
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AGofficial/AGI-4:Q3_K_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use AGofficial/AGI-4 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf AGofficial/AGI-4:Q3_K_S
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default AGofficial/AGI-4:Q3_K_S
Run Hermes
hermes
- Docker Model Runner
How to use AGofficial/AGI-4 with Docker Model Runner:
docker model run hf.co/AGofficial/AGI-4:Q3_K_S
- Lemonade
How to use AGofficial/AGI-4 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AGofficial/AGI-4:Q3_K_S
Run and chat with the model
lemonade run user.AGI-4-Q3_K_S
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf AGofficial/AGI-4:Q3_K_S# Run inference directly in the terminal:
llama-cli -hf AGofficial/AGI-4:Q3_K_SUse pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf AGofficial/AGI-4:Q3_K_S# Run inference directly in the terminal:
./llama-cli -hf AGofficial/AGI-4:Q3_K_SBuild from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf AGofficial/AGI-4:Q3_K_S# Run inference directly in the terminal:
./build/bin/llama-cli -hf AGofficial/AGI-4:Q3_K_SUse Docker
docker model run hf.co/AGofficial/AGI-4:Q3_K_SAGI-4
Artificial General Intelligence
Overview
This repository contains an implementation of a modular-agentic architecture for Artificial General Intelligence (AGI). The architecture is designed to facilitate the development of autonomous agents capable of complex reasoning, learning, and interaction with their environment.
Example
from agi.sophos import Agent
from agi.sophos_tools import *
toolbox = all_tools()
agent = Agent(
name="Sophos Agent",
instructions="You are an AI Agent.",
model="agi/Qwen3-4B-Instruct-2507-Q3_K_S.gguf",
tools=toolbox,
)
prompt = "Roll a dice, also whats the weather in Tokyo?"
response = agent.run(prompt)
print(response)
Output:
"""
You rolled a 4 on a 6-sided die. The weather in Tokyo is sunny with a temperature of 12°C during fall.
"""
Research Paper
This paper delineates a comprehensive architectural framework for the progressive realization of Artificial General Intelligence (AGI), predicated upon a modular-agentic paradigm. We present a system design that integrates sophisticated tool-use capabilities, hierarchical memory management, dynamic code execution, and nascent world-modeling functionalities. The proposed architecture, exemplified through a lightweight Qwen3-4B-Instruct-2507-Q3_K_S.gguf model, demonstrates a robust foundation for emergent cognitive properties such as autonomy, recursive self-improvement, and goal-oriented behavior. Furthermore, we explore the theoretical underpinnings of consciousness as an emergent property within complex neural architectures and postulate pathways towards super-intelligence through advanced computational and embodied interaction modalities. The exposition maintains a rigorous academic tone, employing advanced terminology to articulate the intricate conceptual and technical facets of AGI development.
Implementation
This is a more advanced implementation of the original AGI repository. It includes more tools, better memory management, and a more advanced agent structure.
- Downloads last month
- 2
3-bit
Model tree for AGofficial/AGI-4
Base model
Qwen/Qwen3-4B-Instruct-2507
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf AGofficial/AGI-4:Q3_K_S# Run inference directly in the terminal: llama-cli -hf AGofficial/AGI-4:Q3_K_S