Bonsai-27B-GGUF
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

Virat Singh’s open source proof of concept for an AI-powered hedge fund. LLM investor agents and quant models give their views, and a fund replays past days or paper trades real market days with fake money. It places no real trades.
AI Hedge Fund is an open-source project on GitHub in the Finance & accounting category, listed by Mindket. It is free. This is version 2, last updated on . Install it from GitHub as its README says. Get Mindket’s setup notes on your Mindket account, as a zip.
pipx install aihf aihf
AI Hedge Fund is a proof of concept by Virat Singh (virattt) that explores using AI to make trading decisions. You install it as the aihf command, and it opens an interactive terminal app. A fund there is a set of strategies. Each strategy blends the views of analysts, which are LLM investor agents such as Warren Buffett and Charlie Munger, or quant models such as post-earnings drift. The README says the project is for educational purposes only and that the system does not actually make any trades.
Developers, students and quant hobbyists who want to see how an LLM-plus-quant trading system is built, run it on a few tickers and read or extend its code. The roadmap invites new analysts, strategies and data sources. Skip it if you want a bot that trades for you. The README says it is not for real trading, and live brokers are only planned.
It runs in a terminal on Python 3.11 or newer. The maker’s README and docs give no steps for Claude Code, Codex, Cursor or other coding agents, and no skill, plugin or MCP server.
Get it saves a zip of Minda’s setup notes in your downloads folder, with the install and key steps from the maker’s README and docs. You install the aihf package with pipx, uv or pip, then run it.
| Need | Detail |
|---|---|
| Python | 3.11 or newer |
| An installer | pipx, uv or pip |
| Market data | A Financial Datasets API key, or, from the main branch only, a Base wallet that holds USDC for x402 pay-per-call (last 365 days of data, non-professional use) |
| A model | One API key from Anthropic, OpenAI, DeepSeek, Google, xAI, Kimi or TypeSafe (Jev) |
aihf to open the app.~/.hedge-fund/.env, and keys exported in your shell always win over that file.pipx install aihf aihf
The README also gives uv tool install aihf, and pip install aihf into an environment of your choice. For the x402 option the README on the main branch gives this line. The PyPI release, aihf 2.6.4, lists no x402 extra and its README does not mention x402, so until a release adds it, the x402 option is only on the repository’s main branch.
pip install 'aihf[x402]'
Start with aihf and pick a mode. In the paper trading list, highlight a fund to see what its next run will do, then press enter to run it through the next completed session. An approval step shows the exact decision before anything trades.
| Mode | What it does | Where results go |
|---|---|---|
| Paper trading | Runs your funds through real market days with fake money, one completed session at a time | A hash-chained ledger in ~/.hedge-fund/paper/<name>/ |
| Backtesting | Replays a fund over history and draws its equity curve against its benchmark | Result files in ~/.hedge-fund/research/ |
Fund definitions live in ~/.hedge-fund/mandates/ and carry no tickers. You pick the universe per backtest, or when you deploy a paper fund. You can build a new fund by choosing its strategies, capital, cadence and tickers.
You want to see how a value-and-drift fund behaves. The repository’s sample mandate has two strategies. Deep-value is a long-only pod led by the Graham agent, with Buffett and Munger beside it. Earnings-drift is a systematic pod that runs the post-earnings drift model, long and short. The fund starts with 100000 in capital, rebalances weekly, is measured against SPY and lets no single name pass 25% of equity.
You point it at tickers and a window. The engine README gives this backtest line, written for a checkout. With an x402 wallet this 2024 window fails: x402 serves only the last 365 days, and older data needs a Financial Datasets API key.
poetry run aihf backtest ~/.hedge-fund/mandates/example.yaml \
--universe AAPL,MSFT,NVDA --start 2024-01-02 --end 2024-06-28It prints the full result JSON, a record for every session, and saves a copy to ~/.hedge-fund/research/. The docs do not say whether an install puts example.yaml in ~/.hedge-fund/mandates/. The repository’s sample mandate is hedge_fund/fund/example.yaml. To paper trade the same fund, create it and tick it once per completed session.
poetry run aihf paper create alpha --mandate ~/.hedge-fund/mandates/example.yaml --universe AAPL,MSFT poetry run aihf paper tick alpha
A tick that finds a new completed session adds one record to the fund’s ledger.
If you are new. In this app a mandate is a file that names a fund’s strategies, risk limits, capital and how often it trades. The money is pretend. Paper trading runs a fund on real market days with fake money, and a backtest replays it over past days. Start with aihf and the two modes, and read the disclaimer first. Nothing here places a real order.
For experts. Every session is one verb, advance, called once per completed session in both backtest and paper mode. A decision made at session T’s close is executed at T+1’s close. The engine README says stepping a paper fund through the same sessions produces byte-identical records.
Language models never touch the trade. Agents form views and write theses, deterministic code sizes and places orders, and risk limits are hard gates. The engine README makes point-in-time data a principle: on a simulated date only data filed by then is visible, filtered on filing date and not report period. The roadmap still marks point-in-time data correctness as in progress.
The ledger is append-only and hash-chained. Replay verifies the chain and refuses an altered record, and the paper broker’s book is reconciled against the ledger before anything trades. A mismatch raises BookMismatch rather than being repaired, and any failure inside advance halts the fund.
To add an analyst, implement AlphaModel.predict(ticker, date, data_client) and return a Signal with a value from -1 to +1. A new strategy needs no code: a YAML file in strategies/ bundles existing models with a blend policy.
Market data comes from Financial Datasets and model calls go to the provider you choose. The README gives no cost for a run.
This kit holds setup notes only. Mindket wrote them. The AI Hedge Fund app installs from its maker's repository and from PyPI: https://github.com/virattt/ai-hedge-fund
These notes are not made or endorsed by Virat Singh (virattt). The README begins: "This is a proof of concept for an AI-powered hedge fund." It says the project is for educational purposes only, is not intended for real trading or investment, and that the system does not actually make any trades. The pages are on the repository's main branch, read on 3 November 2026.
License: MIT. The LICENSE file (https://github.com/virattt/ai-hedge-fund/blob/main/LICENSE) reads "MIT License" and "Copyright (c) 2024 Virat Singh".
The README's Disclaimer section (https://github.com/virattt/ai-hedge-fund/blob/main/README.md) says the project is for educational and research purposes only, and lists:
VISION.md (https://github.com/virattt/ai-hedge-fund/blob/main/VISION.md) adds that the investor agents are stylized approximations of famous investors' public philosophies, not the actual individuals and not endorsements.
aihf Python package from PyPI (https://pypi.org/project/aihf/), which gives you one command, aihf. Its metadata asks for Python 3.11 or newer, below 4.0. Source: https://pypi.org/pypi/aihf/json and https://github.com/virattt/ai-hedge-fund/blob/main/pyproject.toml~/.hedge-fund/: your keys (.env), fund definitions (mandates/), backtest results (research/), paper funds (paper/<name>/) and a cache of API responses (cache/). Source: https://github.com/virattt/ai-hedge-fund/blob/main/README.md and https://github.com/virattt/ai-hedge-fund/blob/main/hedge_fund/README.mdpipx install aihf
Then run it from anywhere:
aihf
Source: https://github.com/virattt/ai-hedge-fund/blob/main/README.md ("How to Install")
The README and docs give no steps for Claude Code, Codex, Cursor or any other coding agent, and no skill, plugin or MCP server. It is a terminal app, so the notes follow the ways the maker documents to install and run it.
The README gives no update or uninstall steps. Use your install tool's own commands. The app's files are under ~/.hedge-fund/: that folder holds your saved keys and each paper fund's ledger, so keep what you need before you delete it.
README.md 4 KB setup/api-keys-and-models.md 3 KB setup/from-source.md 2 KB setup/install.md 1022 B setup/paper-trading-and-backtests.md 4 KB
Updated by Mindket to the current version of this kit.
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…
LibertAIDAI · Kit
Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…
facebook · Kit
Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…
NeoQuasar · Kit
Forecasts financial candlestick series with a 4.1M-parameter foundation model trained on data from over 45 exchanges. For quant researchers and developers who…
An n8n workflow that sends a Hebrew WhatsApp reminder for an unpaid invoice 7, 14 and 30 days after its due date. It reads the open invoices from a Google Shee…
An n8n workflow that files invoices. It watches a Google Drive folder, has LlamaParse read each new file and an OpenAI model pick out the line items. Airtable…