Coder Social home page Coder Social logo

Comments (4)

EyalShemuel avatar EyalShemuel commented on June 20, 2024

import os
import subprocess
import sys

def run_command(command):
try:
subprocess.check_call(command, shell=True)
except subprocess.CalledProcessError as e:
print(f"Error during execution of: {command}")
sys.exit(1)

def install_packages():
packages = [
"open_interpreter",
"setuptools",
"matplotlib",
"opencv-python"
]
for package in packages:
run_command(f"pip install {package}")

def main():
# Step 1: Install Python
# Note: Assuming Python is already installed

# Step 2: Open Command Prompt as Administrator
if os.name != 'nt':
    print("This script is intended to be run on Windows.")
    sys.exit(1)

# Step 3: Navigate to the Users Directory
os.chdir("C:\\Users")

# Step 4: Install Required Python Packages
install_packages()

# Step 5: Install Visual C++ Redistributable
print("Please manually install Visual C++ Redistributable from: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170")

# Step 6: Instructions for Running Open Interpreter
print("Installation complete. You can run the interpreter using the command: interpreter")
print("To use the interpreter with Llama3 80B from Groq, use the following command:")
print('interpreter --vision --os --api_base "https://api.groq.com/openai/v1" --api_key "your_api_key_here" --model "llama3-70b-8192" --context_window 8192')

if name == "main":
main()

this will fix the problem

from open-interpreter.

ai-Ev1lC0rP avatar ai-Ev1lC0rP commented on June 20, 2024

I would say easier steps would be using Anaconda. Then you have a Venv you can blow away.

technically you can do the same thing in python using python -m venv venv. buuuut going from system to system and OS to OS. Anaconda translates suuuuper easy, and i like how well it containerizes that VENV.

you should be able to copy the text. save it as a .bat and then it would install. i'm going to test it this weekend and see if i can add it to the repo. it's an easy one-click.

@echo off

echo Step 1: Downloading Anaconda...
wget https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Windows-x86_64.exe

echo Step 2: Installing Anaconda...
Anaconda3-2024.02-1-Windows-x86_64.exe
echo Step 3: Creating interpreter environment with Python 3.11...
conda create -n interpreter python=3.11

echo Step 4: Activating interpreter environment...
conda activate interpreter

echo Step 5: Installing open-interpreter...
pip install open-interpreter

echo Step 6: Adding OpenAI API key...
read -p 'Enter your OpenAI API key: ' OPENAI_API_KEY
echo %OPENAI_API_KEY%>openai_api_key.txt

echo Step 7: Installation complete. You can run the interpreter using the command: interpreter
print("To use the interpreter with Llama3 80B from Groq, use the following command:")
print('interpreter --llm-supports-vision --os --api_base "https://api.groq.com/openai/v1" --api_key "your_api_key_here" --model "llama3-70b-8192" --context_window 8192')

ALTERNATIVELY

Look into Pinokio.
They have a helper script that let's you convert ... anything into a Pinokio Computer File. -- open-interpreter as well as the 01 SW but... there has to be a model they use outside of gpt-4o I've notice significant improvements with the new model, however... i swear to god if i have to tell that thing to not shorthand ssh ONE MORE TIME. haha.

I was going to look into that this weekend.

FWIW - - i think the command-R-Plus model on cohere outperforms gpt for this specific use-case. it understands computers... really really well. GPT-4o made the leap to where it's close, but i still think the databricks models are great... and they are opensource.

from open-interpreter.

Kreijstal avatar Kreijstal commented on June 20, 2024

can you download command-R-Plus locally?

from open-interpreter.

ai-Ev1lC0rP avatar ai-Ev1lC0rP commented on June 20, 2024

Yep.

-You can through Ollama- but MOST hardware wouldn't run it. I've got a 4090 with 24gig of VRAM and 128gig of DDR5 and it's… basically unusable. I'm going to hop over to codestral today to see what performance I get out of it's logic and reasoning.

from open-interpreter.

Related Issues (20)

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.