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

Adding LlaVa #266

Merged
merged 3 commits into from
Sep 5, 2024
Merged

Adding LlaVa #266

merged 3 commits into from
Sep 5, 2024

Conversation

rabiulcste
Copy link
Contributor

No description provided.

@Delaunay Delaunay changed the base branch from master to staging September 5, 2024 15:29
@Delaunay Delaunay merged commit 12dd81a into mila-iqia:staging Sep 5, 2024
2 of 3 checks passed
@Delaunay
Copy link
Collaborator

Delaunay commented Sep 5, 2024

loss is None because label is not provided inside inputs

llava.D0 [stderr] Traceback (most recent call last):
llava.D0 [stderr]   File "/tmp/workspace/cuda/results/venv/torch/bin/voir", line 8, in <module>
llava.D0 [stderr]     sys.exit(main())
llava.D0 [stderr]   File "/tmp/workspace/cuda/results/venv/torch/lib/python3.10/site-packages/voir/cli.py", line 128, in main
llava.D0 [stderr]     ov(sys.argv[1:] if argv is None else argv)
llava.D0 [stderr]   File "/tmp/workspace/cuda/results/venv/torch/lib/python3.10/site-packages/voir/phase.py", line 331, in __call__
llava.D0 [stderr]     self._run(*args, **kwargs)
llava.D0 [stderr]   File "/tmp/workspace/cuda/results/venv/torch/lib/python3.10/site-packages/voir/overseer.py", line 242, in _run
llava.D0 [stderr]     set_value(func())
llava.D0 [stderr]   File "/tmp/workspace/cuda/results/venv/torch/lib/python3.10/site-packages/voir/scriptutils.py", line 37, in <lambda>
llava.D0 [stderr]     return lambda: exec(mainsection, glb, glb)
llava.D0 [stderr]   File "/home/mila/d/delaunap/milabench/benchmarks/llava/main.py", line 130, in <module>
llava.D0 [stderr]     main()
llava.D0 [stderr]   File "/home/mila/d/delaunap/milabench/benchmarks/llava/main.py", line 114, in main
llava.D0 [stderr]     accelerator.backward(loss)
llava.D0 [stderr]   File "/tmp/workspace/cuda/results/venv/torch/lib/python3.10/site-packages/accelerate/accelerator.py", line 2149, in backward
llava.D0 [stderr]     loss = loss / self.gradient_accumulation_steps
llava.D0 [stderr] TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

@rabiulcste
Copy link
Contributor Author

I will look into this! I know why it's happening.

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

Successfully merging this pull request may close these issues.

2 participants