Skip to main content

Let language models run code locally.

Project description

Emplode

Discord

Agent that performs action on your system by executing code.


Emplode Agent performs actions on your system by executing code locally, It can also serve as an agentic framework for your disposable sandbox projects. You can chat with Emplode in your terminal by running emplode after installing.

This provides a natural-language interface to your system's general-purpose capabilities:

  • Create, edit and arrange files.
  • Control a browser to perform research
  • Plot, clean, and analyze large datasets
  • ...etc.

Quick Start

pip install emplode

Terminal

After installation, simply run emplode:

emplode

Python

import emplode

emplode.chat("Organize all images in my downloads folder into subfolders by year, naming each folder after the year.") # Executes a single command
emplode.chat() # Starts an interactive chat

Commands

Change the Model

For gpt-3.5-turbo, use fast mode:

emplode --fast

In Python, you will need to set the model manually:

emplode.model = "gpt-3.5-turbo"

Running Emplode locally

You can run emplode in local mode from the command line to use Code Llama:

emplode --local

Or run any Hugging Face model locally by using its repo ID (e.g. "tiiuae/falcon-180B"):

emplode --model nvidia/Llama-3.1-Nemotron-70B-Instruct

Configuration with .env

Emplode allows you to set default behaviors using a .env file. This provides a flexible way to configure it without changing command-line arguments every time.

Here's a sample .env configuration:

EMPLODE_CLI_AUTO_RUN=False
EMPLODE_CLI_FAST_MODE=False
EMPLODE_CLI_LOCAL_RUN=False
EMPLODE_CLI_DEBUG=False

You can modify these values in the .env file to change the default behavior of the Emplode

How Does it Work?

Emplode equips a function-calling model with an exec() function, which accepts a language (like "Python" or "JavaScript") and code to run.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emplode-0.1.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emplode-0.1-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file emplode-0.1.tar.gz.

File metadata

  • Download URL: emplode-0.1.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for emplode-0.1.tar.gz
Algorithm Hash digest
SHA256 92306fb9e5ea2ee4abdb2fc1b490f94f853a575857c08b40a5b5d51ccaa31a01
MD5 5ab30c24376e7b7524116a608eb05639
BLAKE2b-256 f4c891566a66c05285b622ae4e8dcf1365ce8c2ec161515f4baf2eb3a8068d10

See more details on using hashes here.

File details

Details for the file emplode-0.1-py3-none-any.whl.

File metadata

  • Download URL: emplode-0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for emplode-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb0a35ee0a954c5582f7ab12e5dae8871c30a7c1ece6475727cd299df12cbf90
MD5 2b20217271a8638a9c1ffd8868adae28
BLAKE2b-256 bd681541913374d98dbde83fb9299f21ffe1e8c3611228e9a2ed3cb12319f8be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page