alt.freeweights.phi / Phi-3-mini-128k-instruct
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.phiSubject:

Phi-3-mini-128k-instruct

Date: 2026-11-14Commit: f3c06aeSigned: 2DC28CC7B26A283B ✓

Text generation model with 3.8B parameters. Safetensors weights, 7.64 GB in all. Published by microsoft under MIT.

3.8B params7.64GBPhi-3-mini-128k-instructsafetensorspermissive
FactsParams3.8BSize7.64 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get microsoft/Phi-3-mini-128k-instruct
# manifest sha256 a33714781350… · 7.64 GB · 20 files
$ fw verify ./Phi-3-mini-128k-instruct microsoft/Phi-3-mini-128k-instruct
From sourceHosted (signed)microsoft/Phi-3-mini-128k-instructLast check: 2026-11-14 21:17 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
7.64 GB
Weights
7.64 GB (safetensors)
Parameters
3.8B
Formats
safetensors
Task
text generation
License
MIT (permissive)
Files
20, each with a sha256
Publisher
microsoft
Added
2026-11-14
Section
alt.freeweights.phi
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:17 UTCpassed

Model card

From the publisher at commit f3c06ae. Shown as plain text with links; images open at the publisher.

🎉Phi-4: [multimodal-instruct | onnx]; [mini-instruct | onnx]

Model Summary#

The Phi-3-Mini-128K-Instruct is a 3.8 billion-parameter, lightweight, state-of-the-art open model trained using the Phi-3 datasets. This dataset includes both synthetic data and filtered publicly available website data, with an emphasis on high-quality and reasoning-dense properties. The model belongs to the Phi-3 family with the Mini version in two variants 4K and 128K which is the context length (in tokens) that it can support.

After initial training, the model underwent a post-training process that involved supervised fine-tuning and direct preference optimization to enhance its ability to follow instructions and adhere to safety measures. When evaluated against benchmarks that test common sense, language understanding, mathematics, coding, long-term context, and logical reasoning, the Phi-3 Mini-128K-Instruct demonstrated robust and state-of-the-art performance among models with fewer than 13 billion parameters. Resources and Technical Documentation:

🏡 Phi-3 Portal

📰 Phi-3 Microsoft Blog

📖 Phi-3 Technical Report

🛠️ Phi-3 on Azure AI Studio

👩‍🍳 Phi-3 Cookbook

🖥️ Try It

| | Short Context | Long Context |

| :- | :- | :- |

