Comments (6)
@OmkarThawakar Thanks, it's worked!
But i got another error like this "
attn_output = torch.nn.functional.scaled_dot_product_attention(
RuntimeError: The size of tensor a (10) must match the size of tensor b (19) at non-singleton dimension 1 "
May the shape of q, k,v not matched!
from mobillama.
I also encounter the same problem
from mobillama.
Hi @lqniunjunlper and @Sunwood-ai-labs ,
Thanks for the interest in our work.
In place of flash_attention you can use default PyTorch attention.
Just replace line "from flash_attn import flash_attn_func" with "torch.nn.functional.scaled_dot_product_attention" .
from mobillama.
same
from mobillama.
@OmkarThawakar Thanks, it's worked! But i got another error like this " attn_output = torch.nn.functional.scaled_dot_product_attention( RuntimeError: The size of tensor a (10) must match the size of tensor b (19) at non-singleton dimension 1 " May the shape of q, k,v not matched!
Do you solve the problem?
from mobillama.
+1, @OmkarThawakar did u solve it?
thanks
from mobillama.
Related Issues (14)
- Android App load local model HOT 3
- Extending context size HOT 1
- Question on MobiLlama-V
- Compare MobiLLama and LLM360's Amber?
- MobiLlama-V code and ckpts
- cannot reproduce siqa numbers
- The app doesn't install
- How to finetune?
- Export to onnx with huggingface optimum
- How this app is made?
- Online demo broken
- how to convert the trained model into gguf format?
- Android running problems HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobillama.