Skip to content

Conversation

@ayyucedemirbas
Copy link

This pull request addresses an AttributeError encountered in the benchmark_expression_conversion method of the utils.py module in the cell2sentence repository. The error occurred when attempting to access the .item() method on values that are of type float, which does not have this method.

Modified the lines in the benchmark_expression_conversion method to handle float values correctly. Removed the .item() method call on the r_squared_score, pearson_r_score, and spearman_r_score metrics since they return floats directly.

This pull request addresses an AttributeError encountered in the benchmark_expression_conversion method of the utils.py module in the cell2sentence repository. The error occurred when attempting to access the .item() method on values that are of type float, which does not have this method.

Modified the lines in the benchmark_expression_conversion method to handle float values correctly.
Removed the .item() method call on the r_squared_score, pearson_r_score, and spearman_r_score metrics since they return floats directly.
Adding LoRA Fine-Tuning
@ayyucedemirbas
Copy link
Author

Added LoRA fine-tuning using peft. However, I'm not able to try it, because, since I'm working on Google Colab, CUDA memory is not enough to fine-tune the model. Could you please try it for me? @SyedA5688 Thank you so much!

@dvdijk
Copy link

dvdijk commented Oct 14, 2024 via email

@beshatu
Copy link

beshatu commented Jan 13, 2025

AttributeError: 'float' object has no attribute 'item'

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.

3 participants