Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: ff sable Sebulba #1157

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft

Conversation

Louay-Ben-nessir
Copy link
Contributor

What?

A FF sable implementation using the Sebulba architecture.

Copy link
Contributor

@OmaymaMahjoub OmaymaMahjoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work Louay, this looks good from myside, worth trying some extra experiemnts before we merge it!

@@ -128,6 +131,7 @@ def step(self, actions: List) -> Tuple[NDArray, NDArray, NDArray, NDArray, Dict]
else:
reward = np.array(reward)

info["step_count"] = self.step_count
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to increment the step count here

loss_info, grads = grad_fn(params, traj_batch, advantages, targets, entropy_key)

# Compute the parallel mean (pmean) over the batch.
# This pmean could be a regular mean as the batch axis is on the same device.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is safe to keep the axis_name for any future, enhancements therefore if you can update the comment and just say it pmean over the learner devices

Copy link
Contributor

@OmaymaMahjoub OmaymaMahjoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work Louay, this looks good from myside, worth trying some extra experiemnts before we merge it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants