iTranslated by AI
Surprised by the Blazing Fast Speed of Ollama on M1 Mac
Introduction
I always enjoy running LLMs and living a generative AI life on my NVIDIA-equipped Windows machine, but this time I tried installing Ollama and running Llama 3 on macOS.
Specs:
Apple M1 Pro (16 GB)
A while ago, it felt like inference was difficult on a Mac without CUDA, but nowadays I see word-of-mouth reviews saying that LLMs can run on Macs thanks to Ollama.
I've been curious for a long time, so I finally checked to see if it would work on my M1 Mac!
In conclusion, I was very surprised because the inference was blazing fast. Huge thanks to the OSS developers!
What is Ollama?
Ollama is an application that allows you to run LLMs locally.
You can download it from the link below.
It is available for macOS and Linux. It seems there is also a preview version for Windows.
Time for Inference
Once the download is complete, let's run it from the shell.
I tried executing it in the Mac terminal.
% ollama run llama3
The first time takes a while to download llama3, but it seems that inference is immediate from the second time onwards.
I tried talking to it in English.
>>> how can i grow my youtube?
Growing a YouTube channel requires consistent effort, creativity, and
engagement. Here are some actionable tips to help you grow your YouTube
channel:
1. **Define your niche**: Focus on a specific topic or theme that you're
passionate about and have expertise in. This will attract a targeted
audience interested in the same thing.
2. **Create high-quality content**: Invest time and effort into producing
engaging, informative, and entertaining videos. Make sure they are
well-produced, with good sound quality and visuals.
3. **Optimize your videos for search**: Use relevant keywords in your
video titles, descriptions, and tags to help people find your content when
searching on YouTube or Google.
4. **Develop a consistent schedule**: Regularly upload videos to keep your
audience engaged and coming back for more. Consistency is key to building
an audience.
5. **Engage with your audience**: Respond to comments, answer questions,
and interact with your viewers on social media platforms like Twitter,
Facebook, or Instagram.
6. **Promote your channel**: Share your videos on other platforms, such as
LinkedIn, Reddit, or forums related to your niche. Collaborate with other
creators or influencers in your field.
7. **Analyze and adjust**: Use YouTube Analytics to track your
performance, understand what works, and make data-driven decisions to
improve your content and strategy.
8. **Offer value**: Make sure your videos provide valuable information,
insights, or entertainment that resonates with your audience. Focus on solving problems or
addressing pain points.
9. **Be authentic and unique**: Bring your personality, expertise, and perspective to your content.
Avoid copying others; instead, find a way to stand out and be memorable.
10. **Stay up-to-date with the latest trends and best practices**: Attend YouTube creator events,
participate in online communities, and follow industry leaders to stay informed about the latest
strategies and algorithm updates.
Additionally, consider these advanced tips:
1. **Use eye-catching thumbnails**: Craft attention-grabbing thumbnail images that accurately
represent your content and entice viewers to click.
2. **Write compelling titles and descriptions**: Craft engaging titles and descriptions that
accurately summarize your video's content and appeal to your target audience.
3. **Leverage YouTube's features**: Use cards, end screens, and annotations to add interactive
elements to your videos and encourage engagement.
4. **Run contests or giveaways**: Host contests, Q&A sessions, or giveaways to incentivize viewers
to engage with your channel and share their experiences.
5. **Collaborate with other creators**: Partner with other YouTubers or influencers in your niche to
reach new audiences and create fresh content.
6. **Offer exclusive content**: Provide incentives for viewers to subscribe to your channel by
offering exclusive content, such as behind-the-scenes footage or exclusive tips.
7. **Utilize YouTube's monetization options**: Enable monetization on your videos and explore
additional revenue streams like sponsorships, merchandise sales, or affiliate marketing.
Remember, growing a YouTube channel takes time, effort, and patience. Focus on creating high-quality
content that resonates with your audience, and continuously adapt to changes in the platform and
your niche.
I was amazed by the generation speed and the amount of text. I could really feel why Llama 3's high inference accuracy in English has been a hot topic.
It seems that rinna co.'s Japanese continued pre-trained model "Llama 3 Youko 8B" was also released in May, so I'd like to try that as well!
The following link explains how to use models not listed on the Ollama site, so it might be a good reference.
Summary
I was surprised by the inference speed of Ollama on macOS.
I was genuinely moved by the fact that LLMs can actually run on a Mac.
I'm looking forward to trying out various things by running LLMs on my Mac from now on!
It looks like it can be turned into an API and used for AITubers as well, so stay tuned for that!
I post about AI and AITuber development on X like this, so I'd be encouraged if you follow me!
Oh, and of course, please subscribe to the AI Gal Marketer Yu-chusu channel too! 💪('ω'💪)
Discussion
私も同じ環境でやってみました。本当に高速でびっくりしてます。GPU使われてるのかなと思い、実行中にリソースグラフを見てましたが、レスポンスを返している間、GPUの利用量が増えていたので、きちんとGPUが利用されているそうでした。
セットアップがめちゃくちゃ簡単でびっくりしました。