[PR #1640] [CLOSED] added logprobs (n_probs) #15905

Closed
opened 2026-04-16 05:11:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1640
Author: @janpf
Created: 12/20/2023
Status: Closed

Base: mainHead: main


📝 Commits (3)

  • 351638a added working n_probs pass through
  • 72ba02c forgot api.md
  • d283c68 Merge branch 'main' of github.com:jmorganca/ollama

📊 Changes

5 files changed (+55 additions, -21 deletions)

View changed files

📝 api/types.go (+22 -7)
📝 docs/api.md (+1 -0)
📝 llm/dyn_ext_server.go (+3 -1)
📝 llm/llama.go (+19 -5)
📝 server/routes.go (+10 -8)

📄 Description

As discussed on discord I implemented the feature. It just passes through the probs from the llamacpp server. Sorry, first time writing Go, might have missed something.

https://discord.com/channels/1128867683291627614/1128867684130508875/1187028494228664340


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1640 **Author:** [@janpf](https://github.com/janpf) **Created:** 12/20/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`351638a`](https://github.com/ollama/ollama/commit/351638ad95391a18e7b6afc10f26d597cf15e4b3) added working n_probs pass through - [`72ba02c`](https://github.com/ollama/ollama/commit/72ba02cac2d94f3e0883784fe09fac7e9ddfae63) forgot api.md - [`d283c68`](https://github.com/ollama/ollama/commit/d283c68142e41873aa92d0766ba2fe10aba11cbf) Merge branch 'main' of github.com:jmorganca/ollama ### 📊 Changes **5 files changed** (+55 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+22 -7) 📝 `docs/api.md` (+1 -0) 📝 `llm/dyn_ext_server.go` (+3 -1) 📝 `llm/llama.go` (+19 -5) 📝 `server/routes.go` (+10 -8) </details> ### 📄 Description As discussed on discord I implemented the feature. It just passes through the probs from the llamacpp server. Sorry, first time writing Go, might have missed something. https://discord.com/channels/1128867683291627614/1128867684130508875/1187028494228664340 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 05:11:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#15905