Skip to content

Instantly share code, notes, and snippets.

Running Agent-C in a Docker sandbox

These instructions are for a Windows host, and assume that you're using Ollama. If you aren't using Ollama then there's no need to do any of the proxy stuff.

Start Ollama in the host

Ensure ollama is running in the host.

$env:OLLAMA_CONTEXT_LENGTH = 65536
ollama serve
@badlydrawnrod
badlydrawnrod / hello.py
Last active December 25, 2015 16:09 — forked from simplyvikram/tornado_long_blocking.py
Fork of simplyvikram's non-blocking Tornado gist, modified to show how to use the ThreadPoolExecutor.
#!/usr/bin/env python
import tornado.web
import tornado.gen
import time
from functools import partial
import os
from concurrent.futures import ThreadPoolExecutor