ErikJonker, to ai
@ErikJonker@mastodon.social avatar

A lot of marketing and hype in this TED-talk by Mustafa Suleyman. I like however his metaphor of AI as a digital species.
https://youtu.be/KKNCiRWd_j0?si=W4iesh2iQ0GmX_TN

davidegts, to ai
@davidegts@mastodon.social avatar

"There has been a shift in the space: some models, like & , have evolved into entire web platforms spanning multiple use cases & access points. Other large language models like or , though technically speaking they share a basic architecture, don’t actually fill the same role. They are intended to live in the background as a service or component, not in the foreground as a name brand." https://techcrunch.com/2024/04/19/too-many-models/

joe, to ai

Yesterday, we looked at how to write a JavaScript app that uses Ollama. Recently, we started to look at Python on this site and I figured that we better follow it up with how to write a Python app that uses Ollama. Just like with JavaScript, Ollama offers a Python library, so we are going to be using that for our examples. Also just like we did with the JavaScript demo, I am going to be using the generate endpoint instead of the chat endpoint. That keeps things simpler but I am going to explore the chat endpoint also at some point.

Install the Ollama Library

The first step is to run pip3 install ollama from the terminal. First, you need to create a virtual environment to isolate your project’s libraries from the global Python libraries.

https://i0.wp.com/jws.news/wp-content/uploads/2024/04/Screenshot-2024-04-22-at-5.58.34%E2%80%AFPM.png?resize=1024%2C647&ssl=1

https://i0.wp.com/jws.news/wp-content/uploads/2024/04/Screenshot-2024-04-22-at-5.59.03%E2%80%AFPM.png?resize=1024%2C647&ssl=1

Basic CLI example

At this point, we can start writing code. When we used the web service earlier this week, we used the generate endpoint and provided model, prompt, and stream as parameters. We set the stream parameter to false so that it would return a single response object instead of a stream of objects. When using the python library, the stream parameter isn’t necessary because it returns a single response object by default. We still provide it with a model and a prompt, though.

If you run it from the terminal, the response will look familiar.

https://i0.wp.com/jws.news/wp-content/uploads/2024/04/Screenshot-2024-04-22-at-8.05.20%E2%80%AFPM.png?resize=1024%2C647&ssl=1

If you replace print(output) with print(output['response']), you can more clearly see the important bits.

https://i0.wp.com/jws.news/wp-content/uploads/2024/04/Screenshot-2024-04-22-at-8.09.04%E2%80%AFPM.png?resize=1024%2C647&ssl=1

Basic Web Application Example

The output is very similar to the node-fetch example from earlier this week. Last week, when we looked at how to dockerize a node app, we output an array as an unordered list. Let’s see if we can replicate that result using the output from Ollama.

If you pip install flask to install flask, you can host a simple HTTP page at port 8080 and with the magic of json.loads() and a for loop, you can build your unordered list.

So, what does the output look like?

https://i0.wp.com/jws.news/wp-content/uploads/2024/04/Screenshot-2024-04-22-at-8.27.30%E2%80%AFPM.png?resize=1024%2C651&ssl=1

Every time you load the page, it makes a server-side API call to Ollama, gets a list of large cities in Wisconsin, and displays them on the website. The list is never the same (because of hallucinations) but that is another issue.

Have any questions, comments, etc? Please feel free to drop a comment, below.

https://jws.news/2024/how-to-write-a-python-app-that-uses-ollama/

Tevis, to ai
@Tevis@mastodon.social avatar

Someone used to depict a school principal making racist comments about students, prompting a flood of angry messages and the principal's temporary removal.

We are not prepared for the world we have created.

https://www.thebaltimorebanner.com/education/k-12-schools/eric-eiswert-ai-audio-baltimore-county-YBJNJAS6OZEE5OQVF5LFOFYN6M/

br00t4c, to ai
@br00t4c@mastodon.social avatar

AI Tupac track vanishes from Drake's Instagram

https://www.bbc.co.uk/news/newsbeat-68904385

chikim, to llm
@chikim@mastodon.social avatar

Wow, Private LLM locally runs Llama-3-8B on iOS. No idea how accessible with VoiceOver though. https://privatellm.app/en

organicmaps, (edited ) to random
@organicmaps@fosstodon.org avatar

One of our users has generated a song about Organic Maps. How does it sound to you? 😀

Beneath the twinkling stars, I stroll hand in hand,
With Organic Maps, exploring enchanted lands.
From Eiffel's gentle glow to Iceland's black sand shore,
Every step a melody, every sight, pure amore.

... more at https://organicmaps.app/news/2024-04-26/travel-with-organic-maps-song/

normplum,
@normplum@fosstodon.org avatar

@organicmaps 'Generated'... As in, with ?

Snoro, to ai
@Snoro@mastodon.social avatar

Bezos Earth Fund's AI Climate Solutions Prize Prioritises Alt-Proteins
Anay Mridul
11–14 minutes

5 Mins Read
The Bezos Earth Fund has announced an AI for Climate and Nature Grand Challenge, promising up to $100M in grants for solutions leveraging artificial intelligence – and alternative proteins are one of its key focus areas

https://www.greenqueen.com.hk/bezos-earth-fund-ai-for-climate-and-nature-grand-challenge/

br00t4c, to ai
@br00t4c@mastodon.social avatar

