Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Support TorchArrow column with binary type (SQL VARBINARY, pyarrow.binary) #178

Open
scotts opened this issue Feb 4, 2022 · 0 comments
Open

Comments

@scotts
Copy link
Contributor

scotts commented Feb 4, 2022

cc: @wenleix

YLGH pushed a commit to YLGH/torcharrow that referenced this issue May 7, 2022
Summary:
Pull Request resolved: pytorch/torchrec#178

Instead of naively showing input as just the pooling factor and output as just the embedding dimension
this diff changes planner stats to use the actual size of input & output in terms of megabytes per iteration

**input**: global_batch_size * pooling factor * sizeof(dtype of input)

**output**: global_batch_size * (output size (1 in pooled)) * sizeof(dytpe of emb) * emb_dim

This provides a sense of scale for data coming in and out, and additionally makes plans with multiple sharding types directly comparable.

Also fixes a bug with TWCW, we incorrectly specified the ranks as entire world size when it should be limited to the local world of the  host that the parameter is sharded on.

Reviewed By: dstaay-fb

Differential Revision: D35153224

fbshipit-source-id: c1e7d717ec0c1d074f7e059d843fba2d287eee56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant