I am running my NAS at home, and it has the public IP, but the IP will be changed randomly, so I need to bind it to the subdomain in the Cloudflare, so I can visit it even the IP …
Fine tune llama2 on Mac
Prepare
- Download llama2 gguf format model
- https://huggingface.co/TheBloke/Llama-2-7B-GGUF
- and put it into “./models/llama-2–7b/”
ls -lht models/llama-2-7b
total 7997112
-rw-r--r--@ 1 user staff 3.8G Jan 4 13:12 llama-2-7b.Q4_K_M.gguf
- 2. Build the llama.cpp
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make -j
- 3. Prepare the
Cryptography 1
I am start to learn the cryptography, so I will note the Cryptography journey in my blog
Online resources
Some Cryptography online courses
Online hack platform
China Cryptography Cipher
SM4, one China Block Cipher
…ShāngMì 4 (
Whisper.cpp Playground
Download and try the demo
Here is the github of whisper.cpp
make base.en
make medium
make large-v3
/main -m models/ggml-base.en.bin -f samples/jfk.wav
For Chinese Support
- https://github.com/ggerganov/whisper.cpp/issues/1531
- https://wulu.zone/posts/whisper-cn
./main -m ./models/ggml-medium.bin -t 8 --step 500 --length 5000 --prompt "请用简体中文输出" -l
… My server is flagged as hacked
Background
8 security vendors flagged this URL as malicious
tcpdump to figure out the force ssh attack from the server
sudo tcpdump -vv -i eth0 src 165.227.xx.xx and not dst 101.230.xx.xx port 22 -X -n
So here we need …
conda
conda create --name myenv310 python=3.10
environment location: /Users/xxxx/miniconda3/envs/myenv310
added / updated specs:
- python=3.10
conda activate myenv310
conda deactivate
conda env list
conda config --add channels conda-forge
conda config --set channel_priority strict
conda env create -f environment-no-nvidia.yml
conda activate stylegan3
… ChatGPT-AutoSummaryBot
Repo
- https://github.com/pjq/ChatGPT-SummaryBot
Most of the code is generated by ChatGPT, all you need is to provide the appropriate prompt message, and debug, even this document is also generated by ChatGPT
This is a Python script for fetching documents from the …
GPG
Install GPG
brew install --cask gpg-suite
Generate key
gpg --full-gen-key
gpg (GnuPG/MacGPG2) 2.2.34; Copyright (C) 2022 g10 Code GmbH
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by
… 静·默
突然觉得任何词中间加一个点,都别有韵味。
作为文盲人,引一首诗,附庸风雅,时也。
静坐西山深有益,等闲人事稀逢。
《临江仙 西山静坐》
终朝饭饱恣疏慵。
养成清静体,化出主人公。
三十年来都乱觅,如今认证真容。
狂情灭尽法皆空。
本来无一事,刚恁费千功。
尤记得“明日复明日,明日何其多”,如今是日日复一日,日日何其多。
一纸空文,斩断万千思绪,自绝一日三餐,黄梁终是梦。
两肚愁肠,愁煞世间愤懑,望尽春夏秋天,画地日为牢。
终了,欲说还休,却道天凉好个秋!
好一个静·默
…
小朋友说“春天在哪里”
小朋友说“春天在哪里”
我说2022年的上海没有春天
小朋友说“为什么2022年的上海没有春天”
我说我不知道
小朋友说“你为什么不知道”
我说可能是外面有病毒吧
小朋友说“为什么外面有病毒就没有春天”
我说我也不知道
到底是谁偷走了小孩子2022年的春天?…