Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ollama phi4 context size defaults #23036

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Add ollama phi4 context size defaults #23036

merged 1 commit into from
Jan 15, 2025

Conversation

notpeter
Copy link
Member

Add phi4 maximum context length (128K).
By default this clamps to 16384 but if you have enough video memory you can set it higher or connect to a non-local machine via settings:

"language_models": {
  "ollama": {
    "api_url": "http://localhost:11434",
    "available_models": [
      {
        "name": "phi4",
        "display_name": "Phi4 64K",
         "max_tokens": 65536
      }
    ]
  }
}

Release Notes:

  • Improve support for Phi4 with ollama.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 12, 2025
@notpeter notpeter enabled auto-merge January 12, 2025 18:28
@notpeter notpeter added this pull request to the merge queue Jan 15, 2025
@ConradIrwin ConradIrwin removed this pull request from the merge queue due to the queue being cleared Jan 15, 2025
@SomeoneToIgnore SomeoneToIgnore merged commit 67525cc into main Jan 15, 2025
13 checks passed
@SomeoneToIgnore SomeoneToIgnore deleted the ollama_phi4 branch January 15, 2025 15:44
notpeter added a commit that referenced this pull request Jan 15, 2025
Add `phi4` maximum context length (128K).
By default this clamps to `16384` but if you have enough video memory
you can set it higher or connect to a non-local machine via settings:

```json
"language_models": {
  "ollama": {
    "api_url": "http://localhost:11434",
    "available_models": [
      {
        "name": "phi4",
        "display_name": "Phi4 64K",
         "max_tokens": 65536
      }
    ]
  }
}
```

Release Notes:

- Improve support for Phi4 with ollama.
@notpeter notpeter self-assigned this Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants