Comments (4)
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.
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.
can you download command-R-Plus locally?
from open-interpreter.
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)
- ChatGPT API HOT 2
- When running `interpreter.chat(...)` with python multiprocessing, can occasionally get `zmq.error.ZMQError: Address already in use` error
- Model names in llama download have colons
- The line break character in the name of the conversation file causes the OSError error
- How to use with vllm correctly?
- LiteLLM:WARNING: litellm_logging.py:2323 - Model is not mapped in model cost map. Defaulting to None model_cost_information for staLiteLLM:WARNING: litellm_logging.py:2323 - Model is not mapped in model cost map. Defaulting to None model_cost_information for standard_loggin g_payloadndard_loggin g_payload HOT 2
- Show option to skip future "Was Open Interpreter helpful?" messages HOT 1
- Problem using Ollama HOT 3
- --local should respect $OLLAMA_HOST rather than defaulting to localhost HOT 2
- Where are chat logs saved? HOT 1
- recommendation for making 'gpt-4o-mini' the default model over '4-turbo' HOT 6
- Can we get the dataset for the formatting for local AI to use the UI? HOT 1
- Can I connect open interpreter to a running llamafile? HOT 1
- The code which should be exec in system, don't run and suspend. HOT 1
- import statement missing in a module
- NameError: name 'interpreter' is not defined after installation HOT 16
- Can't get connection to Oogabooga w/openai extension to work. HOT 1
- Internal Server Error with display functions
- How do I continue if it get's stuck at a prompt? HOT 2
- Self-learning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-interpreter.