Meta's AI annoys, Microsoft and Amazon under scrutiny, banks go all-in: AI news roundup

https://qz.com/ai-news-meta-microsoft-amazon-nvidia-banks-sam-altman-1851436206

br00t4c, to ai
@br00t4c@mastodon.social avatar

Matthew McConaughey is still Salesforce's AI cowboy

https://qz.com/salesforce-matthew-mcconaughey-marc-benioff-1851436947

ErikJonker, to ai
@ErikJonker@mastodon.social avatar

If you compare the difference between now freely available LLMs like GPT 3.5, Claude Sonnet, LLM3 etc with the paid versions of various models, the difference for most ordinary users/usecases is quite small. That must be a problem for the businesscase of companies like OpenAI, they need large numbers of ordinary people willing to pay every month for access to their models, if you look at the enormous investments? Or are other revenue streams more important ? 🤔

tante, to ai
@tante@tldr.nettime.org avatar

Kinda similar to large quantities of " howtos" that show you how to use certain libraries or pipelines. When trying to reproduce the results you often find that the way the howto is structured, things don't actually work, that the claimed results don't make sense or that the library just doesn't work the way the author (which is probably an "AI") claims.

Because so much of the reception of these papers (especially here) is just "WOW, the future is here", "this is so cool" or (the literal worst): "The changes everything".

The reproducebility crisis in psychology is a joke compared to a lot of AI stuff.

Sidenote: For bigger models there's only a handful of companies on the planet who have the resources (as in NVIDIA graphics cards and limitless cash to burn on energy and data) to build and test these models.

https://tldr.nettime.org/@tante/112334394663299454

ovid, to ChatGPT
@ovid@fosstodon.org avatar

Waiting for the Hollywood movie where a 1950s computer programmer mysteriously connects a teletype to ChatGPT, but doesn't realize it's not human

"I'm sorry, but I have no knowledge of events after December 2023.".

br00t4c, to ai
@br00t4c@mastodon.social avatar

Athletic Director Used AI To Frame Principal With Racist Remarks In Fake Clip: Police

https://www.huffpost.com/entry/ap-us-maryland-principal-impersonation_n_662b1f51e4b0bd041d77422d

eddyizm, to StableDiffusion
@eddyizm@fosstodon.org avatar
br00t4c, to ai
@br00t4c@mastodon.social avatar
br00t4c, to ai
@br00t4c@mastodon.social avatar
ceoln, to ai
@ceoln@qoto.org avatar

I've had occasion to ask an AI about a thing twice lately (a recent online phenomenon, and a book recommendation). Both times I asked both Gemini and ChatGPT, and both times one gave a reasonable if bland answer, and the other (a different one each time) gave a plausible but completely fictional ("hallucinated") answer.

When do we acknowledge that LLMs, and "AI" in general, aren't quite ready to revolutionize the world?

br00t4c, to ai
@br00t4c@mastodon.social avatar

Salesforce says its AI chatbot won't hallucinate - well, probably

https://qz.com/salesforce-einstein-copilot-hallucinations-1851436568

br00t4c, to ai
@br00t4c@mastodon.social avatar

Gym teacher accused of using AI voice clone to try to get a high school principal fired

https://www.theverge.com/2024/4/25/24140556/ai-voice-cloning-baltimore-school-misuse

br00t4c, to ai
@br00t4c@mastodon.social avatar

Tech brands are forcing AI into your gadgets--whether you asked for it or not

https://arstechnica.com/?p=2019927

tante, to ai
@tante@tldr.nettime.org avatar

There's a funny thing you see in many scientific papers - especially papers: The paper will prominently include a link to a GitHub repository with claims of code availability "soon" but when you go there (months after the paper was released) there's either just a placeholder or the paper text.

People use GitHub links to score browny points for "doing open science" but most of it is just not there. Especially with statistical systems when you realize that you don't get the training data, you don't get the code, you don't get model weights what you get are results and a "trust me bro".

AnnaAnthro, to ai
@AnnaAnthro@mastodon.social avatar

Can Using a Grammar Checker Set Off AI-Detection Software?

“A US college student says she was falsely accused of cheating and given a zero, and her story has gone viral.

She said she used spell check on her essay but it set off TurnitIn’s censor.”

Where is the line between acceptable help and cheating with AI?”

https://www.edsurge.com/news/2024-04-04-can-using-a-grammar-checker-set-off-ai-detection-software

br00t4c, to ai
@br00t4c@mastodon.social avatar

STAT+: After AI protein folding, David Baker's lab identifies millions of smaller drug candidates

https://www.statnews.com/2024/04/25/after-ai-protein-folding-david-bakers-lab-identifies-millions-of-smaller-drug-candidates/?utm_campaign=rss

kennwhite, to random

Incredible research at BlackHat Asia today by Tong Liu and team from the Institute of Information Engineering, Chinese Academy of Sciences (在iie.ac.cn 的电子邮件经过验证)

A dozen+ RCEs on popular LLM framework libraries like LangChain and LlamaIndex - used in lots of chat-assisted apps including GitHub. These guys got a reverse shell in two prompts, and even managed to exploit SetUID for full root on the underlying VM!

image/jpeg
image/jpeg

mjgardner, (edited )

@kennwhite Looks like we’re at the “Matt’s Script Archive” level with frameworks.

The difference is that Matt Wright was a high school student in 1995 when he launched MSA and its infamously exploitable FormMail script.

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