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

I can't find this file #17

Open
jnider opened this issue Dec 11, 2020 · 1 comment
Open

I can't find this file #17

jnider opened this issue Dec 11, 2020 · 1 comment

Comments

@jnider
Copy link

jnider commented Dec 11, 2020

TEST_SOURCES = $(APP_SOURCES) tests/main.c

I don't understand how your code works. I can't find where the main() function is on the host. Where does it all start from?

@johnramsden
Copy link
Collaborator

That was actually just a stub, the way he is actually we're going to add tests. It could also potentially be removed.

We run the code as described in upmem/README.md

kaggle_run() {
dlrm="${cwd}/../dlrm"
python "${dlrm}/dlrm_dpu_pytorch.py" \
--arch-sparse-feature-size=16 \
--arch-mlp-bot="13-512-256-64-16" \
--arch-mlp-top="512-256-1" \
--data-generation=dataset \
--data-set=kaggle \
--processed-data-file="${dlrm}/raw_data/kaggleAdDisplayChallenge_processed.npz" \
--load-model="${dlrm}/trainedModels/kaggle-model-graham-final.pt" \
--mini-batch-size=500 \
--nepochs=1 \
--inference-only
}

random_run() {
python "${cwd}/../dlrm/dlrm_dpu_pytorch.py" \
--arch-embedding-size=65000-65000-65000-65000-65000-65000-65000-65000-65000-65000-65000-65000 \
--arch-sparse-feature-size=64 \
--arch-mlp-bot=1440-720-64 \
--arch-mlp-top=40-20-10-1 \
--data-generation=random \
--mini-batch-size=128 \
--num-batches=10 \
--num-indices-per-lookup=32 \
--num-indices-per-lookup-fixed=True \
--inference-only
}

toy_run() {
python3 "${cwd}/c_test.py"
}

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

No branches or pull requests

2 participants