Search Unity

Official Barracuda 4.0

Discussion in 'Barracuda' started by Aurimasp, Aug 26, 2022.

  1. Aurimasp

    Aurimasp

    Unity Technologies

    Joined:
    Oct 20, 2015
    Posts:
    15
    Our team is working on the new Barracuda(Sentis) version, which will add new features, update old systems, and fix some issues, which were addressed in our community channels. We are not directly responding to the current feedback, as a lot of it will be addressed in the new version of Barracuda. We cannot say the exact date it will be released yet.
     
    Last edited: Oct 24, 2023
  2. tnikolopoulos

    tnikolopoulos

    Joined:
    Jun 12, 2017
    Posts:
    6
    any news on this ? months ? years ?
     
  3. Aurimasp

    Aurimasp

    Unity Technologies

    Joined:
    Oct 20, 2015
    Posts:
    15
    We are already testing it internally. If everything goes smoothly, I think sometime next year.
     
    julienkay likes this.
  4. tnikolopoulos

    tnikolopoulos

    Joined:
    Jun 12, 2017
    Posts:
    6
    Perfect!
     
  5. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,363
    Last edited: Jan 4, 2023
  6. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,363
  7. tnikolopoulos

    tnikolopoulos

    Joined:
    Jun 12, 2017
    Posts:
    6
    This wouldn't make the task any easier I think. All the hard work is in implementing the execution provider.
     
  8. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,363
    Fair enough. Well I have abandoned Barracuda and am just using Onnx Runtime since I only require it to on on Windows.
     
    Deleted User likes this.
  9. tnikolopoulos

    tnikolopoulos

    Joined:
    Jun 12, 2017
    Posts:
    6
    Ah nice! Does it work well with Unity ? which execution provider do you use? does it support GPU on Windows? I have yet to find a good solution for GPU inference on Windows ( Barracuda is the best so far but has some compat issues hopefully some of them will be fixed with 4.0)
     
  10. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,363
    Yes, Onnxruntime has a dot net version.
    CUDA is best but you need to install the runtime CUDA files of about 2GB!!! (Not ideal to package with your game) DirectML works (even with integrated graphics) but is 2x as slow as CUDA on some GPUs. CPU also works but it's just not worth bothering with.
    Barracuda will be good once it is finished which may be never! (And might not necessarily be as fast as DirectML or CUDA) - but will hopefully work on more hardware.
    So I would say if you need inference for a Windows game and Baraccuda doesn't work and it doesn't have to be super-top speed, DirectML Onnxruntime is an acceptable solution.
     
    Deleted User likes this.
  11. unity_120131

    unity_120131

    Joined:
    Feb 20, 2023
    Posts:
    1
    yeah fr
     
  12. Deleted User

    Deleted User

    Guest

    I'm excited to hear more about Barracuda 4.0. I expect the timing of this will be extremely important given the explosion of LLM interest recently. I hope it involves supporting a much larger set of ONNX.
     
  13. Nanomid

    Nanomid

    Joined:
    Nov 8, 2014
    Posts:
    15
    Perhaps the explosion of interest in LLM has forced Unity to try and monetize their ONNX work, and thus Unity AI. We may never see version 4.
     
    Deleted User likes this.
  14. adrianperezdionisdefreitas

    adrianperezdionisdefreitas

    Joined:
    Apr 14, 2023
    Posts:
    1
    Code (CSharp):
    1. 100a ¨100.000
     
  15. airoll

    airoll

    Joined:
    Jan 12, 2021
    Posts:
    37
    @Aurimasp are there any updates on a release date?
     
    DannyWoo and DrummerB like this.
  16. t19cs008

    t19cs008

    Joined:
    May 3, 2023
    Posts:
    1
    I also hope developers to support large set of ONNX. opset 9 is out of date version....
     
    Deleted User likes this.
  17. Bill_Cullen

    Bill_Cullen

    Unity Technologies

    Joined:
    Sep 2, 2021
    Posts:
    6
    Hey Guys, if you would like to talk to Unity directly about this please grab a [time w/ me here](https://bit.ly/unitybill), or email me at bill dot cullen at unity3d dot com. I am seeking feedback about Barracuda to inform our future plans.
     
    Deleted User likes this.
  18. Andy-Touch

    Andy-Touch

    A Moon Shaped Bool Unity Legend

    Joined:
    May 5, 2014
    Posts:
    1,483
    My company is using generative AI tooling to our own art data for our project; we are evaluating what options we have to integrate.

    Unity seems to be pushing Barracuda as the answer to embedded AI tooling (based on blogposts, etc); so is there an update on this? The original post was over a year ago and the release GitHub is a over a year since the last commit.
     
    Last edited: Jun 4, 2023
  19. OmarVector

    OmarVector

    Joined:
    Apr 18, 2018
    Posts:
    130
    @unity_UmihkUVVzIbHtg

    One of most annoying facts about Barracuda 3.0 is the garbage collection, it produce more than 240Kb each step , I was able to edit the package code and drop that 63kb per step, but still too much

    Also, its not single thread friendly, if you target webgl for AI inference, all the engine process waiting for the inference step to complete which is very very slow.

    Our game run roughly 30FPS on webgl while inference on, once its off, game jump to 60FPS .

    My hope for Barracuda 4.0 is reducing the Garbage collection and improve performance for data layers between unity engine and python backend.
     
  20. ThreeDeeJay

    ThreeDeeJay

    Joined:
    May 5, 2023
    Posts:
    1
  21. liutaurasvysniauskas_unity

    liutaurasvysniauskas_unity

    Unity Technologies

    Joined:
    Jun 14, 2022
    Posts:
    16
    ThreeDeeJay likes this.