Baltor Get started

Models

Phi-3.5-MoE-instruct

By microsoft. 41.9 billion parameters, a context window of 131,072 tokens and the licence mit.

Facts

Released
2024-08-17 the day the repository was first published on Hugging Face Hugging Face, read
Licence
mit the licence the model card declares Hugging Face, read
Open weights
Yes the weights are published in this Hugging Face repository Hugging Face, read
Parameters
41.9 billion counted from the safetensors weight files Hugging Face, read
Active parameters
6.6 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
Knowledge cutoff
Unknown
Context window
  • 131,072 tokens the maximum position embeddings in the model configuration model configuration, read
Longest output
Unknown
Tool calling
  • No the chat template in the tokenizer configuration has no place for tool definitions Hugging Face, read
Structured output
Unknown
Reasoning controls
Unknown
Inputs and outputs
text in, text out Hugging Face, read
Good for
No source names a use.

Prices

No source lists a price for this model. It may only run on your own hardware.

Run it on your own hardware

Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.

QuantizationWeightsMemory at 8,192 tokensMemory at 32,768 tokens
IQ2_XXS10.3 GiB12.3 GiB15.3 GiB
IQ2_XS11.4 GiB13.5 GiB16.5 GiB
IQ2_S11.7 GiB13.8 GiB16.8 GiB
IQ2_M12.8 GiB15.0 GiB18.0 GiB
Q2_K14.2 GiB16.4 GiB19.4 GiB
Q2_K_L14.3 GiB16.6 GiB19.6 GiB
IQ3_XS15.9 GiB18.2 GiB21.2 GiB
Q3_K_S16.8 GiB19.2 GiB22.2 GiB
IQ3_M17.1 GiB19.5 GiB22.5 GiB
Q3_K_M18.7 GiB21.1 GiB24.1 GiB
Q3_K_L20.2 GiB22.7 GiB25.7 GiB
Q3_K_XL20.3 GiB22.8 GiB25.8 GiB
IQ4_XS20.8 GiB23.3 GiB26.3 GiB
IQ4_NL22.0 GiB24.6 GiB27.6 GiB
Q4_022.1 GiB24.7 GiB27.7 GiB
Q4_K_S22.2 GiB24.8 GiB27.8 GiB
Q4_K_M23.6 GiB26.3 GiB29.3 GiB
Q4_K_L23.7 GiB26.4 GiB29.4 GiB
Q4_124.4 GiB27.1 GiB30.1 GiB
Q5_K_S26.8 GiB29.7 GiB32.7 GiB
Q5_K_M27.7 GiB30.6 GiB33.6 GiB
Q5_K_L27.8 GiB30.6 GiB33.6 GiB
Q6_K32.0 GiB35.1 GiB38.1 GiB
Q6_K_L32.1 GiB35.2 GiB38.2 GiB
Q8_041.4 GiB45.0 GiB48.0 GiB
F1678.0 GiB83.4 GiB86.4 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/bartowski/Phi-3.5-MoE-instruct-GGUF:Q4_0
  • LM Studio
    lms get bartowski/Phi-3.5-MoE-instruct-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf bartowski/Phi-3.5-MoE-instruct-GGUF:Q4_0 --jinja
  • vLLM
    vllm serve microsoft/Phi-3.5-MoE-instruct
  • SGLang
    sglang serve --model-path microsoft/Phi-3.5-MoE-instruct --port 30000

Use it from your harness

Set up for Ollama with the model hf.co/bartowski/Phi-3.5-MoE-instruct-GGUF:Q4_0. Each endpoint page has the same setup for its own address.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "hf.co/bartowski/Phi-3.5-MoE-instruct-GGUF:Q4_0": {
          "name": "Phi-3.5-MoE-instruct"
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "ollama": {
      "baseUrl": "http://localhost:11434/v1",
      "api": "openai-completions",
      "apiKey": "ollama",
      "models": [
        {
          "id": "hf.co/bartowski/Phi-3.5-MoE-instruct-GGUF:Q4_0"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Put this in a terminal:

codex --oss --local-provider ollama -m hf.co/bartowski/Phi-3.5-MoE-instruct-GGUF:Q4_0
  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Put this in ~/.claude/settings.json, or variables in your shell:

export ANTHROPIC_BASE_URL="http://localhost:11434"
export ANTHROPIC_AUTH_TOKEN="ollama"
export ANTHROPIC_MODEL="hf.co/bartowski/Phi-3.5-MoE-instruct-GGUF:Q4_0"
claude
  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Published results

These are results other people published. Baltor did not run them and does not rank models by them.