Running you own LLM using Ollama

Highlevel

Olama hosts LLM models and allows you to interact with them all locally

openwebui is a nice gui front end for Ollama and models

Sites

Download Ollama on Linux

library

Open WebUI

Videos

Run Through

Ran from an Aws Vm, the basic Micro doesn’t have enough /tmp space and you have to fudge around with things.

The quickest solution is uping the instance type to something with more power a t2.xlarge seems to work well

Bundled install

curl -fsSL https://ollama.com/install.sh | sh
yum install pip -y 
pip install ollama
ollama run llama3.1

Install Ollama – Shell

curl -fsSL https://ollama.com/install.sh | sh

by following instructions on Download Ollama on Linux

Install Ollama – Pip

yum install pip pip install ollama

Install a LLM Model

ollama run llama3.1

find model in library and copy command

To check what LLM models you have and other stuff on Ollama

$ ollama list
NAME            ID              SIZE    MODIFIED
llama3.1:latest 42182419e950    4.7 GB  38 minutes ago
gemma2:2b       8ccf136fdd52    1.6 GB  2 hours ago
$ ollama
Usage:
  ollama [flags]
  ollama [command]
Available Commands:
  serve       Start ollama
  create      Create a model from a Modelfile
  show        Show information for a model
  run         Run a model
  pull        Pull a model from a registry
  push        Push a model to a registry
  list        List models
  ps          List running models
  cp          Copy a model
  rm          Remove a model
  help        Help about any command
Flags:
  -h, --help      help for ollama
  -v, --version   Show version information
Use "ollama [command] --help" for more information about a command.

Passing Input files – Bash

$ cat /home/ollama_files/helloworld_testfile       i have 5 oranges and 2 apples
if i eat 4 oranges and 1 apple
how much is left?
$ cat /home/ollama_files/helloworld_testfile | ollama run gemma2:2b  "prompt"
Here's how to figure out the remaining fruit:
Oranges Left: You started with 5 oranges, and you ate 4, so you have
5 - 4 = 1 orange left.
Apples Left:  You started with 2 apples, and you ate 1, leaving you
with 2 - 1 = 1 apple.
Answer: You have 1 orange and 1 apple left. 🍊🍎

Passing Input files – Python

# cat ./llm_test.py
#!/usr/bin/python3.9
import ollama
notes = "helloworld_testfile"
with open(notes,'r') as file:
    content= file.read()
my_prompt = f"give me the answer {content}"
response = ollama.generate(model="gemma2:2b", prompt=my_prompt)
actual_response = response["response"]
print(actual_response)
#  ./llm_test.py
Here's how to solve that:
Oranges: You started with 5, and you ate 4, so you have 5 - 4 = 1 orange left.
Apples: You started with 2, and you ate 1, so you have 2 - 1 = 1 apple left.
Answer: You have 1 orange and 1 apple left.

Quick Chat

$ ollama run gemma2:2b
>>> tell me a joke
Why don't scientists trust atoms?
Because they make up everything! 😄
Let me know if you want to hear another one! 😊
>>> Send a message (/? for help)

Creating a Pocket of Magic: How to Spark Change in Your Team and Environment

Change, whether in life or in the workplace, is never easy, especially when we don’t feel in control. But here’s the secret: you don’t have to be in a position of authority to create powerful change. You can spark it from within your team and environment, influencing not just the people around you but even your boss. It starts with small, intentional actions that create a ripple effect—what Simon Sinek refers to as “a pocket of magic.”

Here’s how to create that magic and spark lasting change in your environment.

Focus on the Behavior Around You

Often, we wait for someone at the top to drive change, especially in professional settings. But real change doesn’t always start from the top. It begins right where you are—by focusing on your team, the people beside you, and yes, even your boss.

When you actively shape the behavior in your immediate environment, you influence how your peers act, think, and respond. Your small, consistent actions create a pocket of magic—a space where positivity, creativity, and progress thrive.

Here’s how you can start:

  • Model the Behavior You Want to See: Want a more collaborative and open team? Start by being more collaborative and open yourself. When you actively listen, share ideas freely, and offer help, others will begin to mirror that behavior.
  • Build Trust and Transparency: Whether it’s through one-on-one conversations or team discussions, being open about challenges and triumphs creates a safe space for others to do the same. This builds a foundation of trust, which is crucial for change.
  • Celebrate Small Wins: Every step toward change, no matter how small, is progress. Recognize and celebrate the efforts of your team. This positive reinforcement encourages others to stay on track.

Focusing on the people around you is key. Change doesn’t happen in isolation—it’s a collective effort. When your team sees your behavior, they’ll begin to align with that energy, sparking their own transformations.

Create Magical Ripples of Change

Once you’ve created this pocket of magic in your immediate environment, the next step is to extend its influence. It’s about creating ripples that move outward, touching others beyond your immediate circle. These ripples of change are subtle but powerful, and they can reach far and wide if sustained.

Here’s where Simon Sinek’s law of diffusion comes into play. According to Sinek, you don’t need to convince everyone to get on board with your vision. In fact, only 15-18% of people need to embrace the change before you reach a tipping point. At this point, the change gains momentum and spreads more naturally to the rest of the organization or team.

Here’s how to amplify those magical ripples:

  • Engage Early Adopters: Focus on the people who are naturally open to new ideas or who already align with your vision for change. These early adopters are essential because they help spread the message. Once they’re on board, they’ll influence others, extending your reach.
  • Inspire Through Action: People are more likely to embrace change when they see it in action rather than just hearing about it. Show them how the change works in real time. For example, if you’re advocating for more transparency in team meetings, model this by openly sharing information or ideas in your own meetings. Actions inspire more than words.
  • Let Go of Control: Once your ripples start, let go of the need to control every aspect of the change. Trust that the energy you’ve created will continue to spread and adapt in ways you might not expect. Allow others to take ownership of the change, and watch how they make it their own.

