run llama-7b model

download llama.cpp git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp make download model mkdir models/7B cd models/7B wget https://hu

iohannes iohannes Published on 2025-03-18

Run Ubuntu Linux in Docker with Desktop Environment and VNC

remote into ubuntu docker install ubuntu docker pull dorowu/ubuntu-desktop-lxde-vnc:focal-lxqt docker run -d –name ubuntu_desktop -v /dev/shm:/dev/shm

iohannes iohannes Published on 2025-03-18

run llama2 local

start gpu docker container docker run -itd -v /home/adlong/llama:/root/llama -p 8000:8000 -p 8001:8001 -p 8002:22 --name llama2 --gpus all ubuntu clo

iohannes iohannes Published on 2025-03-18

run llama.cpp with hugging face model

run docker container docker run -itd -v /home/adlong/llm_models:/root/models -p 8000:8000 -p 8001:8001 -p 8002:22 --name llama_server --gpus all ubunt

iohannes iohannes Published on 2025-03-18

ros常见命令和功能

roscore roscore is a collection of nodes and programs that are pre-requisites of a ROS-based system. You must have a roscore running in order for ROS

iohannes iohannes Published on 2025-03-18

rust模块

定义模块 顶层模块 src/main.rs mod controller; mod router; fn main() { // do something } 模块对应文件夹或文件 |— src |— co

iohannes iohannes Published on 2025-03-18

select、poll、epoll区别

select、poll、epoll select 操作方式是遍历, 底层实现是数组,IO效率是每次调用都进行线性遍历,时间复杂度为O(n),最大连接数是1024(x86)或 2048

iohannes iohannes Published on 2025-03-18
c++

stl 常见容器

vector array 数组支持随机访问,根据下标随机访问的时间复杂度为O(1) vector 连续的内存空间来存储元素,大小可以改变。swap 操作是将引用进行ߝ

iohannes iohannes Published on 2025-03-18

sql 统计历史不同汇率成交

订单表 select * from sales order by date; date currency val 2022-01-01 rmb 10.00 2022-01-01 hk 100.00 2022-02-02

iohannes iohannes Published on 2025-03-18

special docker container run gui application

allow xhost xhost +local:* run container sudo docker run -it --name gui_ubuntu --net=host -e DISPLAY -v /tmp/.X11-unix ubuntu:18.04 bash apt update a

iohannes iohannes Published on 2025-03-18
Previous Next