Senin, 27 Januari 2025

I Ran Deepseek R1 on Raspberry Pi 5 and No, it Wasn't 200 tokens/s

I Ran Deepseek R1 on Raspberry Pi 5 and No, it Wasn't 200 tokens/s

Since the launch of DeepSeek AI, every tech media outlet has been losing its mind over it. It's been shattering records, breaking benchmarks, and becoming the go-to name in AI innovation.

I Ran Deepseek R1 on Raspberry Pi 5 and No, it Wasn't 200 tokens/s
DeepSeek v/s OpenAI benchmark | Source: Brian Roemmele

Recently, I stumbled upon a post on my X feed (don’t judge me, I’m moving to Bluesky soon!) where someone claimed to have run Deepseek on a Raspberry Pi at 200 tokens/second.

I Ran Deepseek R1 on Raspberry Pi 5 and No, it Wasn't 200 tokens/s

My head started spinning. "wHaaaTTT?!"

Naturally, I doom-scrolled the entire thread to make sense of it. Turns out, the guy used an AI accelerator module on top of the Pi to hit those numbers.

I Ran Deepseek R1 on Raspberry Pi 5 and No, it Wasn't 200 tokens/s

But curiosity is a powerful motivator. Since I didn’t have an AI module lying around, I thought, why not test the raw performance of Deepseek on a plain Raspberry Pi 5? Who's stopping me?

So, for this article, I installed Ollama on my Pi 5 (8 GB model) and downloaded Deepseek model with different parameters(i.e. 1.5B, 7B, 8B, and 14B parameters to be specific).

💡
If you're new or unsure about setting things up, don't worry, we already have a detailed guide on installing Ollama on a Raspberry Pi to help you get started.

Here’s how each one performed:

Deepseek 1.5B

I Ran Deepseek R1 on Raspberry Pi 5 and No, it Wasn't 200 tokens/s

This model was snappy. It felt surprisingly responsive and handled paraphrasing tasks with ease. I didn’t encounter any hallucinations, making it a solid choice for day-to-day tasks like summarization and text generation.

Performance stats

To test its capability further, I posed the question: What's the difference between Podman and Docker?

The model gave a decent enough answer, clearly breaking down the differences between the two containerization tools.

It highlighted how Podman is daemonless, while Docker relies on a daemon, and touched on security aspects like rootless operation.

This response took about two minutes, and here’s how the performance data stacked up:

total duration:       1m33.59302487s
load duration:        44.322672ms
prompt eval count:    13 token(s)
prompt eval duration: 985ms
prompt eval rate:     13.20 tokens/s
eval count:           855 token(s)
eval duration:        1m32.562s
eval rate:            9.24 tokens/s

Deepseek 7B

I Ran Deepseek R1 on Raspberry Pi 5 and No, it Wasn't 200 tokens/s

The 7B model introduced a fair amount of hallucination. I tried writing a creative prompt asking for three haikus, but it started generating endless text, even asking itself questions!

While amusing, it wasn’t exactly practical. For benchmarking purposes, I simplified my prompts, as seen in the video. Performance-wise, it was slower, but still functional.

Performance stats

To test it further, I asked: What’s the difference between Docker Compose and Docker Run? The response was a blend of accurate and imprecise information.

It correctly explained that Docker Compose is used to manage multi-container applications via a docker-compose.yml file, while Docker Run is typically for running single containers with specific flags.

However, it soon spiraled into asking itself questions like, “But for a single app, say a simple Flask app on a single machine, Docker Run might be sufficient? Or is there another command or method?”

Here’s how the performance data turned out:

total duration:       4m20.665430872s
load duration:        39.565944ms
prompt eval count:    11 token(s)
prompt eval duration: 3.256s
prompt eval rate:     3.38 tokens/s
eval count:           517 token(s)
eval duration:        4m17.368s
eval rate:            2.01 tokens/s

Deepseek 8B

I Ran Deepseek R1 on Raspberry Pi 5 and No, it Wasn't 200 tokens/s

This was the wild card. I didn’t expect the 8B model to run at all, considering how resource-hungry these models are. To my surprise, it worked!

The performance was on par with the 7B model, neither fast nor particularly responsive, but hey, running an 8B model on a Raspberry Pi without extra hardware is a win in my book.

Performance stats

I tested it by asking, "Write an HTML boilerplate and CSS boilerplate." The model successfully generated a functional HTML and CSS boilerplate in a single code block, ensuring they were neatly paired.

However, before jumping into the solution, the model explained its approach, what it was going to do and what else could be added.

