Closed HelloWorldLTY closed 12 hours ago
Hi there,
Thank you for your question! In tutorial 5, the model checkpoint which is loaded is a cell generation model checkpoint that was finetuned using tutorial notebook 3 to do conditional cell generation on the tutorial data. Here are some additional details and steps for reproducing the checkpoint:
Tutorial notebook 3 (https://github.com/vandijklab/cell2sentence/blob/master/tutorials/c2s_tutorial_3_finetuning_on_new_datasets.ipynb) shows an example of finetuning a C2S model for cell type prediction. What was done for tutorial notebook 5 was we used tutorial notebook 3 to finetune for cell generation conditioned on cell type. This was done by:
After those steps, you can use the finetuned cell generation model in tutorial notebook 5. Hopefully this helps, let me know if you have any additional questions!
Thanks a lot. It is good to know that.
Hi, thanks for your interesting work. I tried to reproduce the tutorial 5, conditional generation task, with your provided model:
https://huggingface.co/vandijklab/C2S-Pythia-410m-diverse-single-and-multi-cell-tasks/tree/main
However, it seems that this model does not fit the model you used in the tutorial, like one checkpoint. Is it the correct model I should use?
I also met this error:
The error is:
FileNotFoundError Traceback (most recent call last) Cell In[30], line 1 ----> 1 with open(os.path.join(base_path, 'data_split_indices_dict.pkl'), 'rb') as f: 2 data_split_indices_dict = pickle.load(f) 3 data_split_indices_dict.keys()
File ~/.conda/envs/cell2sentence/lib/python3.8/site-packages/IPython/core/interactiveshell.py:284, in _modified_open(file, *args, *kwargs) 277 if file in {0, 1, 2}: 278 raise ValueError( 279 f"IPython won't let you open fd={file} by default " 280 "as it is likely to crash IPython. If you know what you are doing, " 281 "you can use builtins' open." 282 ) --> 284 return io_open(file, args, **kwargs)
FileNotFoundError: [Errno 2] No such file or directory: '/home/tl688/.cache/huggingface/hub/models--vandijklab--C2S-Pythia-410m-diverse-single-and-multi-cell-tasks/snapshots/data_split_indices_dict.pkl'
Thanks a lot.