| Mini | 4K [[HF]](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-onnx) ; [[GGUF]](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf) | 128K [[HF]](https://huggingface.co/microsoft/Phi-3-mini-128k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-mini-128k-instruct-onnx)|

| Small | 8K [[HF]](https://huggingface.co/microsoft/Phi-3-small-8k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-small-8k-instruct-onnx-cuda) | 128K [[HF]](https://huggingface.co/microsoft/Phi-3-small-128k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-small-128k-instruct-onnx-cuda)|

| Medium | 4K [[HF]](https://huggingface.co/microsoft/Phi-3-medium-4k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-medium-4k-instruct-onnx-cuda) | 128K [[HF]](https://huggingface.co/microsoft/Phi-3-medium-128k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-medium-128k-instruct-onnx-cuda)|

| Vision | | 128K [[HF]](https://huggingface.co/microsoft/Phi-3-vision-128k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-vision-128k-instruct-onnx-cuda)|

Intended Uses#

Primary use cases

The model is intended for commercial and research use in English. The model provides uses for applications which require:

  1. Memory/compute constrained environments
  2. Latency bound scenarios
  3. Strong reasoning (especially code, math and logic)

Our model is designed to accelerate research on language and multimodal models, for use as a building block for generative AI powered features.

Use case considerations

Our models are not specifically designed or evaluated for all downstream purposes. Developers should consider common limitations of language models as they select use cases, and evaluate and mitigate for accuracy, safety, and fariness before using within a specific downstream use case, particularly for high risk scenarios. Developers should be aware of and adhere to applicable laws or regulations (including privacy, trade compliance laws, etc.) that are relevant to their use case.

Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.

Release Notes#

This is an update over the original instruction-tuned Phi-3-mini release based on valuable customer feedback. The model used additional post-training data leading to substantial gains on long-context understanding, instruction following, and structure output. We also improve multi-turn conversation quality, explicitly support <|system|> tag, and significantly improve reasoning capability. We believe most use cases will benefit from this release, but we encourage users to test in their particular AI applications. We appreciate the enthusiastic adoption of the Phi-3 model family, and continue to welcome all feedback from the community.

These tables below highlights improvements on instruction following, structure output, reasoning, and long-context understanding of the new release on our public and internal benchmark datasets.

| Benchmarks | Original | June 2024 Update |

| :- | :- | :- |

| Instruction Extra Hard | 5.7 | 5.9 |

| Instruction Hard | 5.0 | 5.2 |

| JSON Structure Output | 1.9 | 60.1 |

| XML Structure Output | 47.8 | 52.9 |

| GPQA | 25.9 | 29.7 |

| MMLU | 68.1 | 69.7 |

| Average | 25.7 | 37.3 |

RULER: a retrieval-based benchmark for long context understanding

Model4K8K16K32K64K128KAverage
Original86.778.175.670.358.943.368.8
June 2024 Update92.491.190.887.979.865.684.6

RepoQA: a benchmark for long context code understanding

ModelPythonC++RustJavaTypeScriptAverage
Original272940333332.4
June 2024 Update856372937277

Notes: if users would like to check out the previous version, use the git commit id bb5bf1e4001277a606e11debca0ef80323e5f824. For the model conversion, e.g. GGUF and other formats, we invite the community to experiment with various approaches and share your valuable feedback. Let's innovate together!

How to Use#

Phi-3 Mini-128K-Instruct has been integrated in the development version (4.41.3) of transformers. Until the official version is released through pip, ensure that you are doing one of the following:

  • When loading the model, ensure that trust_remote_code=True is passed as an argument of the from_pretrained() function.
  • Update your local transformers to the development version: pip uninstall -y transformers && pip install git+https://github.com/huggingface/transformers. The previous command is an alternative to cloning and installing from the source.

The current transformers version can be verified with: pip list | grep transformers.

Examples of required packages:

flash_attn==2.5.8
torch==2.3.1
accelerate==0.31.0
transformers==4.41.2

Phi-3 Mini-128K-Instruct is also available in Azure AI Studio

Tokenizer#

Phi-3 Mini-128K-Instruct supports a vocabulary size of up to 32064 tokens. The tokenizer files already provide placeholder tokens that can be used for downstream fine-tuning, but they can also be extended up to the model's vocabulary size.

Chat Format#

Given the nature of the training data, the Phi-3 Mini-128K-Instruct model is best suited for prompts using the chat format as follows. You can provide the prompt as a question with a generic template as follow:

<|system|>
You are a helpful assistant.<|end|>
<|user|>
Question?<|end|>
<|assistant|>

For example:

<|system|>
You are a helpful assistant.<|end|>
<|user|>
How to explain Internet for a medieval knight?<|end|>
<|assistant|> 

where the model generates the text after <|assistant|> . In case of few-shots prompt, the prompt can be formatted as the following:

<|system|>
You are a helpful travel assistant.<|end|>
<|user|>
I am going to Paris, what should I see?<|end|>
<|assistant|>
Paris, the capital of France, is known for its stunning architecture, art museums, historical landmarks, and romantic atmosphere. Here are some of the top attractions to see in Paris:\n\n1. The Eiffel Tower: The iconic Eiffel Tower is one of the most recognizable landmarks in the world and offers breathtaking views of the city.\n2. The Louvre Museum: The Louvre is one of the world's largest and most famous museums, housing an impressive collection of art and artifacts, including the Mona Lisa.\n3. Notre-Dame Cathedral: This beautiful cathedral is one of the most famous landmarks in Paris and is known for its Gothic architecture and stunning stained glass windows.\n\nThese are just a few of the many attractions that Paris has to offer. With so much to see and do, it's no wonder that Paris is one of the most popular tourist destinations in the world."<|end|>
<|user|>
What is so great about #1?<|end|>
<|assistant|>
Sample inference code#

This code snippets show how to get quickly started with running the model on a GPU:

import torch 
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline 

torch.random.manual_seed(0) 
model = AutoModelForCausalLM.from_pretrained( 
    "microsoft/Phi-3-mini-128k-instruct",  
    device_map="cuda",  
    torch_dtype="auto",  
    trust_remote_code=True,  
) 

tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-128k-instruct") 

messages = [ 
    {"role": "system", "content": "You are a helpful AI assistant."}, 
    {"role": "user", "content": "Can you provide ways to eat combinations of bananas and dragonfruits?"}, 
    {"role": "assistant", "content": "Sure! Here are some ways to eat bananas and dragonfruits together: 1. Banana and dragonfruit smoothie: Blend bananas and dragonfruits together with some milk and honey. 2. Banana and dragonfruit salad: Mix sliced bananas and dragonfruits together with some lemon juice and honey."}, 
    {"role": "user", "content": "What about solving an 2x + 3 = 7 equation?"}, 
] 

pipe = pipeline( 
    "text-generation", 
    model=model, 
    tokenizer=tokenizer, 
) 

generation_args = { 
    "max_new_tokens": 500, 
    "return_full_text": False, 
    "temperature": 0.0, 
    "do_sample": False, 
} 

output = pipe(messages, **generation_args) 
print(output[0]['generated_text']) 

Notes: If you want to use flash attention, call _AutoModelForCausalLM.from_pretrained()_ with _attn_implementation="flash_attention_2"_

Responsible AI Considerations#

Like other language models, the Phi series models can potentially behave in ways that are unfair, unreliable, or offensive. Some of the limiting behaviors to be aware of include:

  • Quality of Service: the Phi models are trained primarily on English text. Languages other than English will experience worse performance. English language varieties with less representation in the training data might experience worse performance than standard American English.
  • Representation of Harms & Perpetuation of Stereotypes: These models can over- or under-represent groups of people, erase representation of some groups, or reinforce demeaning or negative stereotypes. Despite safety post-training, these limitations may still be present due to differing levels of representation of different groups or prevalence of examples of negative stereotypes in training data that reflect real-world patterns and societal biases.
  • Inappropriate or Offensive Content: these models may produce other types of inappropriate or offensive content, which may make it inappropriate to deploy for sensitive contexts without additional mitigations that are specific to the use case.
  • Information Reliability: Language models can generate nonsensical content or fabricate content that might sound reasonable but is inaccurate or outdated.
  • Limited Scope for Code: Majority of Phi-3 training data is based in Python and use common packages such as "typing, math, random, collections, datetime, itertools". If the model generates Python scripts that utilize other packages or scripts in other languages, we strongly recommend users manually verify all API uses.

Developers should apply responsible AI best practices and are responsible for ensuring that a specific use case complies with relevant laws and regulations (e.g. privacy, trade, etc.). Important areas for consideration include:

  • Allocation: Models may not be suitable for scenarios that could have consequential impact on legal status or the allocation of resources or life opportunities (ex: housing, employment, credit, etc.) without further assessments and additional debiasing techniques.
  • High-Risk Scenarios: Developers should assess suitability of using models in high-risk scenarios where unfair, unreliable or offensive outputs might be extremely costly or lead to harm. This includes providing advice in sensitive or expert domains where accuracy and reliability are critical (ex: legal or health advice). Additional safeguards should be implemented at the application level according to the deployment context.
  • Misinformation: Models may produce inaccurate information. Developers should follow transparency best practices and inform end-users they are interacting with an AI system. At the application level, developers can build feedback mechanisms and pipelines to ground responses in use-case specific, contextual information, a technique known as Retrieval Augmented Generation (RAG).
  • Generation of Harmful Content: Developers should assess outputs for their context and use available safety classifiers or custom solutions appropriate for their use case.
  • Misuse: Other forms of misuse such as fraud, spam, or malware production may be possible, and developers should ensure that their applications do not violate applicable laws and regulations.

Training#

Model#
  • Architecture: Phi-3 Mini-128K-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.
  • Inputs: Text. It is best suited for prompts using chat format.
  • Context length: 128K tokens
  • GPUs: 512 H100-80G
  • Training time: 10 days
  • Training data: 4.9T tokens
  • Outputs: Generated text in response to the input
  • Dates: Our models were trained between May and June 2024
  • Status: This is a static model trained on an offline dataset with cutoff date October 2023. Future versions of the tuned models may be released as we improve models.
  • Release dates: June, 2024.
Datasets#

Our training data includes a wide variety of sources, totaling 4.9 trillion tokens, and is a combination of

  1. Publicly available documents filtered rigorously for quality, selected high-quality educational data, and code;
  2. 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.);
  3. High quality chat format supervised data covering various topics to reflect human preferences on different aspects such as instruct-following, truthfulness, honesty and helpfulness.

We are focusing on the quality of data that could potentially improve the reasoning ability for the model, and we filter the publicly available documents to contain the correct level of knowledge. As an example, the result of a game in premier league in a particular day might be good training data for frontier models, but we need to remove such information to leave more model capacity for reasoning for the small size models. More details about data can be found in the Phi-3 Technical Report.

Fine-tuning#

A basic example of multi-GPUs supervised fine-tuning (SFT) with TRL and Accelerate modules is provided here.

Benchmarks#

We report the results under completion format for Phi-3-Mini-128K-Instruct on standard open-source benchmarks measuring the model's reasoning ability (both common sense reasoning and logical reasoning). We compare to Mistral-7b-v0.1, Mixtral-8x7b, Gemma 7B, Llama-3-8B-Instruct, and GPT-3.5.

All the reported numbers are produced with the exact same pipeline to ensure that the numbers are comparable. These numbers might differ from other published numbers due to slightly different choices in the evaluation.

As is now standard, we use few-shot prompts to evaluate the models, at temperature 0. The prompts and number of shots are part of a Microsoft internal tool to evaluate language models, and in particular we did no optimization to the pipeline for Phi-3. More specifically, we do not change prompts, pick different few-shot examples, change prompt format, or do any other form of optimization for the model.

The number of k–shot examples is listed per-benchmark.

CategoryBenchmarkPhi-3-Mini-128K-InsGemma-7BMistral-7BMixtral-8x7BLlama-3-8B-InsGPT3.5-Turbo-1106
Popular aggregated benchmarkAGI Eval

5-shot| 39.5 | 42.1 | 35.1 | 45.2 | 42 | 48.4 | | | MMLU 5-shot | 69.7 | 63.6 | 61.7 | 70.5 | 66.5 | 71.4 | | | BigBench Hard 3-shot | 72.1 | 59.6 | 57.3 | 69.7 | 51.5 | 68.3 | | Language Understanding | ANLI 7-shot | 52.3 | 48.7 | 47.1 | 55.2 | 57.3 | 58.1 | | | HellaSwag 5-shot | 70.5 | 49.8 | 58.5 | 70.4 | 71.1 | 78.8 | | Reasoning | ARC Challenge 10-shot | 85.5 | 78.3 | 78.6 | 87.3 | 82.8 | 87.4 | | | BoolQ 0-shot | 77.1 | 66 | 72.2 | 76.6 | 80.9 | 79.1 | | | MedQA 2-shot | 56.4 | 49.6 | 50 | 62.2 | 60.5 | 63.4 | | | OpenBookQA 10-shot | 78.8 | 78.6 | 79.8 | 85.8 | 82.6 | 86 | | | PIQA 5-shot | 80.1 | 78.1 | 77.7 | 86 | 75.7 | 86.6 | | | GPQA 0-shot | 29.7 | 2.9 | 15 | 6.9 | 32.4 | 29.9 | | | Social IQA 5-shot | 74.7 | 65.5 | 74.6 | 75.9 | 73.9 | 68.3 | | | TruthfulQA (MC2) 10-shot | 64.8 | 52.1 | 53 | 60.1 | 63.2 | 67.7 | | | WinoGrande 5-shot | 71.0 | 55.6 | 54.2 | 62 | 65 | 68.8 | | Factual Knowledge | TriviaQA 5-shot | 57.8 | 72.3 | 75.2 | 82.2 | 67.7 | 85.8 | | Math | GSM8K CoTT 8-shot | 85.3 | 59.8 | 46.4 | 64.7 | 77.4 | 78.1 | | Code Generation | HumanEval 0-shot | 60.4 | 34.1 | 28.0 | 37.8 | 60.4 | 62.2 | | | MBPP 3-shot | 70.0 | 51.5 | 50.8 | 60.2 | 67.7 | 77.8 |

| Average | | 66.4 | 56.0 | 56.4 | 64.4 | 65.5 | 70.3 |

Long Context: Phi-3 Mini-128K-Instruct supports 128K context length, therefore the model is capable of several long context tasks including long document/meeting summarization, long document QA.

BenchmarkPhi-3 Mini-128K-InstructMistral-7BMixtral 8x7BLLaMA-3-8B-Instruct
GovReport25.34.920.310.3
QMSum21.915.520.62.9
Qasper41.623.526.68.1
SQuALITY24.114.716.225
SummScreenFD16.89.311.35.1
Average25.913.619.010.3

We take a closer look at different categories across 100 public benchmark datasets at the table below:

CategoryPhi-3-Mini-128K-InstructGemma-7BMistral-7BMixtral 8x7BLlama-3-8B-InstructGPT-3.5-Turbo
Popular aggregated benchmark60.659.456.566.259.967.0
Reasoning69.460.362.868.169.671.7
Language understanding57.557.652.566.163.267.7
Code generation61.045.642.952.756.470.4
Math51.635.825.440.341.152.8
Factual knowledge35.846.749.858.643.163.4
Multilingual56.466.557.466.766.671.0
Robustness61.138.440.651.064.569.3

Overall, the model with only 3.8B-param achieves a similar level of language understanding and reasoning ability as much larger models. However, it is still fundamentally limited by its size for certain tasks. The model simply does not have the capacity to store too much world knowledge, which can be seen for example with low performance on TriviaQA. However, we believe such weakness can be resolved by augmenting Phi-3-Mini with a search engine.

Cross Platform Support#

ONNX runtime now supports Phi-3 mini models across platforms and hardware.

Optimized phi-3 models are also published here in ONNX format, to run with ONNX Runtime on CPU and GPU across devices, including server platforms, Windows, Linux and Mac desktops, and mobile CPUs, with the precision best suited to each of these targets. DirectML GPU acceleration is supported for Windows desktops GPUs (AMD, Intel, and NVIDIA).

Along with DML, ONNX Runtime provides cross platform support for Phi3 mini across a range of devices CPU, GPU, and mobile.

Here are some of the optimized configurations we have added:

  1. ONNX models for int4 DML: Quantized to int4 via AWQ
  2. ONNX model for fp16 CUDA
  3. ONNX model for int4 CUDA: Quantized to int4 via RTN
  4. ONNX model for int4 CPU and Mobile: Quantized to int4 via RTN

Software#

Hardware#

Note that by default, the Phi-3 Mini-128K-Instruct model uses flash attention, which requires certain types of GPU hardware to run. We have tested on the following GPU types:

  • NVIDIA A100
  • NVIDIA A6000
  • NVIDIA H100

If you want to run the model on:

  • NVIDIA V100 or earlier generation GPUs: call AutoModelForCausalLM.from_pretrained() with attn_implementation="eager"
  • Optimized inference on GPU, CPU, and Mobile: use the ONNX models 128K

License#

The model is licensed under the MIT license.

Trademarks#

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

Data Summary#

https://huggingface.co/microsoft/Phi-3-mini-128k-instruct/blob/main/data_summary_card.md

Files

20 files · 7.64 GBWeights 7.64 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 20 files with their sha256
FileSizesha256
.gitattributes1.55 KB88023d0a029a0c409b30c03b689c68605b559f5cefe06376e4a26b38ed795269
CODE_OF_CONDUCT.md453 B539b1bfc810aa62738af95866bfe584d568b0dca71aebed0bd81db0bdaebade3
LICENSE1.10 KBc49419617a6070bcb197cfe272f7007fdec3e790dbb529cb995473bd69c0bd51
NOTICE.md1.81 KBa3386cc7125ec75ed34d4f0a340c47782982095e251d322e01d8ecab22d87ba4
README.md24.0 KBe8ca83c574daf04766f44af8d60699b995fee48128b84f582c240eee28a5ffd1
SECURITY.md2.70 KB891c6326bdd8ea026af23af20fd7dd7167b666f4bd4f63cf22dfdef09d5e78b2
added_tokens.json306 Bf8e5a880c6c563a126d9efacb654e105fc4b66f21e5a540f04436e9487a955fb
config.json3.48 KBaf70441b867458d18788c564ea69894adddaa4de47ab6534391604fc4893f03b
configuration_phi3.py11.2 KBd25f57c0823fcb9753880a25e79ab562b039d6187102ac13e4ff26dd11e9a81c
data_summary_card.md4.62 KB7d7a019ce5fe4953e2ea99dc094b4eda9c2e07ce3fb10e82b0a57aa4bce2e348
generation_config.json181 Bba2f18bfdf91a4bbe63162c572fbf31368d0134e395bea44361e040e88750208
model-00001-of-00002.safetensors4.97 GBfc534bed68dc12e48d1f28d144bfb2239bd1ef4f5d5892d68e9d1f85731b8c12
model-00002-of-00002.safetensors2.67 GBd08786c6cca821d229fd6049c3a691a51bcfa0d29b78289dbc607badd92b2bdc
model.safetensors.index.json16.3 KB6eec78ee2a442445d9d342a7cd9a763da40a49bd91d8611b7db5e9a29c90a428
modeling_phi3.py73.2 KBc9e75b93ed114a3918971224973a8e9dba3d100a50e6363f88c60efb93b18579
sample_finetune.py6.40 KB26a2b05e34b6e1fc519e9b19a0c6773fcd12fa117e52acef7276288eba0a6386
special_tokens_map.json599 B810adc6e6c6ef2f56c285ef930d243358a3a9f05e36a01c5a10bafc6fac4609b
tokenizer.json1.94 MB072ab882d6c7192a42f78790945d16c064691321a73251a4b18f6a380f0fbe39
tokenizer.model500 KB9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
tokenizer_config.json3.44 KBaaa87217a0f61c684cdc8703d3d4030a1f5b1077183610b61a14d7f28addbb58
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
f3c06aed62 pinned now manifest updated, same commit2026-11-14 21:17 UTC20 files · 7.64 GB
f3c06aed622026-11-14 21:17 UTC20 files · 7.64 GB

Use it

$ fw get microsoft/Phi-3-mini-128k-instruct
# manifest sha256 a33714781350… · 7.64 GB · 20 files
$ fw verify ./Phi-3-mini-128k-instruct microsoft/Phi-3-mini-128k-instruct
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/Phi-3-mini-128k-instruct.json --dir ./Phi-3-mini-128k-instruct $ python3 fw.py verify ./Phi-3-mini-128k-instruct ./microsoft__Phi-3-mini-128k-instruct.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Phi-3-mini-128k-instruct --revision f3c06aed622e14ca0abf5115094e4fc9a9948f36 --local-dir ./Phi-3-mini-128k-instruct
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-128k-instruct", revision="f3c06aed622e14ca0abf5115094e4fc9a9948f36") model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-128k-instruct", revision="f3c06aed622e14ca0abf5115094e4fc9a9948f36", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve microsoft/Phi-3-mini-128k-instruct --revision f3c06aed622e14ca0abf5115094e4fc9a9948f36

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
LICENSE
Text sha256
c49419617a6070bcb197cfe272f7007fdec3e790dbb529cb995473bd69c0bd51
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.phiSubject: Phi-3-mini-128k-instructDate: 2026-11-14Commit: f3c06aeSigned: 2DC28CC7B26A283B ✓
Upstream
microsoft/Phi-3-mini-128k-instruct
Pinned commit
f3c06aed622e14ca0abf5115094e4fc9a9948f36
Manifest
Phi-3-mini-128k-instruct.json · .minisig
Manifest sha256
a33714781350443d02b5a3b1c35c13eb337319ef16e0629565f524354cf68bd2
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:17 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/Phi-3-mini-128k-instruct.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/Phi-3-mini-128k-instruct.json.minisig $ minisign -Vm Phi-3-mini-128k-instruct.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

3 models in the catalog name this one as their parent.

Quantizations
3
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Phi-3-mini-128k-instruct
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Phi-3-mini-128k-instruct.json. Provenance. Takedown history: none.

Variants

3 quantized or adapter builds of Phi-3-mini-128k-instruct. Each has its own license check and page.

From: BAAI <huggingface.co/BAAI>Subject: bunny-phi-2-siglip-lora
From: microsoft <huggingface.co/microsoft>Subject: MediPhi
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Clinical
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Guidelines
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Instruct
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-MedCode