Skip to content

Commit

Permalink
update refs to v0.1.0 and llama3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LachsBagel committed Sep 12, 2024
1 parent 870e0ee commit 074ff8d
Show file tree
Hide file tree
Showing 35 changed files with 35 additions and 32 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/mor-agents-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,18 @@ jobs:
# Pull Ollama models
echo -e "\${YELLOW}Pulling Ollama models...${NC}"
pull_ollama_model llama3
pull_ollama_model llama3.1
pull_ollama_model nomic-embed-text
# Pull necessary Docker images
echo -e "\${YELLOW}Pulling Docker images...${NC}"
sudo docker pull lachsbagel/moragents_dockers-nginx:amd64-0.0.9
sudo docker pull lachsbagel/moragents_dockers-agents:amd64-0.0.9
sudo docker pull lachsbagel/moragents_dockers-nginx:amd64-0.1.0
sudo docker pull lachsbagel/moragents_dockers-agents:amd64-0.1.0
# Start Docker containers
echo -e "\${YELLOW}Starting Docker containers...${NC}"
sudo docker run -d --name agents -p 8080:5000 --restart always -v /var/lib/agents -v /app/src lachsbagel/moragents_dockers-agents:amd64-0.0.9
sudo docker run -d --name nginx -p 3333:80 lachsbagel/moragents_dockers-nginx:amd64-0.0.9
sudo docker run -d --name agents -p 8080:5000 --restart always -v /var/lib/agents -v /app/src lachsbagel/moragents_dockers-agents:amd64-0.1.0
sudo docker run -d --name nginx -p 3333:80 lachsbagel/moragents_dockers-nginx:amd64-0.1.0
echo -e "\${GREEN}Setup complete!${NC}"
EOF
Expand Down
6 changes: 3 additions & 3 deletions build_assets/macOS/Packaging_Instructions_macOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ Future usage only requires you to run MORagents from your searchbar.

## Signing
```sh
productsign --sign "Developer ID Installer: Liquid Tensor LLC (ZQN244GMTD)" MORagents.pkg MORagents009.pkg
productsign --sign "Developer ID Installer: Liquid Tensor LLC (ZQN244GMTD)" MORagents.pkg MORagents010.pkg
```

## Notarize
```sh
xcrun notarytool submit MORagents009.pkg --keychain-profile "NotaryProfile" --wait
xcrun notarytool submit MORagents010.pkg --keychain-profile "NotaryProfile" --wait
```

## Staple
```sh
xcrun stapler staple MORagents009.pkg
xcrun stapler staple MORagents010.pkg
```

---
Expand Down
2 changes: 1 addition & 1 deletion build_assets/macOS/preinstall_ollama.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ chmod +x ollama
sudo mv ollama /usr/local/bin/