While this was informative, it felt unnecessary for a straightforward query. If I had crafted the prompt more precisely, the response might have been more direct (i.e. user error).

Here’s the performance breakdown:

total duration:       6m53.350371838s
load duration:        44.410437ms
prompt eval count:    13 token(s)
prompt eval duration: 4.99s
prompt eval rate:     2.61 tokens/s
eval count:           826 token(s)
eval duration:        6m48.314s
eval rate:            2.02 tokens/s

Deepseek 14B ?

I Ran Deepseek R1 on Raspberry Pi 5 and No, it Wasn't 200 tokens/s

Unfortunately, this didn’t work. The 14B model required over 10 GB of RAM, which my 8 GB Pi couldn’t handle. After the success of the 8B model, my hopes were high, but alas, reality struck.

Conclusion

DeepSeek’s raw performance on the Raspberry Pi 5 showcases the growing potential of SBCs for AI workloads.

The 1.5B model is a practical option for lightweight tasks, while the 7B and 8B models demonstrate the Pi’s ability to handle larger workloads, albeit slowly.

I’m excited to test DeepSeek on the ArmSoM AIM7 with its 6 TOPS NPU. Its RK3588 SoC could unlock even better performance, and I’ll cover those results in a future article.

If you’re interested in more of my experiments, check out this article where I ran 9 popular LLMs on the Raspberry Pi 5.

Until then, happy tinkering, and remember: don’t ask AI to write haikus unless you want a never-ending saga. 😉



from It's FOSS https://ift.tt/HrdxVIl
via IFTTT

Rabu, 22 Januari 2025

FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

I would appreciate your feedback on something 'new'. I plan to add pages that let you discover applications based on certain criteria.

It's a work in progress, but feel free to have a look and share your opinion 🙏

Discover Interesting Linux Terminal Tools
Discover a selection of interesting tools and utilities you can use from the (dis)comfort of your terminal.
FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

Would you like to see more pages like this?

💬 Let's see what else you get in this edition

  • Upgrading to Mint 22.1.
  • Flathub introducing a new section.
  • Linux powering NVIDIA's Project DIGITS.
  • And other Linux news, videos and, of course, memes!
  • This edition of FOSS Weekly is supported by ANY.RUN.

✨ANY.RUN: Business-Ready Interactive Linux Malware Analysis

Don’t let your business be the next target of emerging Linux malware. Strengthen your critical operations with ANY.RUN’s Interactive Sandbox, designed for proactive malware hunting and analysis.

Here’s how it helps businesses stay safe:

  • Quick setup gets you started instantly
  • Real-time detection spots threats fast
  • Unlimited sessions let you analyze all your files
  • Risk-free interaction keeps your system safe
  • Detailed reports boost your defenses
  • User-friendly design simplifies analysis
  • Cloud access works anywhere, anytime.

Protect your business and gain peace of mind with the ultimate malware analysis platform trusted by companies worldwide. Try it for FREE!

Interactive Online Malware Analysis Sandbox - ANY.RUN
Cloud-based malware analysis service. Take your information security to the next level. Analyze suspicious and malicious activities using our innovative tools.
FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

📰 Linux and Open Source News

Linux kernel 6.13 is a major upgrade with many changes.

Linux Kernel 6.13 Released: Here’s What’s New!
AMD users and old Apple device owners, this is a good release for you!
FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

🧠 What We’re Thinking About

This is not how you 'force implement' cloud features.

Bambu Lab Firmware Fiasco Has Caused Rifts In The 3D Printing Community
Bambu Labs has found themselves in a tough spot.
FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

Hindenburg Research closing up shop has resulted in an interesting outcome.


🧮 Linux Tips, Tutorials and More

Blend in with the crowd with these jargons.

21 Jargon Every Linux User Should Know
Even if you don’t know Linux well enough, you should know these common terms to blend in ;)
FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

👷 Maker's and AI Corner

Tinker right out of the box with these 7 Raspberry Pi laptops and tablets.

7 Raspberry Pi-Based Laptops and Tablets for Tinkerers
Raspberry-powered laptops and tablets can be the perfect pick for your projects, and portable computing needs. Here’s a list of options.
FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

Tip on monitoring the CPU and GPU temperature of your Raspberry Pi.


📹 Videos we are creating

Take a look at the new features in the new Mint 22.1 Xia.


✨ Apps of the Week

Text Pieces is a neat app that acts as a scratchpad for developers.

