From 52d55c89832527daf640d87dc01a150dda4b7b75 Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Sun, 5 Jul 2026 22:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: lmstudio-community/Phi-3.1-mini-128k-instruct-GGUF Source: Original Platform --- .gitattributes | 42 ++++++++++++++ Phi-3.1-mini-128k-instruct-IQ3_M.gguf | 3 + Phi-3.1-mini-128k-instruct-IQ4_XS.gguf | 3 + Phi-3.1-mini-128k-instruct-Q3_K_L.gguf | 3 + Phi-3.1-mini-128k-instruct-Q4_K_M.gguf | 3 + Phi-3.1-mini-128k-instruct-Q5_K_M.gguf | 3 + Phi-3.1-mini-128k-instruct-Q6_K.gguf | 3 + Phi-3.1-mini-128k-instruct-Q8_0.gguf | 3 + README.md | 80 ++++++++++++++++++++++++++ configuration.json | 1 + 10 files changed, 144 insertions(+) create mode 100644 .gitattributes create mode 100644 Phi-3.1-mini-128k-instruct-IQ3_M.gguf create mode 100644 Phi-3.1-mini-128k-instruct-IQ4_XS.gguf create mode 100644 Phi-3.1-mini-128k-instruct-Q3_K_L.gguf create mode 100644 Phi-3.1-mini-128k-instruct-Q4_K_M.gguf create mode 100644 Phi-3.1-mini-128k-instruct-Q5_K_M.gguf create mode 100644 Phi-3.1-mini-128k-instruct-Q6_K.gguf create mode 100644 Phi-3.1-mini-128k-instruct-Q8_0.gguf create mode 100644 README.md create mode 100644 configuration.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..371af0b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,42 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +Phi-3.1-mini-128k-instruct-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text +Phi-3.1-mini-128k-instruct-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text +Phi-3.1-mini-128k-instruct-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text +Phi-3.1-mini-128k-instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text +Phi-3.1-mini-128k-instruct-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text +Phi-3.1-mini-128k-instruct-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text +Phi-3.1-mini-128k-instruct-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/Phi-3.1-mini-128k-instruct-IQ3_M.gguf b/Phi-3.1-mini-128k-instruct-IQ3_M.gguf new file mode 100644 index 0000000..84f5624 --- /dev/null +++ b/Phi-3.1-mini-128k-instruct-IQ3_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17f6111be353fb682cd8d06debf47ff50e77bce5fea376eca2f5847d2c36e357 +size 1855600384 diff --git a/Phi-3.1-mini-128k-instruct-IQ4_XS.gguf b/Phi-3.1-mini-128k-instruct-IQ4_XS.gguf new file mode 100644 index 0000000..762c47c --- /dev/null +++ b/Phi-3.1-mini-128k-instruct-IQ4_XS.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8261ac060034230a22c37e7387b15a45ead5043e6cc2f3fcf30eb960ade19054 +size 2059853056 diff --git a/Phi-3.1-mini-128k-instruct-Q3_K_L.gguf b/Phi-3.1-mini-128k-instruct-Q3_K_L.gguf new file mode 100644 index 0000000..574d3d1 --- /dev/null +++ b/Phi-3.1-mini-128k-instruct-Q3_K_L.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f0df14d5474a0e71648d950efc048582b7c708becdd960754314b81af23b594 +size 2087597824 diff --git a/Phi-3.1-mini-128k-instruct-Q4_K_M.gguf b/Phi-3.1-mini-128k-instruct-Q4_K_M.gguf new file mode 100644 index 0000000..a1765a8 --- /dev/null +++ b/Phi-3.1-mini-128k-instruct-Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dde15f8155119acc4cab4ed4cdcfe2d511f713e4b3fc5c96047634dd626f6cc3 +size 2393232640 diff --git a/Phi-3.1-mini-128k-instruct-Q5_K_M.gguf b/Phi-3.1-mini-128k-instruct-Q5_K_M.gguf new file mode 100644 index 0000000..2021e71 --- /dev/null +++ b/Phi-3.1-mini-128k-instruct-Q5_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d76d7a58a4c9ac0f6d721ce53ff39a606814e2ee9f6d1c1529d0d7fc0ca8226 +size 2815276288 diff --git a/Phi-3.1-mini-128k-instruct-Q6_K.gguf b/Phi-3.1-mini-128k-instruct-Q6_K.gguf new file mode 100644 index 0000000..226c5bb --- /dev/null +++ b/Phi-3.1-mini-128k-instruct-Q6_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6613da53d5385540ce09ac184be5380fcde53c733373dfb62b584ba2263773f +size 3135853312 diff --git a/Phi-3.1-mini-128k-instruct-Q8_0.gguf b/Phi-3.1-mini-128k-instruct-Q8_0.gguf new file mode 100644 index 0000000..6172452 --- /dev/null +++ b/Phi-3.1-mini-128k-instruct-Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbee37becf96f3cb70f902c74dd7eda67fc9a6ee2f6defa370f8e9e038cd3a23 +size 4061222656 diff --git a/README.md b/README.md new file mode 100644 index 0000000..43d617e --- /dev/null +++ b/README.md @@ -0,0 +1,80 @@ +--- +license: mit +license_link: https://huggingface.co/microsoft/Phi-3-mini-128k-instruct/resolve/main/LICENSE +language: +- en +pipeline_tag: text-generation +tags: +- nlp +- code +inference: + parameters: + temperature: 0.0 +widget: + - messages: + - role: user + content: Can you provide ways to eat combinations of bananas and dragonfruits? +quantized_by: bartowski +lm_studio: + param_count: 4b + use_case: chat + release_date: 02-07-2024 + model_creator: Microsoft + prompt_template: Phi 3 + system_prompt: You are a helpful AI assistant. + base_model: Phi + original_repo: microsoft/Phi-3-mini-128k-instruct +base_model: microsoft/Phi-3-mini-128k-instruct +--- +## 💫 Community Model> Phi-3.1 mini 128k instruct by Microsoft + +*👾 [LM Studio](https://lmstudio.ai) Community models highlights program. Highlighting new & noteworthy models by the community. Join the conversation on [Discord](https://discord.gg/aPQfnNkxGC)*. + +**Model creator:** [Microsoft](https://huggingface.co/microsoft)
+**Original model**: [Phi-3-mini-128k-instruct](https://huggingface.co/microsoft/Phi-3-mini-128k-instruct)
+**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b3460](https://github.com/ggerganov/llama.cpp/releases/tag/b3460)
+ +## Model Summary: +Though the name was left as Phi-3 in Microsoft's release, this is NOT the same model as before! It features massive improvements across a range of benchmarks, so we've renamed it as Phi-3.1 for clarity.
+This update used additional post-training data which improved instruction following, structuring output, multi-turn conversations, explicitly support <|system|> tag, and significantly improve reasoning capability.
+ +This model is tuned with common sense, language understanding, math, code, long conteext, and logical reasoning as the primary focus. + +## Prompt template: + +Choose the `Phi 3` preset in your LM Studio. + +Under the hood, the model will see a prompt that's formatted like so: + +``` +<|system|> +You are a helpful AI assistant.<|end|> +<|user|> +{prompt}<|end|> +<|assistant|> +``` + +## Technical Details + +Phi-3.1 Mini-4K-Instruct has 3.8B parameters and is a dense decoder-only Transformer model. The model is fine-tuned with Supervised fine-tuning (SFT) and Direct Preference Optimization (DPO) to ensure alignment with human preferences and safety guidlines. + +Context length: 128K tokens through Microsoft's longrope technique + +This model was trained on 3.3T tokens of data and is a combination: + - publicly available documents that were filtered rigorously for quality, selected high-quality educational data, and code + - Newly created synthetic, “textbook-like” data for the purpose of teaching math, coding, common sense reasoning, general knowledge of the world (science, daily activities, theory of mind, etc.) + - High quality chat format supervised data covering various topics to reflect human preferences on different aspects such as instruct-following, truthfulness, honesty and helpfulness. + +Phi 3.1 features additional tuning based on customer feedback, emphasizing instruction following, structure output, multi-turn conversation quality, explicitly support <|system|> tag, and significantly improve reasoning capability. + +Find more details on the arXiv report [here](https://arxiv.org/abs/2404.14219) + +## Special thanks + +🙏 Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible. + +🙏 Special thanks to [Kalomaze](https://github.com/kalomaze) for his dataset (linked [here](https://github.com/ggerganov/llama.cpp/discussions/5263)) that was used for calculating the imatrix for the IQ1_M and IQ2_XS quants, which makes them usable even at their tiny size! + +## Disclaimers + +LM Studio is not the creator, originator, or owner of any Model featured in the Community Model Program. Each Community Model is created and provided by third parties. LM Studio does not endorse, support, represent or guarantee the completeness, truthfulness, accuracy, or reliability of any Community Model. You understand that Community Models can produce content that might be offensive, harmful, inaccurate or otherwise inappropriate, or deceptive. Each Community Model is the sole responsibility of the person or entity who originated such Model. LM Studio may not monitor or control the Community Models and cannot, and does not, take responsibility for any such Model. LM Studio disclaims all warranties or guarantees about the accuracy, reliability or benefits of the Community Models. LM Studio further disclaims any warranty that the Community Model will meet your requirements, be secure, uninterrupted or available at any time or location, or error-free, viruses-free, or that any errors will be corrected, or otherwise. You will be solely responsible for any damage resulting from your use of or access to the Community Models, your downloading of any Community Model, or use of any other Community Model provided by or through LM Studio. diff --git a/configuration.json b/configuration.json new file mode 100644 index 0000000..bbeeda1 --- /dev/null +++ b/configuration.json @@ -0,0 +1 @@ +{"framework": "pytorch", "task": "text-generation", "allow_remote": true} \ No newline at end of file