nohup /usr/local/bin/ollama serve > /dev/null 2>&1 &
/usr/local/bin/ollama pull llama3
/usr/local/bin/ollama pull llama3.1
/usr/local/bin/ollama pull nomic-embed-text
4 changes: 2 additions & 2 deletions build_assets/macOS/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to MORagents v0.0.9 Installer</title>
<title>Welcome to MORagents v0.1.0 Installer</title>
<style>
body {
font-family: Arial, sans-serif;
Expand All @@ -29,7 +29,7 @@
</style>
</head>
<body>
<h1>Welcome to MORagents v0.0.9 Installer</h1>
<h1>Welcome to MORagents v0.1.0 Installer</h1>
<p>Thank you for choosing to install MORagents on your system. This installer will guide you through the process of setting up MORagents and its dependencies.</p>
<p>The installer will perform the following steps:</p>
<ul>
Expand Down
24 changes: 14 additions & 10 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@

class AgentDockerConfig:
MACOS_IMAGE_NAMES = [
"lachsbagel/moragents_dockers-nginx:apple-0.0.9",
"lachsbagel/moragents_dockers-agents:apple-0.0.9"
"lachsbagel/moragents_dockers-nginx:apple-0.1.0",
"lachsbagel/moragents_dockers-agents:apple-0.1.0"
]
WINDOWS_IMAGE_NAMES = [
"lachsbagel/moragents_dockers-nginx:amd64-0.0.9",
"lachsbagel/moragents_dockers-agents:amd64-0.0.9"
"lachsbagel/moragents_dockers-nginx:amd64-0.1.0",
"lachsbagel/moragents_dockers-agents:amd64-0.1.0"
]
LINUX_IMAGE_NAMES = [
"lachsbagel/moragents_dockers-nginx:amd64-0.0.9",
"lachsbagel/moragents_dockers-agents:amd64-0.0.9"
LINUX_IMAGE_NAMES = [ # TODO, may need linux specific tagged images
"lachsbagel/moragents_dockers-nginx:amd64-0.1.0",
"lachsbagel/moragents_dockers-agents:amd64-0.1.0"
]

@staticmethod
def get_current_image_names():
if os_name == "macOS":
Expand All @@ -43,5 +43,9 @@ class AgentDockerConfigDeprecate:
OLD_IMAGE_NAMES = [
"morpheus/price_fetcher_agent:latest",
"moragents_dockers-nginx:latest",
"moragents_dockers-agents:latest"
]
"moragents_dockers-agents:latest",
"lachsbagel/moragents_dockers-nginx:apple-0.0.9",
"lachsbagel/moragents_dockers-agents:apple-0.0.9",
"lachsbagel/moragents_dockers-nginx:amd64-0.0.9",
"lachsbagel/moragents_dockers-agents:amd64-0.0.9"
]
Empty file added submodules/__init__.py
Empty file.
Empty file.
File renamed without changes.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from helpers import request_claim, provide_receiver_address, confirm_transaction
from config import Config
from submodules.benchmarks.claim_agent_benchmarks.config import Config


def test_claim_process():
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from config import Config
from submodules.benchmarks.claim_agent_benchmarks.config import Config
from adapters.claim_adapter import ClaimAdapter

claim_adapter = ClaimAdapter(Config.URL, Config.HEADERS)
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import time
import argparse
from helpers import ask_data_agent, compare_usd_values, extract_agent_usd_value
from config import coins, price_prompts, mcap_prompts, price_error_tolerance, mcap_error_tolerance, loop_delay
from submodules.benchmarks.price_fetching.config import coins, price_prompts, mcap_prompts, price_error_tolerance, mcap_error_tolerance, loop_delay
from adapters.coingecko_adapter import CoingeckoAdapter
from adapters.defillama_adapter import DefillamaAdapter

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Running

## 0. Start [ DataAgent Docker Service](../moragents_dockers/agents/src/data_agent/README.md)
## 0. Start [ DataAgent Docker Service](../../moragents_dockers/agents/src/data_agent/README.md)
## 1. Modify `config.py` with new prompts, coins & error tolerances
## 2. `cd submodules/benchmarks`
## 3. Run `pip install -r requirements.txt`
Expand Down
File renamed without changes.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from helpers import ask_claim_agent, get_current_user_reward, extract_reward_value_from_response
from config import test_cases, reward_check_prompts
from submodules.benchmarks.reward_check_agent_benchmarks.config import test_cases, reward_check_prompts


def run_reward_check_tests():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import requests
import json
import re
from web3 import Web3
from config import Config
from submodules.benchmarks.reward_check_agent_benchmarks.config import Config

url = 'http://127.0.0.1:5000/'

Expand Down
2 changes: 1 addition & 1 deletion submodules/moragents_dockers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This project is a Flask-based AI chat application featuring intelligent response
* [Download Ollama](https://ollama.com/ )for your operating system
* Then after finishing installation pull these two models:

```ollama pull llama3```
```ollama pull llama3.1```

```ollama pull nomic-embed-text```

Expand Down
2 changes: 1 addition & 1 deletion submodules/moragents_dockers/agents/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def load_llm():
logger.error(f"Failed to load LLM: {str(e)}")
llm = None

llm_ollama = Ollama(model="llama3", base_url=Config.OLLAMA_URL)
llm_ollama = Ollama(model="llama3.1", base_url=Config.OLLAMA_URL)
embeddings = OllamaEmbeddings(model="nomic-embed-text", base_url=Config.OLLAMA_URL)

delegator = Delegator(Config.DELEGATOR_CONFIG, llm, llm_ollama, embeddings, app)
Expand Down
4 changes: 2 additions & 2 deletions wizard_windows.iss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Setup]
AppName=MORagents
AppVersion=0.0.9
AppVersion=0.1.0
DefaultDirName={commonpf}\MORagents
OutputDir=.\MORagentsWindowsInstaller
OutputBaseFilename=MORagentsSetup
Expand All @@ -27,7 +27,7 @@ Filename: "{tmp}\DockerDesktopInstaller.exe"; Parameters: "install"; StatusMsg:
Filename: "{tmp}\OllamaSetup.exe"; StatusMsg: "Installing Ollama..."; Flags: waituntilterminated
Filename: "{app}\LICENSE.md"; Description: "View License Agreement"; Flags: postinstall shellexec skipifsilent
Filename: "{app}\MORagents.exe"; Description: "Launch MORagents"; Flags: postinstall nowait skipifsilent unchecked
Filename: "cmd.exe"; Parameters: "/c ollama pull llama3 && ollama pull nomic-embed-text"; StatusMsg: "Pulling Ollama models..."; Flags: runhidden waituntilterminated
Filename: "cmd.exe"; Parameters: "/c ollama pull llama3.1 && ollama pull nomic-embed-text"; StatusMsg: "Pulling Ollama models..."; Flags: runhidden waituntilterminated

[Code]
var
Expand Down

0 comments on commit 074ff8d

Please sign in to comment.