Text Pieces: A Rust-based Open Source App to Help Devs With Text Transformations
A handy little scratchpad app for developers.
FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

Managing your finances is crucial, My Expenses makes it simple.


🛍️Deal You Would Love

FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

If you are looking for a career in IT with Linux, Cloud and DevOps, Linux Foundation's training and certifications (LFCS, CKA etc) are on a limited time discount.


🧩 Quiz Time

This time it's a crossword on Linux terminal emulators.

Linux Terminal Emulators: Crossword
Let’s explore some Linux terminal emulators with this crossword.
FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

💡 Quick Handy Tip

In KDE Plasma, you can add some additional effects to the Breeze window decorations using system settings. First, go to System Settings, then go to Colors & ThemesWindow Decorations.

Here, click on the edit icon near the Breeze theme to get more options, where a new settings dialog should appear. You can do appearance changes like title alignment, shadows and outline, button size tweaks, etc.

This might work with other Plasma themes too.

FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

🤣 Meme of the Week

Do you also feel the same way?

FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

🗓️ Tech Trivia

The Macintosh, launched on January 24, 1984, was the first successful computer with a mouse and graphical user interface. It revolutionized personal computing by making technology more accessible. Its debut was marked by Apple’s iconic “1984” Super Bowl commercial.


🧑‍🤝‍🧑 FOSSverse Corner

Pro FOSSer, Jimmy, shares how he is impressed by Atuin.

Atuin Rocks!: Fuzzy Search for Bash History
Hey everyone, Around mid November I decided to try Atuin: Github link. Atuin replaces your shell history with an SQLite database. You can also set it up so that your fully encrypted history is synchronized between different machines*. Before this, while I used the shell history, I cannot say that I was very good at it. If it had been a long time since I had run the command, I was usually better off just trying to figure out what I ran before by typing it out. Of course, sometimes I would have…
FOSS Weekly #25.04: Must-know Jargon, Kernel 6.13 Released, Mint 22.1, WINE 10 and More Linux Stuff

❤️ With love

