Code Monkey home page Code Monkey logo

autogenstudio-easy-installer-lmstudio-patch's Introduction

AutoGen Studio Easy Installer with LM-Studio Patch

This repository contains scripts to install and run AutoGen Studio within a specified directory using Miniconda, with a specific patch to ensure compatibility with LM-Studio. The scripts ensure a clean installation without modifying the global system environment.

What is AutoGen Studio?

AutoGen Studio is an innovative platform developed by Microsoft for creating and managing multi-agent workflows. It provides a user-friendly interface for designing, prototyping, and integrating various agents, enabling users to build complex, automated systems with ease. AutoGen Studio supports both no-code and low-code approaches, making it accessible for developers of all skill levels. It includes sections for building agent workflows, testing interactions, and storing development sessions for future reference.

Why Use This Installer?

  • Isolated Environment: The installer creates a dedicated Conda environment, ensuring that AutoGen Studio and its dependencies do not interfere with other software on your system.
  • Reproducibility: Using Conda ensures that the environment can be easily replicated, which is crucial for collaborative projects and production deployments.
  • Easy Setup: The provided scripts automate the installation and setup process, saving time and reducing the potential for configuration errors.
  • Customization: The installer allows for easy customization, such as modifying default settings.

Files

  • install_autogen.sh: Script to install Miniconda, create the autogenstudio Conda environment, install necessary packages, and patch the datamodel.py file.
  • run_autogenstudio.sh: Script to activate the autogenstudio environment and run the AutoGen Studio UI.

Prerequisites

  • Linux-based system
  • Bash shell

Installation

  1. Clone the repository:

    git clone https://github.com/strnad/autogenstudio-easy-installer-lmstudio-patch.git
    cd autogenstudio-easy-installer-lmstudio-patch
  2. Make the scripts executable:

    chmod +x install_autogen.sh run_autogenstudio.sh
  3. Run the installation script:

    ./install_autogen.sh

    This script will:

    • Download and install Miniconda in the current directory.
    • Create the autogenstudio Conda environment with Python 3.11.
    • Install the necessary packages.
    • Patch the datamodel.py file to set max_tokens: Optional[int] = 4096.

Running AutoGen Studio

  1. Run the AutoGen Studio UI:

    ./run_autogenstudio.sh

    This script will:

    • Activate the autogenstudio environment.
    • Run the AutoGen Studio UI on port 8081.
    • Deactivate the Conda environment after the UI is closed.

Patch for LM-Studio Compatibility

During the installation process, the script applies a patch to the datamodel.py file. This patch addresses a bug that was causing the model to generate only 2 tokens, preventing effective use of AutoGen Studio with LM-Studio. Specifically, it sets the default value of max_tokens to 4096:

max_tokens: Optional[int] = 4096

autogenstudio-easy-installer-lmstudio-patch's People

Contributors

strnad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.