Skip to content

Instantly share code, notes, and snippets.

View aiwantaozi's full-sized avatar

michela feng aiwantaozi

  • Rancher Labs, Inc
  • Shenzhen
View GitHub Profile
@aiwantaozi
aiwantaozi / gist:6a795d64caa831a4c9b34fe2c5208fbe
Last active September 30, 2024 07:05
Windows arm python logs
import platform
platform.machine()
platform.architecture()
import sysconfig
print(sysconfig.get_platform())
import os
print(os.environ.get('PROCESSOR_ARCHITEW6432'))
(michelia-gpustack) PS C:\Users\michelia\code\gpustack\gpustack\third_party\bin\gguf-parser> .\gguf-parser-windows-amd64.exe --version
gguf-parser-windows-amd64.exe version v0.11.0
(michelia-gpustack) PS C:\Users\michelia\code\gpustack\gpustack\third_party\bin\gguf-parser> .\gguf-parser-windows-amd64.exe -ms-repo Qwen/Qwen2.5-1.5B-Instruct-GGUF -ms-file qwen2.5-1.5b-instruct-q5_0.gguf
failed to parse GGUF file: open http file: stat: do get request: do request: Get "https://modelscope.cn/models/Qwen/Qwen2.5-1.5B-Instruct-GGUF/resolve/master/qwen2.5-1.5b-instruct-q5_0.gguf": lookup modelscope.cn: context deadline exceeded
(michelia-gpustack) PS C:\Users\michelia\code\gpustack\gpustack\third_party\bin\gguf-parser> .\gguf-parser-windows-arm64.exe -ms-repo Qwen/Qwen2.5-1.5B-Instruct-GGUF -ms-file qwen2.5-1.5b-instruct-q5_0.gguf
failed to parse GGUF file: open http file: stat: do get request: do request: Get "https://modelscope.cn/models/Qwen/Qwen2.5-1.5B-Instruct-GGUF/resolve/master/qwen2.5-1.5b-instruct
@aiwantaozi
aiwantaozi / ami.md
Last active August 10, 2021 16:22
aws eks ami
docker run -d --volumes-from rancher-data \
--restart=unless-stopped \
-p 8080:80 -p 8443:443 \
-e CATTLE_SERVER_VERSION=v2.4.11-ent \
-e CATTLE_AGENT_IMAGE=micheliac/rancher-agent:v2.4-redis-2 \
--privileged \
micheliac/rancher:v2.4-redis-2
@aiwantaozi
aiwantaozi / setup
Last active November 4, 2020 03:21
apt update
apt install zsh -y
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
cp kubectl /usr/local/bin/
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
@aiwantaozi
aiwantaozi / mirror
Last active September 2, 2020 16:32
https://1nj0zren.mirror.aliyuncs.com/
https://docker.mirrors.ustc.edu.cn/
http://f1361db2.m.daocloud.io/
https://registry.docker-cn.com/
export VERSION=$(curl -s https://github.com/kubevirt/containerized-data-importer/releases/latest | grep -o "v[0-9]\.[0-9]*\.[0-9]*")
kubectl create -f https://github.com/kubevirt/containerized-data-importer/releases/download/$VERSION/cdi-operator.yaml
kubectl create -f https://github.com/kubevirt/containerized-data-importer/releases/download/$VERSION/cdi-cr.yaml
DOCKER_OPTS="--registry-mirror=https://registry.docker-cn.com"