how to setup llama with ollama on windows

steps 1. download ollama Download from the Ollama official website 2. install 3. set the environment variable OLLAMA_MODELS Ollama default stores downloaded models in C:\Users%username%.ollama\models 4. pull model 1 ollama pull llama3.1 1 2 3 PS C:\Windows\System32> ollama list NAME ID SIZE MODIFIED llama3.1:latest a340353013fd 4.7 GB 30 seconds ago 5. run model 1 ollama run llama3.1 6. show llama work 1 ollama ps reference Introducing Llama 3.

you became

you become what you believe you become what you think you become what you measure you become what you do you become what you repeat you become what you focus on

setup uv for python development

install 1 2 3 4 5 6 7 8 9 # On macOS and Linux curl -LsSf https://astral.sh/uv/install.sh | sh # On Windows powershell -c "irm https://astral.sh/uv/install.ps1 | iex" scoop install uv # With pip (if you must, not the preferred way though) pip install uv set UV_CACHE_DIR By default, the cache is stored in $XDG_CACHE_HOME/uv or $HOME/.cache/uv on Unix and %LOCALAPPDATA%\uv\cache on Windows. setup a new project init 1 2 uv init uv_template cd uv_template the folder structure:

why someone will never improve

context someone will stay in the level they have stayed. They can not levelup themself. The reasons could be as follows. they lost in the unknown-unknown they do not take really effective feedback they are not proactive but always waiting they fear of failure and avoid difficulty they do not take action and iterate they stay in their comfort zone they maybe just start, but they do not make it done

setup python development on windows11

install scoop 1 2 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression update scoop 1 scoop update install pyenv 1 scoop install pyenv setup python install python with pyenv 1 2 3 pyenv install 3.10.0 pyenv local 3.10.0 install poetry 1 pip install poetry configure poetry in: %APPDATA%\pypoetry 1 2 3 4 [virtualenvs] in-project = true virtualenvs.

principles for deep work

Block out any distractions turn off all phone notifications or leave it in another room Distraction is the biggest enemy to deep focus Go for a walk before starting Go out in nature Explore somewhere new Plan it out the night before Set your main 3 priorities Write them down and forget until morning

tips for time management

backgroud Time > Money. tips 1. The 2-Minute Rule If it takes less than 2 minutes, do it now, Yes, even if it’s getting up to stretch Procrastination is for stretching, not tasks! 2. The 5-Minute Rule try it more than 5 minutes even the task is hard. 3. Eat the Frog First Tackle the hardest task first thing in the morning, Frogs taste better when you’re notthinking about them

upgrade ubuntu in WSL

show lsb-release before upgrade 1 2 3 4 5 6 cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS" prepare open file with command is as follows: 1 sudo nano /etc/update-manager/release-upgrades set Prompt=lts is as follows: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 # Default behavior for the release upgrader. [DEFAULT] # Default prompting and upgrade behavior, valid options: # # never - Never check for, or allow upgrading to, a new release.

WSL command: export, import

