nosherwan,
@nosherwan@fosstodon.org avatar

🤖
So I am curious about getting into some level of AI / LLM programming to the extent that I can get into more than just using chatGpt api calls.

Where should I start & what programming language is better suited for this.

I am assuming Python?

I am proficient in JavaScript/TypeScript.




bcgoss,

@nosherwan I made a neural net in ruby. We trained it on fantasy football data and for a given player it would predict game statistics, running/passing yards, tackles, touchdowns etc. It was able to emergently discover that quarterbacks don't make receptions in a normal game without explicit instructions.

You can start with any language you're comfortable with. Performance constraints will mean compiled languages will outpace interpreted, But there's lots to learn before you hit those limits

nosherwan,
@nosherwan@fosstodon.org avatar

@bcgoss thank you for sharing.

perry_mitchell,

@nosherwan Not at all proficient but going on a similar journey. Tools like Langchain and tensorflow etc are all available for typescript/JavaScript.. so I’m not sure that switching to Python is at all necessary anymore.

nicemicro,
@nicemicro@fosstodon.org avatar

@nosherwan python has some nice libraries. I for example started by implementing a convolutional net just in numpy, but if you're not interested in that, you can go for some specific packages, like tensofrlow, that also has nice tutorials.

nosherwan,
@nosherwan@fosstodon.org avatar

@nicemicro thank you for sharing.

thecodingbeard,
@thecodingbeard@techtoots.com avatar

@nosherwan strange I just started a mini project on this today - Python was my language of choice.

nosherwan,
@nosherwan@fosstodon.org avatar

@thecodingbeard LoL, excellent, are you able to share a bit more info as to what you are doing?

thecodingbeard,
@thecodingbeard@techtoots.com avatar

@nosherwan sure - I wanted to come up with a chat (turn based) trivia game to start. Also porting over the logic to Swift now so I can use a mobile version.

ShallowWater,

@nosherwan

I would start by thinking about how AI is mostly just function approximation (neural nets, fuzzy logic) and optimization (genetic algorithms, simulated annealing).

There is no magic.

gjhiggins,

@nosherwan

Hazarding a guess that you might be interested in running your own LLM locally. If so, GPT4All might be a good starting point for you (https://gpt4all.io/index.html) as there are Python bindings (https://github.com/nomic-ai/gpt4all/tree/main/gpt4all-bindings/python).

bcgoss,

@nosherwan putting more thought into it I think the main challenge for a homebrew LLM is the first L. The companies publishing these models are using unfathomably Large data sets and I'm not sure how a hobbyist or small business would replicate it.

After you have a large data set and a ML algorithm (which are all well documented), you just train the model until it starts producing well formed sentences. The data is the differentiator

ericflo,
@ericflo@mastodon.xyz avatar

@nosherwan Google cs231n imo

nosherwan,
@nosherwan@fosstodon.org avatar

@ericflo bingo, they are asking for proficiency in Python.

ericflo,
@ericflo@mastodon.xyz avatar

@nosherwan (Karpathy's year, I think 2016)

nosherwan,
@nosherwan@fosstodon.org avatar

@ericflo he works at Tesla...

ericflo,
@ericflo@mastodon.xyz avatar

@nosherwan Used to. He's one of the best educators I've ever seen hands down (IMO of course)

nosherwan,
@nosherwan@fosstodon.org avatar

@ericflo are there online courses that he has published?

ericflo,
@ericflo@mastodon.xyz avatar

@nosherwan This might be more immediately useful from him than the 2016 course https://youtu.be/kCc8FmEb1nY?si=0co9FMMdoaPR9UlG

nosherwan,
@nosherwan@fosstodon.org avatar

@ericflo thanks.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • ai
  • ngwrru68w68
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • kavyap
  • cubers
  • JUstTest
  • modclub
  • normalnudes
  • tester
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • cisconetworking
  • megavids
  • lostlight
  • All magazines