Closed xwx1999 closed 3 months ago
Besides, I have now conducted the nucleotide_transformer experiment code using the command you've provided (deleted the repeated trainer.max_epochs parameter), and I encountered the same problems as with the genomic_benchmark experiment. Here is the revised command I used:
> python -m train \
> experiment=hg38/nucleotide_transformer \
> callbacks.model_checkpoint_every_n_steps.every_n_train_steps=5000 \
> dataset.dataset_name="enhancers" \
> dataset.train_val_split_seed=1 \
> dataset.batch_size=128\
> dataset.rc_aug="true" \
> +dataset.conjoin_test="false" \
> loader.num_workers=2 \
> model=caduceus \
> model._name_=dna_embedding_caduceus \
> +model.config_path="/home/v-weixixiang/caduceus/outputs/pretrain/hg38/caduceus_ph_seqlen-1024_d_model-256_n_layer-4_lr-8e-3/config.json" \
> +model.conjoin_test=false \
> +decoder.conjoin_train=true \
> +decoder.conjoin_test=false \
> optimizer.lr="1e-3" \
> train.pretrained_model_path="/home/v-weixixiang/caduceus/outputs/pretrain/hg38/caduceus_ph_seqlen-1024_d_model-256_n_layer-4_lr-8e-3/checkpoints/last.ckpt" \
> trainer.max_epochs=20 \
> wandb=null
Please try changing the file you pass to the model.config_path=
parameter to be the model_config.json
that gets saved in the same directory, as opposed to config.json
. I think this should solve the issue. Let me know if you’re still having trouble.
I am glad to report that the issue has been resolved successfully by following your guidance, thank you very much!
Hello, I am writing to provide feedback on the code for the genomic_benchmark experiment using the Mamba and Caduceus model. I am pleased to report that the pre-training process went smoothly for me without any issues.
However, I encountered some problems when I attempted to run the genomic_benchmark experiment. The command I used below for reference:
Unfortunately, I faced some issues, the details of which are captured in the attached screenshot:![image](https://github.com/kuleshov-group/caduceus/assets/150652075/c99c71e2-d152-4b20-8871-2a1db0a418d3)
Could you please provide any assistance or guidance on how to resolve these problems? Your help would be greatly appreciated.