Views
No views yet
microsoft/Phi-3-mini-4k-instruct. It is tailored specifically for chemical engineering simulation environments (DWSIM and MATLAB) and optimized for Retrieval-Augmented Generation (RAG) pipelines.bruhpika/ChemEng_finetuning-mainmicrosoft/Phi-3-mini-4k-instructDWSIM and MATLAB).| File Name | Quantization | Recommended For | VRAM / RAM Required | Speed vs. Quality |
|---|---|---|---|---|
cheme-phi3-q4_k_m.gguf | Q4_K_M | Recommended Default for standard laptops / consumer GPUs | ~3.5 GB | Balanced high speed & good quality |
cheme-phi3-q5_k_m.gguf | Q5_K_M | Users wanting slightly higher accuracy with moderate RAM | ~4.2 GB | Slight speed trade-off for better precision |
cheme-phi3-q8_0.gguf | Q8_0 | High-fidelity extraction & strict numerical simulation QA | ~6.0 GB | Near F16 quality, higher VRAM usage |
cheme-phi3-f16.gguf | F16 | Uncompressed reference weights / development | ~7.6 GB | Maximum quality, highest memory consumption |
llama-server / llama.cpp (Recommended)llama-server:1# Launch server on port 8081 with Q4_K_M weights
2llama-server.exe -m cheme-phi3-q4_k_m.gguf -c 4096 --port 8081 -ngl 999curl:1curl http://127.0.0.1:8081/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "cheme-phi3",
5 "messages": [
6 {"role": "system", "content": "You are a chemical engineering assistant knowledgeable in DWSIM and MATLAB."},
7 {"role": "user", "content": "How do I configure the parameters for a Flash Drum in DWSIM?"}
8 ],
9 "temperature": 0.2
10 }'Modelfile in the same directory as the .gguf file:1FROM ./cheme-phi3-q4_k_m.gguf
2PARAMETER temperature 0.2
3PARAMETER num_ctx 4096
4SYSTEM "You are an expert chemical engineering AI assistant trained in DWSIM and MATLAB workflows."1ollama create cheme-phi3 -f Modelfile
2ollama run cheme-phi3microsoft/Phi-3-mini-4k-instruct and exported using llama.cpp.1# 1. Run the recommended Q8_0 model (Best balance of speed/accuracy, ~4.06 GB)
2ollama run hf.co/bruhpika/cheme-phi3-GGUF:Q8_0
3
4# 2. Run the balanced Q5_K_M model (Excellent speed/accuracy, ~2.76 GB)
5ollama run hf.co/bruhpika/cheme-phi3-GGUF:Q5_K_M
6
7# 3. Run the ultra-compact Q4_K_M model (For older hardware/constrained devices, ~2.40 GB)
8ollama run hf.co/bruhpika/cheme-phi3-GGUF:Q4_K_M
9
10# 4. Run the unquantized F16 base model (Maximum fidelity, requires ≥12GB RAM, ~7.64 GB)
11ollama run hf.co/bruhpika/cheme-phi3-GGUF:F16