Launch Llama & DeepSeek locally
Launch Llama & DeepSeek locally
·
Run llama 3.2 in command line
Install Ollma
1. download ollma installer here
2. install ollma follow the Guide
3. validate with command
% ollama list
NAME ID SIZE MODIFIED
Run llama
% ollama run llama3.2
pulling manifest
pulling dde5aa3fc5ff... 100% ▕████████████████▏ 2.0 GB
pulling 966de95ca8a6... 100% ▕████████████████▏ 1.4 KB
pulling fcc5a6bec9da... 100% ▕████████████████▏ 7.7 KB
pulling a70ff7e570d9... 100% ▕████████████████▏ 6.0 KB
pulling 56bb8bd477a5... 100% ▕████████████████▏ 96 B
pulling 34bb5ab01051... 100% ▕████████████████▏ 561 B
verifying sha256 digest
writing manifest
success
>>> what's happiness?
Happiness is a complex and multifaceted concept that has been debated and
explored by philosophers, psychologists, scientists, and everyday people
for centuries. Here's a comprehensive overview:
**Definition:** Happiness refers to a positive emotional state
characterized by feelings of joy, contentment, satisfaction, and
well-being.
**Theories:**
1. **Hedonic Theory**: This theory proposes that happiness is derived from
the pleasure and pain we experience in life.
2. **Eudaimonic Theory**: This theory suggests that happiness comes from
living a fulfilling life, pursuing one's values, and cultivating
meaningful relationships.
3. **Flow Theory**: This theory describes the state of being fully engaged
and immersed in an activity that provides a sense of enjoyment and
fulfillment.
**Components:**
1. **Positive emotions**: Feelings like joy, gratitude, love, and
excitement contribute to happiness.
2. **Life satisfaction**: Being content with one's life, including aspects
like relationships, career, and personal growth.
3. **Purpose**: Having a clear sense of direction, goals, and values can
provide a feeling of fulfillment.
4. **Social connections**: Nurturing relationships with family, friends,
and community can enhance happiness.
5. **Physical well-being**: Taking care of one's physical health and
engaging in regular exercise can contribute to overall happiness.
**Types of Happiness:**
1. **Epic happiness**: A long-term, deep sense of fulfillment and
satisfaction with life.
2. **Short-term happiness**: A more fleeting feeling of joy or pleasure.
3. **Emotional happiness**: A positive emotional state characterized by
feelings like excitement, euphoria, or elation.
**Factors that Influence Happiness:**
1. **Genetics**: Our genetic makeup can play a role in our predisposition
to experience certain emotions and respond to life events.
2. **Environmental factors**: Upbringing, social environment, cultural
background, and socioeconomic status can impact happiness.
3. **Life experiences**: Traumatic events, major life changes, or
significant relationships can influence happiness levels.
**Cultivating Happiness:**
1. **Practice gratitude**: Reflect on the things you're thankful for each
day.
2. **Engage in activities that bring joy**: Pursue hobbies, passions, and
interests that make you happy.
3. **Build meaningful relationships**: Nurture connections with loved
ones, friends, and community.
4. **Take care of your physical health**: Prioritize exercise, healthy
eating, and adequate sleep.
Remember, happiness is a personal and subjective experience that can vary
greatly from person to person. By understanding the complexities of
happiness and cultivating habits that promote well-being, you can embark
on a journey to increase your own sense of fulfillment and joy.
>>> Send a message (/? for help)
Run llama with Open webUI
Install Open webUI
1. Install conda
1.a. download miniconda installer here
1.b. install miniconda follow the Guide
1.c. validate with command
% conda --version
conda 24.11.1
2. create a clean env
% conda create -n ai python=3.11 -y && conda activate ai
Channels:
- defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): do
...
3. install torch
(ai) % pip install torch
Collecting torch
Downloading torch-2.5.1-cp311-none-macosx_11_0_arm64.whl.metadata (28 kB)
Collecting filelock (from torch)
...
4. install open-webui
(ai) % pip install open-webui
Collecting open-webui
Downloading open_webui-0.5.7-py3-none-any.whl.metadata (18 kB)
Collecting aiocache (from open-webui)
Downloading aiocache-0.12.3-py2.py3-none-any.whl.metadata (8.3 kB)
Collecting aiofiles (from open-webui)
Start Open webUI
(ai) % open-webui serve
Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
Generating a new secret key and saving it to /Users/tiapeng/.webui_secret_key
Loading WEBUI_SECRET_KEY from /Users/tiapeng/.webui_secret_key
/opt/miniconda3/envs/ai/lib/python3.11/site-packages/open_webui
/opt/miniconda3/envs/ai/lib/python3.11/site-packages
/opt/miniconda3/envs/ai/lib/python3.11
Running migrations
Access llama from web browser
open web browser : http://0.0.0.0:8080/
Run DeepSeek-R1 with Open WebUI
Install DeepSeek-R1 in Open WebUI
1. Go to http://0.0.0.0:8080/admin/settings
2. Pull DeepSeek-R1 from ollama.com:
Lanuch DeepSeek-R1
New Chat -> switch model to deepseek-r1
更多推荐
所有评论(0)