• khalid_salad
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 years ago

    It’s actually super easy to increase the accuracy of LLMs.

    import pytorch # or ollama or however you fucking dorks use this nonsense
    from decimal import Decimal
    

    I left out all the other details because it’s pretty intuitive why it works if you understand why floats have precision issues.

    • froztbyte
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

      decimal is a severely underappreciated library