list before export 1 wsl -l -v 1 2 3 PS C:\Users\mysel> wsl -l -v NAME STATE VERSION * Ubuntu-22.04 Stopped 2 delete cache to reduce disk cost 1 rm -rf /home/ia/.cache/* export 1 2 wsl.exe --export Ubuntu-22.04 I:\wslback\Ubuntu-22.04.bak import 1 wsl.exe --import U22 i:\wsl\u22\ d:\wslback\Ubuntu-22.04.bak run 1 wsl.exe -d U22 list after import 1 wsl -l -v 1 2 3 4 PS C:\Users\mysel> wsl -l -v NAME STATE VERSION * Ubuntu-22.

setup CUDA development environment in WSL2

Install the GCC compiler 1 sudo apt install gcc --fix-missing Install Nvidia CUDA toolkit 1 sudo apt install nvidia-cuda-toolkit check the Driver and CUDA versions 1 2 nvidia-smi nvcc -V Install Python with Mamba 1 2 wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh bash Miniforge3-Linux-x86_64.sh 1 2 3 mamba create -n mycuda jupyterlab -c conda-forge mamba activate mycuda jupyter lab Testing Cuda Search nvidia control panel, and select “Allow access to GPU performance counters to all users”

The Essence of Transurfing

define Transurfing is a philosophy developed by Vadim Zeland that focuses on transforming one’s perception of reality and shaping life experience through the power of thought and intention1. It offers a set of twelve golden rules to guide practitioners in navigating life effortlessly Essence 1. Unification of Mind and Soul Inner Harmony: The unification and coordination of the mind and soul are at the core of Transurfing. The soul represents the deepest desires and truths, while the mind is responsible for logic and reason.

setup python development environment in WSL

requirement 1 2 3 4 5 6 7 8 sudo apt update sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev sudo apt-get install lzma sudo apt-get install liblzma-dev sudo apt-get install libbz2-dev sudo apt-get install python3-tk pyenv what is pyenv pyenv is for a Python version management + virtual environment tool. install pyenv 1 curl https://pyenv.run | bash pyenv

WSL-network

static ip address 1 2 3 4 5 6 7 8 9 10 11 netsh int ipv4 show interfaces Idx Met MTU 状态 名称 --- ---------- ---------- ------------ --------------------------- 1 75 4294967295 connected Loopback Pseudo-Interface 1 10 50 1500 disconnected WLAN 3 35 1500 connected 以太网 14 25 1500 disconnected 本地连接* 1 12 25 1500 disconnected 本地连接* 2

windows terminal

install On windows11, windows terminal has installed as default. If not, Please install windows terminal from Microsoft Store. update PowerShell Get PowerShell Version: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 $PSVersionTable Name Value ---- ----- PSVersion 5.1.22621.2506 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.22621.2506 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 update PowerShell: 1 winget install --id Microsoft.

WSL-101

setup Manual installation steps for older versions of WSL tips ln from mnt to reduce disk space but impact performance 1 ln -s /mnt/e/go ~/go Troubleshooting “WslRegisterDistribution failed with error: 0x80370114” solution: 1 wsl --update refence Troubleshooting Windows Subsystem for Linux 跨 Windows 和 Linux 文件系统工作 Working across Windows and Linux file systems

什么才是中国的问题

背景 背景参考如下链接: 国家安全机关坚决筑牢经济安全屏障 中央经济工作会议在北京举行 习近平出席会议并发表重要讲话 中共中央政治局召开会议 习近平主持

普遍性不一致性问题

普遍性不一致性问题 宏观经济数据与广大人民的体感不一致 国家前途与个人命运不一致 对内的宣传与国外的实际不一致 政府宣传与实际情况不一致 GDP增长与

不要执着于是非对错

背景 生活中杠精总是喜欢辩个输赢,浪费不少时间与精力,除了如果赢的话,有一点情绪价值,实际上也没有具体的收益,再说有赢有有输,输的话,估计会郁

说说过度准备

背景 日常生活与工作时常有一种自己没有准备好的感觉,导致缺少行动,从而没有把握机会。 没有准备好的背后往往是过度准备。 现象 过度准备的常有以下现象

清空自己,超越自我

容器 如果把每个人的大脑都当作容器,那么学习的过程就往这个容器加东西。 这个容器内有哪些?简单罗列如下: 信息与知识 思想与信念 情感与想法 记忆与经历

效率是不够的

背景 人们常常强调到效率的重要性。 效率Efficiency Wiki定义如下: Efficiency is the often measurable ability to avoid wasting materials, energy, efforts, money, and time while performing a task. 效率是不够的 效率是片面的。效

谈谈反思

背景 瑞达利欧提出一个公式: 痛苦+反思=进步。 个人认为这个公式更好: 痛苦+反思+迭代 = 进步。 为什么要反思 在现在这个大环境,学习生活工作如逆水行

什么才是好问题

背景 提问比回答更重要。那么什么才是一个好问题呢? 特点 好问题具有以一下特点: 立足事实与科学。 清晰具体明确。 简洁直击关键。 开放性。 有新意。 有深度

说说延迟满足

背景 张一鸣:人生中一半的问题,都是没有延迟满足感造成的 重要性 心理学有非常著名的棉花糖实验(Stanford Marshmallow Experiment)。棉花糖实

说说一致性

背景 首先说明这里的一致性不是分布式场景下数据的一致性。这里一致性限定于个人的思想行为方面。如一个人每天早上6点起床,一个人无论在什么情况总是

how to inner-peace

定义 内心平静是指一个人的身体、思想、心灵和灵魂在当下的一种自然安静的状态。需要注意的是内心平静只能在当下感受到。 内心平静不仅可以是冥想中体验

关于看见的思考

tips 你的视野决定你的看见的范围 你的位置与视角决定你看见什么 你的注意力决定你从看见中得到什么(注意力其实一个过滤器) 你的想法决定你从看见中看见了