Share it with your Linux-using friends and encourage them to subscribe (hint: it's here).

Share the articles in Linux Subreddits and community forums.

Follow us on Google News and stay updated in your News feed.

Opt for It's FOSS Plus membership and support us 🙏

Enjoy FOSS 😄



from It's FOSS https://ift.tt/QdFh8ED
via IFTTT

21 Jargon Every Linux User Should Know

21 Jargon Every Linux User Should Know

Whether you are a Windows/macOS user, or someone who is new to computers, Linux often comes as a challenge to everyone when they encounter unfamiliar terms.

You do not usually come across Linux-specific jargon in standard high school academic computer books, unless there is a dedicated chapter for Linux.

So, for the majority of users who never used Linux, the terms associated will sound alien to them.

With this article, I aim to change that by explaining some of the important jargon that should help you navigate the Linux world better.

1. Kernel

The core of an operating system that interacts with the hardware, and software to help you take control of it, is a kernel.

And, Linux is just a kernel. We have an article that explains what Linux is for more details.

Every operating system is built on top of a kernel, like the Windows NT kernel for Windows, and the XNU kernel for Apple's macOS.

2. Distro

A distro (short for distribution) is a complete operating system package built on top of a Linux kernel.

There can be 100s of Linux distros. Each of them can differ in terms of its desktop environment, package manager, software pre-installed, user interface, Linux kernel version, and its use-cases. The combination of such system components that you like should be your preferred Linux distro.

Some of the examples of a distro include Ubuntu, Fedora, Arch Linux, and Linux Mint. Furthermore, there are distros that are based on other existing distros. For instance, Linux Mint is based on Ubuntu, and Ubuntu is based on Debian.

It can be confusing to choose a distro based on what's available. So, I recommend going through the list of the best Linux distributions for all kinds of users.

Best Linux Distributions For Everyone in 2025
Looking for the best Linux distribution that suits everyone? Take a look at our comprehensive list.
21 Jargon Every Linux User Should Know

3. Dual Booting

The technique of having two operating systems installed in a single computer is called dual booting.

You can decide to use either of them, whether you have two Linux distros or one Linux and Windows operating system.

If you are considering doing it, you must know about the dual booting myths before proceeding.

Don’t Believe These Dual Boot Myths
Don’t listen to what you hear. I tell you the reality from my dual booting experience.
21 Jargon Every Linux User Should Know

4. Grub

Grub is the boot manager program (or bootloader) that lists the operating systems installed on your computer. You can find it on most popular Linux distributions, with some exceptions like Pop!_OS.

If you didn't know, a bootloader is a program that starts when you boot up the computer and loads the kernel to execute. You get to customize the order of it, and also customize the look of it to some extent.

You can learn more about grub in our jargon buster article.

What is Grub in Linux? What is it Used for?
If you ever used a desktop Linux system, you must have seen this screen. This is called the GRUB screen. Learn what is GRUB in Linux and what is it used for?
21 Jargon Every Linux User Should Know

5. Desktop Environment

The desktop environment is a component of a Linux distribution that provides a graphical user interface (GUI) to interact with all the tech.

It includes elements like icons, toolbar, wallpaper, widgets, and more.

You can get a detailed explanation of what a desktop environment is in our article and explore all the available desktop environments here:

8 Best Desktop Environments For Linux
A list of the best Linux Desktop Environments with their pros and cons. Have a look and see which desktop environment you should use.
21 Jargon Every Linux User Should Know

My favorite desktop environments include GNOME and KDE Plasma.

6. Display server

Display server is the core tech of what enables you to see and have a graphical user interface (GUI). Without it, you will not have a GUI to interact with.

It is not the same as desktop environment. In fact, a desktop environment includes a display server under-the-hood to make things possible.

You might have heard about X11, and Wayland sessions, those are the types of display servers available. Explore more here:

Linux Jargon Buster: What is a Display Server in Linux? What is it Used for?
In Linux related articles, news and discussions, you’ll often come across the term display server, Xorg, Wayland etc. In this explainer article, I’ll discuss display servers in Linux. What is display server in Linux? A display server is a program which is responsible for the input and output
21 Jargon Every Linux User Should Know

7. Display Manager

The display manager is a program that gives login capabilities to the user in a desktop environment.

Some popular display managers are GDM, LightDM, and SSDM. You can learn more about it here:

Linux Jargon Buster: What is Display Manager in Linux?
In this chapter of the Linux Jargon Buster, you’ll learn about display manager in Linux. Is it part of the desktop environment? What does it do?
21 Jargon Every Linux User Should Know

8. GNOME Shell

The user interface component in the GNOME desktop environment that is responsible to managing actions like window switching, notifications, and launching applications is the GNOME shell.

You can customize the behavior and add more functionalities to it using GNOME shell extensions.

9. Terminal Emulator

The terminal emulator is a text-based program that lets you type in commands for the computer to process. Some may even prefer to all it the command-line interface (just like the command prompt in Windows).

By default, every Linux distribution offers a terminal emulator with a set of capabilities. However, you can choose to install a separate one to get more functionalities or a different look/feel.

You can explore our list of available Linux terminal emulators to try out some cool options.

10. Sudo

Sudo is a command on Linux that gives you elevated privileges (or root privileges) temporarily.

It is used whenever you want to make a system modification, or want to simply access a system file. The user is asked to prove that they are the administrators of the computer by typing in the password whenever sudo is used in a command.

Interestingly, the password is not visible when you type it in the terminal for security purposes.

11. Package Manager

A tool that lets you install, manage, and remove applications on your Linux distro, is the package manager. It can be terminal-centric or one with a graphical user interface (GUI).

For instance, APT package manager for .deb files is terminal-focused. And, Synaptic is a GUI-based tool.

Every Linux distro has a different package manager. However, some package managers are predominantly found in most of the Linux distributions. For more information, you can check out our package manager explainer:

What is a Package Manager in Linux?
Learn about packaging system and package managers in Linux. You’ll learn how do they work and what kind of package managers available.
21 Jargon Every Linux User Should Know

12. End of Life

End of Life (EOL) is a term used to point out the particular date/year after which a software will stop receiving any maintenance or security updates. In our context, it can be a Linux distribution. However, it is a term used for all kinds of software.

For instance, the End of Life for Ubuntu 24.04 LTS is April 2029. The End of Life differs based on the release cycle of the distribution, which I shall mention in the next point.

Suggested Read 📖

What is End of Life in Ubuntu? Everything You Should Know About it
Learn what is end of life of an Ubuntu release, how it impacts you, how to check support status and what you should do if your system reaches end of life.
21 Jargon Every Linux User Should Know

13. Long-Term Support (LTS) and Non-LTS Release

A release cycle is the period when you can expect a software to get a new upgrade while marking the end of life of the current version.

If you find something that mentions — Long-Term Support (LTS) release, it means that the software will get updates for a long duration of time, focusing on its stability over bleeding-edge changes.

Depending on the software or the distro, the duration will differ. For instance, every LTS release of Ubuntu gets at least five years of updates, and its flavours get only three years of updates.

And, non-LTS is the opposite of it, meaning, the software will get updates for a shorter duration (or limited time).

For instance, Ubuntu 24.10 will be supported for only nine months.

14. Point and Rolling Release

A point release is a minor update to a major version of the software. For instance, Linux Mint 22.1 is a point update to Linux Mint 22.

On the contrary, a rolling release does not increment in any similar form. It just gets updates, small or big, with every new push by the developer team after its initial big release. For instance, Arch Linux is one of the best rolling release distros.

What is a Rolling Release Distribution?
What is rolling release? What is a rolling release distribution? How is it different from the point release distributions? All your questions answered.
21 Jargon Every Linux User Should Know

15. Snap, Flatpak, and AppImage

Snap, Flatpak, and, AppImage are three different universal packaging formats for Linux software. Unlike DEB or RPM packages, you can use Snap/Flatpak/AppImage packages on any Linux distributions.

Technically, they have certain differences among each other, but they serve a similar aim, to make things cross-distribution friendly and remove the hassle of dependencies.

Suggested Read 📖

Flatpak vs. Snap: 10 Differences You Should Know
Flatpak vs Snap, know the differences and gain insights as a Linux user to pick the best.
21 Jargon Every Linux User Should Know

16. Tiling Window Manager

Tiling Window Manager is a program that lets you organize your windows in a tile layout. It is a mighty utility to make the best use of your screen space while keeping things organized.

It boosts your productivity, and also makes your desktop experience prettier.

Suggested Read 📖

Explained: What is a Tiling Window Manager in Linux?
Learn what a tiling window manager is, and the benefits that come along with it.
21 Jargon Every Linux User Should Know

17. Upstream and Downstream

In terms of Linux software lingo, upstream is often referred to an original project from which the current software is based on. It can be a kernel, or a distro, or an app in our context. And, the downstream is the one that takes things from the upstream.

For instance, the Linux kernel releases are upstream, and the distro developers customizing it and using it will be termed as downstream.

You can learn more in our article here:

Linux Jargon Buster: What are Upstream and Downstream?
The terms: upstream and downstream are rather ambiguous terms and, I think, not really used by the general public. If you are a Linux user and do not write or maintain software, chances are pretty good that these terms will mean nothing to you, but they can be instructive in
21 Jargon Every Linux User Should Know

18. Daemon

A daemon is a utility program that runs in the background to make sure certain services are running and monitored. For instance, the system update daemon makes sure to check for updates at a regular interval of time.

Get more insights on this on our article here:

What are Daemons in Linux? Why are They Used?
You’ll often come across the term daemon while using Linux. Don’t be scared. Learn what are daemons in Linux & why they are used in UNIX-like operating systems.
21 Jargon Every Linux User Should Know

19. TTY

When it comes to Linux, TTY is an abstract device in UNIX and Linux. Sometimes it refers to a physical input device such as a serial port, and sometimes it refers to a virtual TTY where it allows users to interact with the system (reference).

What is TTY in Linux?
Sooner or later, you’ll come across the term tty while using Linux. Learn what it is and what is its significance.
21 Jargon Every Linux User Should Know

20. Immutable Distro

Considering you already know what a distro is, an immutable distro is just a type of distro where you cannot modify the core of the operating system (in other words, it is read-only).

This makes it a safer experience, and a more reliable one. Immutable distros have gained popularity recently, and you can find plenty of immutable distros to try the concept for yourself.

12 Future-Proof Immutable Linux Distributions
Immutability is a concept in trend. Take a look at what are the options you have for an immutable Linux distribution.
21 Jargon Every Linux User Should Know

21. Super Key

The Windows key that you normally know and love is the super key for Linux. It acts as the command button (like macOS) with which you can perform a range of keyboard shortcuts.

So, if someone says press the super key, it is just the Windows key on most keyboards. In some rare instance, the keyboard button could have a Linux icon over a Windows one.

What is the Super Key in Ubuntu Linux?
Get familiar with the super (or is it meta) key in Linux in this chapter of the Jargon Buster series.
21 Jargon Every Linux User Should Know

Conclusion

It helps to know the common technical terms, specially if you are in discussion on online forums.

Of course, there is no end to jargon. There are many more that didn't make to this list. There will be newer ones as we progress with time.

What are your favorites Linux jargon that you learned recently? Share it with us in the comments 😄



from It's FOSS https://ift.tt/xq19kSY
via IFTTT