Meli's links
Nuage de tags
Mur d'images
Quotidien
Flux RSS
  • Flux RSS
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filtres

Liens par page

  • 20 links
  • 50 links
  • 100 links

Filtres

Untagged links
6 résultats taggé tuto  ✕
WireGuard - Debian Wiki https://wiki.debian.org/WireGuard
04/12/2025 21:38:34
QRCode
archive.org

https://www.it-connect.fr/mise-en-place-de-wireguard-vpn-sur-debian-11/

wireguard tuto
Découvrez les modules CPAN et le langage PERL - Quick-Tutoriel.com https://quick-tutoriel.com/decouvrez-le-langage-perl-et-les-modules-cpan/
13/04/2025 07:12:34
QRCode
archive.org
thumbnail

Avec cet article sur PERL, j'étoffe un peu plus la rubrique Supervision Réseau de Quick-tutoriel, qu

perl dev git tuto linux sysadmin bash script cpan perlmod
vkc via PeerTube - PeerTube.wtf https://peertube.wtf/a/vkc@tinkerbetter.tube/video-channels
16/03/2025 09:07:25
QRCode
archive.org

I manage the server. I post on my PeerTube at https://tinkerbetter.tube/c/veronicaexplains/.

linux tuto video peertube veronicaexplains LinuxGirl
Day 1 (Advent of Code 2022) https://fasterthanli.me/series/advent-of-code-2022/part-1
11/02/2025 14:54:08
QRCode
archive.org
thumbnail
rust dev advent-of-code error-handling iterators Tuto
Running Alpaca.cpp (LLaMA) on Android phone using Termux · Ivon's Blog https://ivonblog.com/en-us/posts/alpaca-cpp-termux-android/
09/02/2025 21:42:07
QRCode
archive.org
thumbnail

中文版

Running LLaMA, a ChapGPT-like large language model released by Meta on Android phone locally.

I use antimatter15/alpaca.cpp, which is forked from ggerganov/llama.cpp.

Alpaca is the fine-tuned version of LLaMA which was released by Stanford University. The alpaca.cpp could run on CPU only mode.

1. Environment

#

  • Device:Xiaomi Pocophone F1
  • Android 13
  • SoC:Qualcomm Snapdragon 845
  • RAM: 6GB

2. Compile alpaca.cpp

#

Please install Termux first. Then choose one methods from below to compile Alpaca.cpp on your device.

Alpaca requires at leasts 4GB of RAM to run. If your device has RAM >= 8GB, you could run Alpaca directly in Termux or proot-distro (proot is slower). Devices with RAM < 8GB are not enough to run Alpaca 7B because there are always processes running in the background on Android OS. Termux may crash immediately on these devices.

Or you could root your phone and setup a chroot environment. Then mount a swapfile to get more RAM on your device.

2.1. Compile Alpaca.app in Termux

#

  1. Install these packages
pkg install clang wget git cmake
  1. Download Android NDK
wget https://github.com/lzhiyong/termux-ndk/releases/download/ndk-r23/android-ndk-r23c-aarch64.zip
unzip android-ndk-r23c-aarch64.zip
export NDK=~/android-ndk-r23c-aarch64

https://github.com/lzhiyong/termux-ndk/releases

  1. Complile Alpaca.cpp and download the model
git clone https://github.com/rupeshs/alpaca.cpp.git
cd alpaca.cpp
mkdir build-android
cd build-android
cmake -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-23 -DCMAKE_C_FLAGS=-march=armv8.4a+dotprod ..
make -j8
wget https://huggingface.co/Sosaka/Alpaca-native-4bit-ggml/resolve/main/ggml-alpaca-7b-q4.bin
  1. Run it
./chat

2.2. In Chroot

#

  1. Install Chroot Ubuntu and log in to Ubuntu.

  2. If your devices has RAM lower than 8GB, it is recommened to mount a SWAP file.

dd if=/dev/zero of=/swapfile bs=1M count=8192 status=progress
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile
  1. Install dependencies, compile the program, and download the model.
apt install build-essential wget
git clone https://github.com/antimatter15/alpaca.cpp
cd alpaca.cpp
make chat
wget https://huggingface.co/Sosaka/Alpaca-native-4bit-ggml/resolve/main/ggml-alpaca-7b-q4.bin
  1. Run it.
./chat

2.3. In Proot

#

  1. Install Proot Debian and log in to Debian.
proot-distro login debian --shared-tmp
  1. Install dependencies, compile the program, and download the model.
apt install build-essential wget
git clone https://github.com/antimatter15/alpaca.cpp
cd alpaca.cpp
make chat
wget https://huggingface.co/Sosaka/Alpaca-native-4bit-ggml/resolve/main/ggml-alpaca-7b-q4.bin
  1. Run it.
./chat

3. Usage

#

  1. Now you can start chattig with Alpaca.

  2. It will takes Alpaca 30 seconds to start answering your questions.

  3. What can you do with Termux? Well, this looks like the answers from Termux official website :)

](https://links.melissandre.dev//en-us/posts/minecraft-java-edition-termux-proot/)

AI IA termux android git Tuto
Deviner qui est l'auteur d'un message grâce au Machine Learning • Tribune • Zeste de Savoir https://zestedesavoir.com/billets/3177/deviner-qui-est-lauteur-dun-message-grace-au-machine-learning/
06/02/2025 06:37:24
QRCode
archive.org

On va essayer de savoir qui je suis

python ai pdf Creative-Commons Tuto IA
263 links
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service par la communauté Shaarli - Theme by kalvn