Run phi-v2 Mac | step by step | m1 | rust | cargo | candle

  Рет қаралды 1,129

ProgrammingHut

ProgrammingHut

Күн бұрын

Hi everyone, I recently saw microsoft's new phi v2 model. and instantly I went out on internet looking on how to run it on my mac m1. After few hours on internet I found solution and I summed up everything into 5 minute video on installing and running phi-v2 on your machine locally.
It is about running quantized gguf model on machine with metal support.
Command 1: "curl sh.rustup.rs -sSf | sh"
Command 2: "git clone github.com/hug..."
Command 3: "cargo build --example phi --release --features metal"
Command 4: "./phi --prompt "hello, how are you? Assistant: " --model 2 --quantized"
Instruction Format for phi-v2
Instruct: {prompt}
Output:
Follow video step by step along with above mentioned commands.
Connect with me:
🔹 FaceBook : / proogramminghub
🔹 Twitter : / programming_hut
🔹 Github : github.com/Paw...
🔹 Discord : / discord
🔹 LinkedIn : / programminghut
🔹 KZbin : / programminghutofficial
phi,phi v2,phi-2,install,mac os,gguf,quantized,metal,rust,cargo,step by step,mac m1,mac,m2,arm,silicon

Пікірлер: 7
@alexpro5778
@alexpro5778 9 ай бұрын
Also, it's not clear how to load another model. For example, I want to use a 8-bit quantized model instead of 4-bit.
@alexpro5778
@alexpro5778 9 ай бұрын
Hi bro. Thank you for the detailed instruction. It was very helpful. Can you please explain how to run this model similar to LLAMA CPP in the instruct (chat) mode? It would very useful. And one more time, thank you. There is not enough information on the subject.
@programming_hut
@programming_hut 9 ай бұрын
Llama.cpp has support for phi-2 now! Check out there pull request section I think it is not merged yet. Also there is separate branch with name of gg/phi-2 you can checkout that to run phi on llama.cpp
@alexpro5778
@alexpro5778 9 ай бұрын
@@programming_hut Thank you for the suggestion. Yes, I managed to run the model with LLAMA CPP, but the output is a garbage. Unfortunately ;-(
@programming_hut
@programming_hut 9 ай бұрын
i ran it this morning, it was working fine! Try using proper prompt, or use ./server
@somalingakoushikmatheeswar
@somalingakoushikmatheeswar 8 ай бұрын
Hi I am getting an error while running the PHI command: invalid peer certificate: UnknownIssuer
@subhangmokkarala
@subhangmokkarala 9 ай бұрын
hi bro discord link expired
drag gan on custom images | google colab | drag your gan
9:53
ProgrammingHut
Рет қаралды 11 М.
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 51 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 75 МЛН
Proving Performance - FOSDEM 2024 - Rust Dev Room
40:46
Nikolai Vazquez
Рет қаралды 3,8 М.
Running LLMs on a Mac with llama.cpp
3:47
Learn Data with Mark
Рет қаралды 7 М.
How Fine Tuning an AI Chatbot Works
7:19
Stammerai
Рет қаралды 1,3 М.
Running Mixtral on your machine with Ollama
6:27
Learn Data with Mark
Рет қаралды 6 М.
Get started with Microsoft's Phi-2 on your laptop
10:17
Airtrain AI
Рет қаралды 4,6 М.
iPhone 16 Ultimate Battery Test!
13:25
Mrwhosetheboss
Рет қаралды 2,4 МЛН
Deploy yolo model android | studio | yolo v5 | nms | java | tflite
20:06
Implementing a transformer with candle + Rust - (Part 1, Input Embeddings)
24:09
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 297 М.
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12