Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ You can also track your training progress in real time:

On-chain identity is managed via an Alchemy modal sign-in screen. You need to supply an email address or login via a supported method (e.g. Google). This creates an EOA public/private key (which are stored by Alchemy). You will also receive local session keys in the `userApiKey`. Note that these aren't your EOA public/private keys.

During the initial set-up process, you will also create a `swarm.pem` file which maintains the identity of your peer. This is then registered on chain using the EOA wallet hosted in Alchemy, triggered using your local api keys. This links the `swarm.pem` to the `email address` (and corresponding EOA in Alchemy).
During the initial set-up process, you will also create a `swarm.pem` file which maintains the identity of your peer. This is then registered onchain using the EOA wallet hosted in Alchemy, triggered using your local api keys. This links the `swarm.pem` to the `email address` (and corresponding EOA in Alchemy).

**If you want to link multiple nodes to a single EOA**, simply sign up each node using the same email address. You will get a new peer ID for each node, however they will all be linked to the same EOA that your email is linked to.

Expand Down
2 changes: 1 addition & 1 deletion containerfiles/swarm-node/swarm.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ${BASE_IMAGE}
LABEL maintainer="Christopher Nies <[email protected]>"

ENV DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC
# Common libraries used by Python. These pre-requisited are recommended for the general Python
# Common libraries used by Python. These prerequisites are recommended for the general Python
RUN apt update -y && \
apt install -y \
sudo \
Expand Down
2 changes: 1 addition & 1 deletion modal-login/app/lib/HttpRequestError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { z } from "zod";
* HttpRequestErrorType from viem includes a details property. Its format is
* not guaranteed but in practice it contains a stringified JSON with
* a `revertData` hex string that is useful for debugging. The runtime schemas
* below parse a string into a JSON into a object matching the observed shape
* below parse a string into a JSON object matching the observed shape
* of the details object.
*
* Call `safeParse` on the schemas to check at runtime if the `revertData` is
Expand Down
2 changes: 1 addition & 1 deletion modal-login/app/lib/sendUserOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export async function sendUserOperation<Res extends BaseOperationResult>({
continue;
}
} catch (err) {
// Casting is not ideal but is canonical way of handling errors as per the
// Casting is not ideal but is a canonical way of handling errors as per the
// viem docs.
//
// See: https://viem.sh/docs/error-handling#error-handling
Expand Down
2 changes: 1 addition & 1 deletion modal-login/app/lib/userOperationHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export async function userOperationHandler({
},
} = parsedDetailsResult;

// Attempt to decode the the error result on a best-effort basis
// Attempt to decode the error result on a best-effort basis
try {
const decodedError = decodeErrorResult({
data: revertData,
Expand Down
2 changes: 1 addition & 1 deletion rgym_exp/src/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def evaluate(
get_logger().debug(f'recieved question: {result["question"]}')
else:
get_logger().debug(
f"Failed to recieve question: {response.status_code}"
f"Failed to receive question: {response.status_code}"
)
return

Expand Down
6 changes: 3 additions & 3 deletions rgym_exp/src/utils/reward_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def accuracy_reward(completions, ground_truth, metadata, weight=1.0):
def get_completions(
game_state: GameState, stage: int
) -> Dict[Any, Dict[Any, List[Any]]]:
# Get completions per agent and batch item from corresponding set of actions
# Get completions per agent and batch item from the corresponding set of actions
actions = game_state.get_stage_actions(stage)
completions = {} # Key per agent
for agent in actions:
Expand All @@ -56,7 +56,7 @@ def get_completions(


def get_answers(game_state: GameState, stage: int) -> Dict[Any, Dict[Any, List[Any]]]:
# Get answers per agent and batch item from corresponding set of world-states
# Get answers per agent and batch item from the corresponding set of world-states
world_states = game_state.get_stage_state(stage)
answers = {} # Key per agent
for agent in world_states:
Expand All @@ -73,7 +73,7 @@ def get_answers(game_state: GameState, stage: int) -> Dict[Any, Dict[Any, List[A


def get_metadata(game_state: GameState, stage: int) -> Dict[Any, Dict[Any, List[Any]]]:
# Get metadata per agent and batch item from corresponding set of world-states
# Get metadata per agent and batch item from the corresponding set of world-states
world_states = game_state.get_stage_state(stage)
metadata = {} # Key per agent
for agent in world_states:
Expand Down