Edit model card

💫 Community Model> Phi-3 mini 4k instruct by Microsoft

👾 LM Studio Community models highlights program. Highlighting new & noteworthy models by the community. Join the conversation on Discord.

Model creator: Microsoft
Original model: Phi-3-mini-4k-instruct
GGUF quantization: provided by bartowski based on llama.cpp release b2717

Model Summary:

Phi-3 Mini 4k instruct is Microsoft's 3.8B parameter instruct tuned model based on their brand new Phi-3 dataset.
Phi-3 models are unique in that a large portion of their training data is sourced from purely synthetic generation from GPT-3.5, with additional filtered publicly available data.
These models were 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:

<s><|system|> You are a helpful AI assistant.<|end|><|user|> {prompt}<|end|><|assistant|>

Use case and examples

Phi-3 is a great model for anyone who wants a powerful but extremely lightweight model. Especially compressed, this model can run on extremely low power hardware while still exceeding models significantly larger in most tasks.

Creativity

image/png

Coding

image/png

Logic solving

image/png

Technical Details

Phi-3 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: 4K tokens

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.

Find more details on the arXiv report here

Special thanks

🙏 Special thanks to Georgi Gerganov and the whole team working on llama.cpp for making all of this possible.

🙏 Special thanks to Kalomaze for his dataset (linked here) 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.

Downloads last month
12,237
GGUF
+2
Inference Examples
Unable to determine this model's library. Check the docs .