Nayaco / mahoshojos-large-model-support

mahoshojo's large model support
Apache License 2.0
1 stars 0 forks source link

Patch format detection failed. #1

Open LukeLIN-web opened 1 year ago

LukeLIN-web commented 1 year ago

I tried the installation. But when I run

 git am /root/share/mahoshojos-large-model-support/patches/pytorch_v1.12.0_large_model_support.patch 

It shows

Patch format detection failed.

I also tried

git apply /root/share/mahoshojos-large-model-support/patches/pytorch_v1.12.0_large_model_support.patch 

/root/share/mahoshojos-large-model-support/patches/pytorch_v1.12.0_large_model_support.patch:77: trailing whitespace.
} // namespace native 
/root/share/mahoshojos-large-model-support/patches/pytorch_v1.12.0_large_model_support.patch:145: trailing whitespace.
  pool_->update_last_used(); 
/root/share/mahoshojos-large-model-support/patches/pytorch_v1.12.0_large_model_support.patch:177: trailing whitespace.
EntityTensorImpl::EntityTensorImpl(const Ref<intrusive_ptr<External>>& ref) 
/root/share/mahoshojos-large-model-support/patches/pytorch_v1.12.0_large_model_support.patch:182: trailing whitespace.
  if (key_set().has(DispatchKey::Autograd)) 
/root/share/mahoshojos-large-model-support/patches/pytorch_v1.12.0_large_model_support.patch:188: trailing whitespace.
EntityTensorImpl::EntityTensorImpl(const intrusive_ptr<External>& e) 
warning: squelched 172 whitespace errors
warning: 177 lines add whitespace errors.
zhulu506 commented 7 months ago

I'm also having the same issue, is there a workaround please?