https://ollama.com/library/phi4 Ollama Discord GitHub Models [ ] Sign in Download [ ] Models Discord GitHub Download Sign in phi4 Phi-4 is a 14B parameter, state-of-the-art open model from Microsoft. [Phi-4 is a 14B param] Cancel [Save changes] 14b 85.9K Pulls Updated 4 days ago 14b 14b 9.1GB View all 5 Tags [ollama run phi4 ] Updated 4 days ago 4 days ago ac896e5b8b34 * 9.1GB model archphi3 * parameters14.7B * quantizationQ4_K_M 9.1GB params { "stop": [ "<|im_start|>", "<|im_end|>", "<|im_sep|>" ] } 82B template {{- range $i, $_ := .Messages }} {{- $last := eq (len (slice $.Messages $i)) 1 -}} <|im_start|>{{ .R 275B license Microsoft. Copyright (c) Microsoft Corporation. MIT License Permission is hereby granted, free of 1.1kB Readme [dbf19a17-e3fd-46b6-a059-e6b4f1fae59f] Phi-4 is a 14B parameter, state-of-the-art open model built upon a blend of synthetic datasets, data from filtered public domain websites, and acquired academic books and Q&A datasets. Phi-4 benchmark The model underwent a rigorous enhancement and alignment process, incorporating both supervised fine-tuning and direct preference optimization to ensure precise instruction adherence and robust safety measures. Context length: 16k tokens Phi-4 performance eval by Microsoft Primary use cases The model is designed to accelerate research on language models, for use as a building block for generative AI powered features. It provides uses for general purpose AI systems and applications (primarily in English) which require: 1. Memory/compute constrained environments. 2. Latency bound scenarios. 3. Reasoning and logic. Out-of-scope use cases The models are not specifically designed or evaluated for all downstream purposes, thus: 1. Developers should consider common limitations of language models as they select use cases, and evaluate and mitigate for accuracy, safety, and fairness before using within a specific downstream use case, particularly for high-risk scenarios. 2. 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, including the model's focus on English. 3. Nothing contained in this readme should be interpreted as or deemed a restriction or modification to the license the model is released under. Write Preview [ ] [