Reaching the Tipping Point

As your ripples of magic continue, you’ll eventually reach a tipping point. This is when enough people—around 15-18%, according to the law of diffusion—embrace the change, causing a shift in the wider team or environment. The momentum becomes unstoppable, and the change feels almost inevitable.

At this stage, the most important thing is to maintain the culture of openness, trust, and consistency that you’ve built. The tipping point is a fragile moment—it’s when the change is still taking root but hasn’t yet fully integrated into the fabric of your environment. Continue reinforcing the behaviors that sparked the change, and encourage others to do the same.

Pocket of Magic: A Sustainable Change

Creating this pocket of magic isn’t about short-term gains or temporary wins. It’s about creating an environment where positive change is sustainable, where people feel empowered to contribute, and where progress becomes part of the team’s DNA.

What starts as a small pocket of magic can expand, reaching beyond your team to the entire organization. You might influence how your boss approaches decision-making, or how different departments collaborate. But remember, it starts with you—your behavior, your commitment, and your belief in the change you want to create.

Conclusion: Change Starts With Us

Creating meaningful change doesn’t require a title or position of authority. It requires consistency, influence, and a clear understanding of how change spreads through human behavior. By focusing on your immediate team and environment, you can create ripples of positive change that extend far beyond what you might expect.

When 15-18% of people embrace that change, a tipping point is reached—and suddenly, what once felt difficult or impossible becomes the new norm.

So, start today. Create your pocket of magic, nurture it with small actions, and watch as it grows, influencing not just the people beside you, but the entire system. The power to change is already in your hands.

Blog Based on

Make Work Enjoyable: A Path to Fulfillment and Success

In today’s fast-paced world, work often becomes something we dread—a routine obligation we endure to make ends meet. But what if work didn’t have to feel like a burden? What if you could actually enjoy it, finding fulfillment, motivation, and even joy in your daily tasks? It’s not only possible but crucial for a happy and productive life.

In this post, we’ll explore a few simple yet powerful strategies to help you make work enjoyable. Whether you’re an entrepreneur, employee, or freelancer, these tips can be your guide to transforming how you approach your workday.

1. Align Your Work with Your Values

The first step toward enjoying work is ensuring it aligns with your personal values. When your work reflects what you believe in, every task feels more meaningful. Ask yourself: What do I stand for? Whether it’s creativity, helping others, or continuous learning, identify your core values and seek ways to integrate them into your work.

Example: If learning is one of your values, carve out time during your week to upskill or explore new areas related to your field. This can make even mundane tasks feel like a stepping stone to something bigger.

2. Focus on Growth, Not Perfection

Too often, we chase perfection in our tasks, creating unnecessary stress. Instead, shift your focus from perfection to progress. Celebrate small wins and milestones, understanding that growth is the true marker of success. This mindset removes pressure and encourages you to enjoy the learning process.

Pro Tip: Keep a journal to track your progress and accomplishments. Reflecting on what you’ve achieved can help you stay motivated and positive about your work.

3. Create a Positive Work Environment

Your physical and emotional environment significantly affects how you feel about work. A cluttered workspace, negative colleagues, or a lack of organization can drain your energy. Strive to create a work environment that fosters focus, creativity, and positivity.

  • Declutter your space for a clearer mind.
  • Surround yourself with supportive people who uplift and inspire you.
  • Add personal touches to your workspace—photos, plants, or anything that sparks joy.

4. Take Breaks and Prioritize Well-being

Work can be exhausting if we push ourselves too hard without allowing time to recharge. Breaks aren’t a luxury; they’re essential for maintaining high energy levels and creativity. Adopt the Pomodoro Technique or schedule short breaks throughout your day to maintain productivity without burnout.

Moreover, take care of your physical and mental health. Regular exercise, mindfulness, and even short walks can drastically improve how you feel during the workday.

5. Develop Strong Relationships with Colleagues

Work is more enjoyable when you have positive relationships with your coworkers. Take time to connect with the people you work with—whether it’s sharing ideas, collaborating on projects, or simply chatting during breaks. Strong interpersonal bonds create a sense of community, making you feel more engaged and motivated.

Tip: Consider organizing a weekly coffee catch-up with colleagues or participating in team-building activities to strengthen these bonds.

6. Pursue Passion Projects on the Side

Sometimes, you may not have complete control over the nature of your work. However, if you pursue passion projects alongside your main job, you can still find joy and excitement in your career. Working on something that aligns with your passions can inject creativity and energy into your life, making even the most monotonous tasks more bearable.

7. Adopt a Mindful Mindset

One of the most effective ways to enjoy work is through mindfulness—being fully present in each moment without judgment. When we rush through tasks or constantly worry about future deadlines, we miss the opportunity to engage with what we’re doing. Practice mindfulness by focusing on one task at a time, paying attention to the details, and approaching your work with curiosity and openness.

8. Celebrate Wins, Big and Small

No matter how small, celebrating your successes can make work feel rewarding. Recognize your accomplishments and reward yourself in ways that matter—whether it’s treating yourself to something special or simply taking a moment to reflect on your progress.

Final Thoughts Making work enjoyable isn’t about having the perfect job. It’s about changing your perspective, building positive habits, and aligning your work with what matters most to you. When you approach your work with purpose, positivity, and mindfulness, you’ll find that not only does your work become more enjoyable, but you’ll also become more productive, creative, and fulfilled.

In the end, happiness at work isn’t a destination—it’s a journey. With the right mindset and tools, you can find joy in the process and achieve lasting fulfillment in your career.

Blog Based on