Comments (11)
Is anyone working on groups for convolution? E.g. @Stealeristaken ?
I am closing #637 as it's inactive but it might be useful as a starting point.
from mlx.
I don't think anyone is actively working on it, would be great to have you work on it @Rifur13 !
from mlx.
I'm eager to get this working as well. I can pick this up if no one is working on it.
feel free to take. gl!
from mlx.
Should the assert be removed and create a separate issue to improve Convolution speed on GPU when dilation is not 1? Creates more visibility to the core issue and opens the possibility of a contributor able to help out
from mlx.
agree with @dc-dc-dc, this would be really helpful for implementations that require dilation
from mlx.
Is anyone working on groups for convolution? E.g. @Stealeristaken ?
I am closing #637 as it's inactive but it might be useful as a starting point.
Been a bit busy these days. I tried adding groups to convs, but it didn't work very well. So, I closed that pull request. I'll try again in the next few days.
from mlx.
I'm eager to get this working as well. I can pick this up if no one is working on it.
from mlx.
@jagrit06 in conv2d op call, there is an assert to check if dilations is set to 1, but from a quick look through the implementation it seems to support dilations. I removed this check and messed with it a little comparing to pytorch and am seeing the same results with different values for dilations. Is there a specific case where dilations isn't supported?
from mlx.
Well at the moment the convolutions with dilations revert to a fairly naive and slow kernel on the GPU (though I think we do fine on the CPU)
That restriction was added to basically side step that performance hit
from mlx.
FWIW this PR now also depends on a groups
param present.
from mlx.
Added dilation in #766
from mlx.
Related Issues (20)
- [Feature] Multi-Machine Support for Distributed Inference HOT 4
- [BUG] mlx_lm issue with Phi-3 fine tuned model: adding and repeating weird tokens
- [FEATURE] in keras LayerNorm by default is apply to last dimension only HOT 9
- [BUG] in-place updating of array slice unexpectedly fails due to broadcasting problem HOT 2
- [BUG] Matmul gives wrong output for large sizes HOT 4
- [BUG] broadcast of scalar array in last dimension fails after #1035
- [BUG] Unable to install mlx on MacbookPro M3Pro with MacOS 14.4.1 HOT 1
- [FEATURE] how to return mlx intermediate layer output similarly to Keras HOT 2
- [BUG] cannot replicate a keras model into mlx when I reuse keras pretrained weights
- [BUG] EOS terminator for mlx_lm generate function HOT 1
- [BUG] libc++abi crash when using recurrent layer and transformer HOT 2
- [Feature] arctan2 HOT 3
- [BUG] arithmetic operations with numpy arrays are not commutative HOT 3
- [Feature]Β KANs HOT 1
- No module named 'mlx.core'; 'mlx' is not a package HOT 2
- 0.12.2 release was not completed HOT 8
- [FEATURE REQUEST] mx.grad doesn't alias argnums and argnames HOT 5
- [BUG] `np.ndarray` of bfloat16 using ml_dtypes is being interpreted as complex64
- [BUG] mlx crashes with msg - uncaught exception of type std::invalid_argument: [Scatter::eval_gpu] Does not support int64 HOT 4
- Is dlpack supported? HOT 9
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 mlx.