You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trainer.train(batch_size=32,
nbits=4, # How many bits will the trained model use when compressing indexesmaxsteps=500000, # Maximum steps hard stopuse_ib_negatives=True, # Use in-batch negative to calculate lossdim=128, # How many dimensions per embedding. 128 is the default and works well.learning_rate=5e-6, # Learning rate, small values ([3e-6,3e-5] work best if the base model is BERT-like, 5e-6 is often the sweet spot)doc_maxlen=256, # Maximum document length. Because of how ColBERT works, smaller chunks (128-256) work very well.use_relu=False, # Disable ReLU -- doesn't improve performancewarmup_steps="auto", # Defaults to 10%
)
After executing the cell code above, the following error is reported
I moved /Users/hao/Library/Caches/torch_extensions/py39_cpu/segmented_maxsim_cpp to other name(eg. segmented_maxsim_cpp_20240219) or removed directory ~/Library/Caches/torch_extensions, and then rerun trainer.train(), but the problem still remains.
Thank you for reporting this. Training is currently GPU/CUDA-only (this should be documented better) (cc @Anmol6 again), but this isn't quite the issue that I'd expect to pop up!
Do you have any issues loading the custom cpp code when running indexing?
Thank you for reporting this. Training is currently GPU/CUDA-only (this should be documented better) (cc @Anmol6 again), but this isn't quite the issue that I'd expect to pop up!
Do you have any issues loading the custom cpp code when running indexing?
Thanks for the reply. Now I have no issues loading the custom cpp code when running indexing
System Info
Apple M1 Pro 32 GB
version: 13.6 (22G120)
Reproduction
The code that reported the error.
examples/02-basic_training.ipynb
After executing the cell code above, the following error is reported
Solutions Tried But Not Working
Referenced solution: #102
I moved /Users/hao/Library/Caches/torch_extensions/py39_cpu/segmented_maxsim_cpp to other name(eg. segmented_maxsim_cpp_20240219) or removed directory ~/Library/Caches/torch_extensions, and then rerun trainer.train(), but the problem still remains.
python env
The text was updated successfully, but these errors were encountered: