I suck at tuning, so I made this..

Discussion in 'Programming' started by daniel-w, Jul 19, 2024.

  1. daniel-w

    daniel-w
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 28, 2017
    Messages:
    282
    upload_2024-7-19_2-35-15.png
    (Yes, I did actually make it because I suck at tuning)
    --- Post updated ---
    upload_2024-7-19_2-36-39.png
    Here's another little image. I need to work on general improvements and then maybe even a UI, not sure.

     
    #1 daniel-w, Jul 19, 2024
    Last edited: Jul 19, 2024
    • Like Like x 7
    • Staff Pick Staff Pick x 1
  2. LiterallyAPastry

    LiterallyAPastry
    Expand Collapse

    Joined:
    Jun 15, 2021
    Messages:
    42
    That's insane lmao
     
  3. MarcDoesRacing

    MarcDoesRacing
    Expand Collapse

    Joined:
    Dec 21, 2022
    Messages:
    679
    You gotta release this in some way or do a tutorial, this is crazy!
     
  4. ghost_cauli

    ghost_cauli
    Expand Collapse

    Joined:
    Jul 14, 2022
    Messages:
    1,210
    Yoooo, finally someone found a legit use for "AI" in Beam. Does it run on a local model, or is it just connected to OpenAI API?

    Also, did you give it any guidelines regarding how it should operate with each car/platform, or is it just reading min and max values from the tuning tab and making a guess?
     
  5. daniel-w

    daniel-w
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 28, 2017
    Messages:
    282
    It's using OpenAI (gpt-4o-mini), I doubt a local one would be good at it? I don't have the necessary stuff to train a model or anything, so I'll just keep OpenAI for now.

    And regarding the guidelines, I basically tell it how to respond with the right format and other stuff, but it needs improving a lot. For the prompt, it takes JSON containing everything necessary (defaults, min, max, and value).
    --- Post updated ---
    I plan on cleaning it up and improving it, then I'll release it. The only real issue right now is that it's using OpenAI's model so you have to pay for it :/
     
    • Like Like x 1
  6. ghost_cauli

    ghost_cauli
    Expand Collapse

    Joined:
    Jul 14, 2022
    Messages:
    1,210
    In theory, it'd be great as you wouldn't have to call OpenAI. In practice, running it would require a pretty beefy computer, as even the smaller models require 4GB+ RAM. But considering you don't seem to generate this much output at once, you may still want to check GPT4ALL for some faster models.
     
  7. daniel-w

    daniel-w
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 28, 2017
    Messages:
    282
    I plan on cleaning it up and improving it, then I'll release it. The only real issue right now is that it's using t
    I'll definitely look at using a local model for it then, I just need to find one that's trained on cars and doesn't require much. I don't want to get a model that has a bunch of knowledge on other stuff either because that's just a waste of resources
     
  8. golgo1387

    golgo1387
    Expand Collapse

    Joined:
    Sep 9, 2023
    Messages:
    130
    To quote Darth Vader from ESB: "Impressive."

    The obvious next step I think (or next step 100 steps down the line lol), is to read a track in all it's dimensions, then automatically tune the car in gear ratios, suspension etc. given what your car's limitations are. The gear ratios for instance would max out hp/torque curve for the greatest top speed on the longest straight of the track, thereby balancing acceleration versus top speed.

    Do this and you could find yourself working for a Formula 1 team. ;)
     
  9. ghost_cauli

    ghost_cauli
    Expand Collapse

    Joined:
    Jul 14, 2022
    Messages:
    1,210
    Hey @vulcan-dev, I recently stumbled upon this: ollama. Do you think it could be used as the local alternative? It runs pretty damn fast on my laptop.
     
    • Like Like x 1
  10. daniel-w

    daniel-w
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 28, 2017
    Messages:
    282
    Possibly.. I don't have time to set it up right now, but does it do a good job with vehicles and tuning? If so, then I don't see a reason not to use it.
    Thanks! :)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice