helloadhavan/github_issues huggingface dataset:
Repository: ggml-org/llama.cpp
Pull request: CUDA: fix kernel selection logic for tile FA

Fixes https://github.com/ggml-org/llama.cpp/issues/19652 .

The problem is that the kernel selection logic is slightly wrong so the host code runs into an abort.

Changed files:
filename: ggml/src/ggml-cuda/fattn-tile.cuh
patch: @@ -1186,8 +1186,10 @@ static void launch_fattn_tile_switch_ncols2(ggml_backend_cuda_context & ctx, ggm
     GGML_ASSERT(Q->ne[2] % K->ne[2] == 0);
     const int gqa_ratio = Q->ne[2] / K->ne[2];
 
+    // On NVIDIA (Pascal and older) the GQA optimizations seem to be detrimental in some cases.
+    // However, for DKQ == 576, DV == 512 only the kernel variant with GQA optimizations is implemented.
     const bool nvidia = GGML_CUDA_CC_IS_NVIDIA(ggml_cuda_info().devices[ggml_cuda_get_device()].cc);
-    const int gqa_limit = nvidia && gqa_ratio <= 4 ? 16 : INT_MAX;
+    const int gqa_limit = nvidia && gqa_ratio <= 4 && DV <= 256 ? 16 : INT_MAX;
     const bool use_gqa_opt = mask && max_bias == 0.0f && Q->ne[1] <= gqa_limit && K->ne[1] % FATTN_KQ_STRIDE == 0;
 
     if constexpr (DV == 512) {
Repository: vercel/next.js
Pull request: [turbopack] Flag `turbopackInferModuleSideEffects` so it is only enabled in canary builds

Since we are aiming for a release this week, lets flag this off since it probably won't get enough dogfooding before then.

Also this will unblock landing #86675

Changed files:
filename: packages/next/src/server/config-shared.ts
patch: @@ -469,7 +469,7 @@ export interface ExperimentalConfig {
    * analyze module code to determine if it has side effects. This can improve tree shaking
    * and bundle size at the cost of some additional analysis.
    *
-   * Defaults to `true`.
+   * Defaults to `true` in canary builds only
    */
   turbopackInferModuleSideEffects?: boolean
 
@@ -1576,6 +1576,7 @@ export const defaultConfig = Object.freeze({
     mcpServer: true,
     turbopackFileSystemCacheForDev: true,
     turbopackFileSystemCacheForBuild: false,
+    turbopackInferModuleSideEffects: !isStableBuild(),
   },
   htmlLimitedBots: undefined,
   bundlePagesRouterDependencies: false,
Repository: ollama/ollama
Pull request: fix(runner): Set logits to 0 if false on Batch.Add

Closes: https://github.com/ollama/ollama/issues/7656

This was a fun bunch of bug hunting to try to chase down nondeterministic behavior with the Granite 3 models that shows up with the switch to the go-based runner.

Changed files:
filename: llama/llama.go
patch: @@ -384,6 +384,8 @@ func (b *Batch) Add(token int, embed []float32, pos int, logits bool, seqIds ...
 
 	if logits {
 		unsafe.Slice(b.c.logits, b.allocSize())[b.c.n_tokens] = 1
+	} else {
+		unsafe.Slice(b.c.logits, b.allocSize())[b.c.n_tokens] = 0
 	}
 
 	b.c.n_tokens += 1
Repository: nodejs/node
Pull request: tools: update nixpkgs-unstable to a8d610af3f1a5fb71e23e08434d8d61a466

This is an automated update of nixpkgs-unstable to a8d610af3f1a5fb71e23e08434d8d61a466.

Changed files:
filename: tools/nix/pkgs.nix
patch: @@ -1,10 +1,10 @@
 arg:
 let
   repo = "https://github.com/NixOS/nixpkgs";
-  rev = "71cf367cc2c168b0c2959835659c38f0a342f9be";
+  rev = "a8d610af3f1a5fb71e23e08434d8d61a466fc942";
   nixpkgs = import (builtins.fetchTarball {
     url = "${repo}/archive/${rev}.tar.gz";
-    sha256 = "0gqzy7r8jn2f5ymy7ixminbf7yx9dxn8kgiqm1g394x0p1rd1q00";
+    sha256 = "0q3m5y6gz2mcmmgf5bvxamjrm6wxzcckqbj4yj1yrzp7p2c9z5mz";
   }) arg;
 in
 nixpkgs
Repository: facebook/react
Pull request: [ci] Fix missing permissions for prereleases


Missed these earlier.
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32729).
* __->__ #32729
* #32728

Changed files:
filename: .github/workflows/runtime_prereleases.yml
patch: @@ -29,6 +29,9 @@ jobs:
   publish_prerelease:
     name: Publish prelease (${{ inputs.release_channel }}) ${{ inputs.commit_sha }} @${{ inputs.dist_tag }}
     runs-on: ubuntu-latest
+    permissions:
+      # We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
+      actions: read
     steps:
       - uses: actions/checkout@v4
       - uses: actions/setup-node@v4

filename: .github/workflows/runtime_prereleases_manual.yml
patch: @@ -16,6 +16,9 @@ jobs:
   publish_prerelease_canary:
     name: Publish to Canary channel
     uses: facebook/react/.github/workflows/runtime_prereleases.yml@main
+    permissions:
+      # We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
+      actions: read
     with:
       commit_sha: ${{ inputs.prerelease_commit_sha }}
       release_channel: stable
@@ -36,6 +39,9 @@ jobs:
   publish_prerelease_experimental:
     name: Publish to Experimental channel
     uses: facebook/react/.github/workflows/runtime_prereleases.yml@main
+    permissions:
+      # We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
+      actions: read
     # NOTE: Intentionally running these jobs sequentially because npm
     # will sometimes fail if you try to concurrently publish two
     # different versions of the same package, even if they use different

filename: .github/workflows/runtime_prereleases_nightly.yml
patch: @@ -14,6 +14,9 @@ jobs:
   publish_prerelease_canary:
     name: Publish to Canary channel
     uses: facebook/react/.github/workflows/runtime_prereleases.yml@main
+    permissions:
+      # We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
+      actions: read
     with:
       commit_sha: ${{ github.sha }}
       release_channel: stable
@@ -24,6 +27,9 @@ jobs:
   publish_prerelease_experimental:
     name: Publish to Experimental channel
     uses: facebook/react/.github/workflows/runtime_prereleases.yml@main
+    permissions:
+      # We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
+      actions: read
     # NOTE: Intentionally running these jobs sequentially because npm
     # will sometimes fail if you try to concurrently publish two
     # different versions of the same package, even if they use different
Repository: ggml-org/llama.cpp
Pull request: mtmd: clip_graph::build_attn flash-attn disabled changes 

This PR extracts a small, self-contained change from [#17400](https://github.com/ggml-org/llama.cpp/pull/17400).

### Summary

* Refactors `clip_graph::build_attn`.
* setting _`flash_attn_type`_ via CLI params
* Adds a `--flash_off` option to `tools/mtmd/tests.sh` to exercise the updated code path.

### Testing

* The changes to `clip_graph::build_attn` have been validated across all models covered by `tools/mtmd/tests.sh`.
* The new `--flash_off` flag allows running the test suite without flash attention, ensuring the modified path is properly tested.


Changed files:
filename: tools/mtmd/clip.cpp
patch: @@ -628,9 +628,6 @@ ggml_tensor * clip_graph::build_attn(
         ggml_tensor * v = ggml_permute(ctx0, v_cur, 1, 2, 0, 3);
         v = ggml_cont(ctx0, v);
 
-        const auto n_tokens = q->ne[1];
-        const auto n_head   = q->ne[2];
-
         ggml_tensor * kq = ggml_mul_mat(ctx0, k, q);
         // F32 may not needed for vision encoders?
         // ggml_mul_mat_set_prec(kq, GGML_PREC_F32);
@@ -639,7 +636,7 @@ ggml_tensor * clip_graph::build_attn(
 
         ggml_tensor * kqv = ggml_mul_mat(ctx0, v, kq);
         cur = ggml_permute(ctx0, kqv, 0, 2, 1, 3);
-        cur = ggml_cont_2d(ctx0, cur, cur->ne[0]*n_head, n_tokens);
+        cur = ggml_cont_2d(ctx0, cur, cur->ne[0] * cur->ne[1], cur->ne[2] * cur->ne[3]);
     }
 
     cb(cur, "kqv_out", il);

filename: tools/mtmd/mtmd.cpp
patch: @@ -175,7 +175,7 @@ struct mtmd_context {
 
         clip_context_params ctx_clip_params {
             /* use_gpu           */ ctx_params.use_gpu,
-            /* flash_attn_type   */ CLIP_FLASH_ATTN_TYPE_AUTO,
+            /* flash_attn_type   */ mtmd_get_clip_flash_attn_type(ctx_params.flash_attn_type),
             /* image_min_tokens  */ ctx_params.image_min_tokens,
             /* image_max_tokens  */ ctx_params.image_max_tokens,
             /* warmup            */ ctx_params.warmup,

filename: tools/mtmd/tests.sh
patch: @@ -28,6 +28,14 @@ if [ "${1:-}" = "huge" ]; then
     echo "Include BIG and HUGE models..."
 fi
 
+# Check if the second argument is "flash", then enable flash attention
+# This is useful to test if flash attention off works correctly
+FLASH_ATTN="on"
+if [ "${2:-}" = "flash_off" ] || [ "${1:-}" = "flash_off" ]; then
+    FLASH_ATTN="off"
+    echo "Flash attention disabled..."
+fi
+
 ###############
 
 arr_prefix=()
@@ -143,6 +151,7 @@ for i in "${!arr_hf[@]}"; do
         -hf $(printf %q "$hf") \
         --image $(printf %q "$SCRIPT_DIR/$inp_file") \
         --temp 0 -n 128 \
+        --flash-attn $(printf %q "$FLASH_ATTN") \
         ${extra_args}"
 
     # if extra_args does not contain -p, we add a default prompt
Repository: vercel/next.js
Pull request: [ci] Only install Playwright dependencies for used browser

Installs much less via apt.

Changed files:
filename: .github/workflows/build_and_test.yml
patch: @@ -902,6 +902,7 @@ jobs:
 
     uses: ./.github/workflows/build_reusable.yml
     with:
+      browser: 'firefox webkit'
       afterBuild: |
         pnpm playwright install
 

filename: .github/workflows/build_reusable.yml
patch: @@ -80,6 +80,11 @@ on:
         type: string
         default: ''
 
+      browser:
+        description: 'Browser to use for tests'
+        required: false
+        type: string
+        default: 'chromium'
 env:
   NAPI_CLI_VERSION: 2.18.4
   TURBO_VERSION: 2.5.5
@@ -266,10 +271,7 @@ jobs:
         run: pnpm install
         if: ${{ inputs.skipInstallBuild != 'yes' }}
 
-      - run: pnpm playwright install-deps
-        if: ${{ inputs.skipInstallBuild != 'yes' }}
-
-      - run: pnpm playwright install chromium
+      - run: pnpm playwright install --with-deps ${{ inputs.browser }}
         if: ${{ inputs.skipInstallBuild != 'yes' }}
 
       - run: pnpm dlx turbo@${TURBO_VERSION} run get-test-timings -- --build ${{ github.sha }}
Repository: vuejs/vue
Pull request: feat(warnings): Suggest casting boolean keys

Closes #6126

<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->

<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->

**What kind of change does this PR introduce?** (check at least one)

- [ ] Bugfix
- [x] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Build-related changes
- [ ] Other, please describe:

**Does this PR introduce a breaking change?** (check one)

- [ ] Yes
- [x] No

If yes, please describe the impact and migration path for existing applications:

**The PR fulfills these requirements:**

- [x] It's submitted to the `dev` branch for v2.x (or to a previous version branch), _not_ the `master` branch
- [x] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
- [x] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- [x] New/updated tests are included

If adding a **new feature**, the PR's description includes:
- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

**Other information:**


Changed files:
filename: src/shared/util.js
patch: @@ -22,7 +22,11 @@ export function isFalse (v: any): boolean %checks {
  * Check if value is primitive
  */
 export function isPrimitive (value: any): boolean %checks {
-  return typeof value === 'string' || typeof value === 'number'
+  return (
+    typeof value === 'string' ||
+    typeof value === 'number' ||
+    typeof value === 'boolean'
+  )
 }
 
 /**

filename: test/unit/modules/vdom/create-element.spec.js
patch: @@ -162,6 +162,15 @@ describe('create-element', () => {
     expect('Avoid using non-primitive value as key').toHaveBeenWarned()
   })
 
+  it('doesn\'t warn boolean key', () => {
+    new Vue({
+      render (h) {
+        return h('div', { key: true })
+      }
+    }).$mount()
+    expect('Avoid using non-primitive value as key').not.toHaveBeenWarned()
+  })
+
   it('nested child elements should be updated correctly', done => {
     const vm = new Vue({
       data: { n: 1 },
Repository: huggingface/transformers
Pull request: Fix integration test in Owlv2 image processing tests

Checked on a CI runner
Cc @ydshieh 

Changed files:
filename: tests/models/owlv2/test_image_processing_owlv2.py
patch: @@ -127,7 +127,7 @@ def test_image_processor_integration_test(self):
             pixel_values = processor(image, return_tensors="pt").pixel_values
 
             mean_value = round(pixel_values.mean().item(), 4)
-            self.assertEqual(mean_value, 0.2353)
+            self.assertEqual(mean_value, -0.2303)
 
     @slow
     def test_image_processor_integration_test_resize(self):
Repository: ggml-org/llama.cpp
Pull request: webui: Fix Attachments not being included in completion request

Fix #19717

Changed files:
filename: tools/server/webui/src/lib/stores/chat.svelte.ts
patch: @@ -498,7 +498,8 @@ class ChatStore {
 				MessageRole.USER,
 				content,
 				MessageType.TEXT,
-				parentIdForUserMessage ?? '-1'
+				parentIdForUserMessage ?? '-1',
+				extras
 			);
 			if (isNewConversation && content)
 				await conversationsStore.updateConversationName(currentConv.id, content.trim());
Repository: ollama/ollama
Pull request: Better error suppression when getting terminal colours

Fixes #7737

Changed files:
filename: scripts/install.sh
patch: @@ -4,8 +4,8 @@
 
 set -eu
 
-red="$( (/usr/bin/tput bold; /usr/bin/tput setaf 1; :) 2>&-)"
-plain="$( (/usr/bin/tput sgr0; :) 2>&-)"
+red="$( (/usr/bin/tput bold || :; /usr/bin/tput setaf 1 || :) 2>&-)"
+plain="$( (/usr/bin/tput sgr0 || :) 2>&-)"
 
 status() { echo ">>> $*" >&2; }
 error() { echo "${red}ERROR:${plain} $*"; exit 1; }
Repository: vuejs/vue
Pull request: perf: remove src directory from npm module

**What kind of change does this PR introduce?**

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [x] Build-related changes
- [ ] Other, please describe:

**Does this PR introduce a breaking change?**

- [x] Yes
- [ ] No

Breaking change is only for users, who uses undocumented requires/imports from `vue/src`. After this PR all scripts from `src` folder are not included in npm-package

**The PR fulfills these requirements:**

- [x] It's submitted to the `dev` branch for v2.x (or to a previous version branch), _not_ the `master` branch
- [x] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
- [x] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- [ ] New/updated tests are included

**Other information:**


`src` directory is not used by node package. Removing this directory reduces size of `.tgz` package by 112kb and saves 840kb in each node project, where vue.js is installed


Changed files:
filename: package.json
patch: @@ -7,7 +7,6 @@
   "unpkg": "dist/vue.js",
   "typings": "types/index.d.ts",
   "files": [
-    "src",
     "dist/*.js",
     "types/*.d.ts"
   ],
Repository: ollama/ollama
Pull request: Notify the user if systemd is not running during install

Fixes: https://github.com/ollama/ollama/issues/6636

Changed files:
filename: scripts/install.sh
patch: @@ -4,9 +4,12 @@
 
 set -eu
 
+red="$( (/usr/bin/tput bold; /usr/bin/tput setaf 1; :) 2>&-)"
+plain="$( (/usr/bin/tput sgr0; :) 2>&-)"
+
 status() { echo ">>> $*" >&2; }
-error() { echo "ERROR $*"; exit 1; }
-warning() { echo "WARNING: $*"; }
+error() { echo "${red}ERROR:${plain} $*"; exit 1; }
+warning() { echo "${red}WARNING:${plain} $*"; }
 
 TEMP_DIR=$(mktemp -d)
 cleanup() { rm -rf $TEMP_DIR; }
@@ -162,6 +165,12 @@ EOF
             start_service() { $SUDO systemctl restart ollama; }
             trap start_service EXIT
             ;;
+        *)
+            warning "systemd is not running"
+            if [ "$IS_WSL2" = true ]; then
+                warning "see https://learn.microsoft.com/en-us/windows/wsl/systemd#how-to-enable-systemd to enable it"
+            fi
+            ;;
     esac
 }
Repository: vercel/next.js
Pull request: [ci] Stop running explicit build when creating release

Follow-up to https://github.com/vercel/next.js/pull/87178. I thought Lerna was invoking the `release` script but we're actually explicitly invoking it in a top-level `version` script.

Also removes the `pnpm build` step from the Job which I meant to include in the original PR.

## test plan

- [x] release with these changes (~3min faster): https://github.com/vercel/next.js/actions/runs/20263596514 -> https://github.com/vercel/next.js/commit/20da8eadc08f5a204234841aa67e3dc2f5271512 -> https://github.com/vercel/next.js/actions/runs/20263628436

Changed files:
filename: .github/workflows/trigger_release.yml
patch: @@ -104,8 +104,6 @@ jobs:
 
       - run: pnpm install
 
-      - run: pnpm run build
-
       - run: node ./scripts/start-release.js --release-type ${{ github.event.inputs.releaseType || 'canary' }} --semver-type ${{ github.event.inputs.semverType }}
         env:
           RELEASE_BOT_GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}

filename: package.json
patch: @@ -90,7 +90,7 @@
     "debug": "cross-env NEXT_PRIVATE_LOCAL_DEV=1 NEXT_TELEMETRY_DISABLED=1 node --inspect --trace-deprecation --enable-source-maps packages/next/dist/bin/next",
     "debug-brk": "cross-env NEXT_PRIVATE_LOCAL_DEV=1 NEXT_TELEMETRY_DISABLED=1 node --inspect-brk --trace-deprecation --enable-source-maps packages/next/dist/bin/next",
     "postinstall": "node scripts/git-configure.mjs && node scripts/install-native.mjs",
-    "version": "pnpm install --no-frozen-lockfile && IS_PUBLISH=yes ./scripts/check-pre-compiled.sh && git add .",
+    "version": "pnpm install --no-frozen-lockfile && git add .",
     "prepare": "husky",
     "sync-react": "node ./scripts/sync-react.js",
     "update-google-fonts": "node ./scripts/update-google-fonts.js",

filename: scripts/check-pre-compiled.sh
patch: @@ -16,7 +16,7 @@ cd ../../
 # Make sure to exit with 1 if there are changes after running ncc-compiled
 # step to ensure we get any changes committed
 
-if [[ ! -z $(git status -s) ]] && [[ -z $IS_PUBLISH ]];then
+if [[ ! -z $(git status -s) ]];then
   echo "Detected changes"
   git diff -a --stat
   exit 1
Repository: facebook/react
Pull request: [ci] Add artifact attestation to build


Adds a signed build provenance attestations via https://github.com/actions/attest-build-provenance
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32711).
* #32729
* #32728
* __->__ #32711

Changed files:
filename: .github/workflows/runtime_build_and_test.yml
patch: @@ -426,6 +426,10 @@ jobs:
   process_artifacts_combined:
     name: Process artifacts combined
     needs: [build_and_lint, runtime_node_modules_cache]
+    permissions:
+      # https://github.com/actions/attest-build-provenance
+      id-token: write
+      attestations: write
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
@@ -468,13 +472,18 @@ jobs:
         # TODO: Migrate scripts to use `build` directory instead of `build2`
       - run: cp ./build.tgz ./build2.tgz
       - name: Archive build artifacts
+        id: upload_artifacts_combined
         uses: actions/upload-artifact@v4
         with:
           name: artifacts_combined
           path: |
             ./build.tgz
             ./build2.tgz
           if-no-files-found: error
+      - uses: actions/attest-build-provenance@v2
+        with:
+          subject-name: artifacts_combined.zip
+          subject-digest: sha256:${{ steps.upload_artifacts_combined.outputs.artifact-digest }}
 
   check_error_codes:
     name: Search build artifacts for unminified errors
Repository: ollama/ollama
Pull request: Update README.md

Add [Alfred Ollama](https://github.com/zeitlings/alfred-ollama) to Extensions & Plugins.
- Manage local models
- Perform local inference

Changed files:
filename: README.md
patch: @@ -467,6 +467,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [QodeAssist](https://github.com/Palm1r/QodeAssist) (AI-powered coding assistant plugin for Qt Creator)
 - [Obsidian Quiz Generator plugin](https://github.com/ECuiDev/obsidian-quiz-generator)
 - [TextCraft](https://github.com/suncloudsmoon/TextCraft) (Copilot in Word alternative using Ollama)
+- [Alfred Ollama](https://github.com/zeitlings/alfred-ollama) (Alfred Workflow)
 
 ### Supported backends
Repository: huggingface/transformers
Pull request: Fix failing `owlv2` image processor integration test

# What does this PR do?
Fixes [failing Owlv2ImageProcessingTest](https://github.com/huggingface/transformers/actions/runs/19983883282/job/57315088143#step:14:2390)

<img width="1320" height="115" alt="image" src="https://github.com/user-attachments/assets/8317e26b-1a60-48d9-af18-c5d61961925f" />


## Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?
@yonigozlan @Rocketknight1 

Changed files:
filename: tests/models/owlv2/test_image_processing_owlv2.py
patch: @@ -151,7 +151,9 @@ def test_image_processor_integration_test_resize(self):
             with torch.no_grad():
                 outputs = model(**inputs)
 
-            results = processor.post_process_object_detection(outputs, threshold=0.2, target_sizes=[target_size])[0]
+            results = processor.image_processor.post_process_object_detection(
+                outputs, threshold=0.2, target_sizes=[target_size]
+            )[0]
 
             boxes = results["boxes"]
             torch.testing.assert_close(boxes, expected_boxes, atol=1e-1, rtol=1e-1)
@@ -160,7 +162,7 @@ def test_image_processor_integration_test_resize(self):
             inputs = processor(text=[text, text], images=[image, image], return_tensors="pt")
             with torch.no_grad():
                 outputs = model(**inputs)
-            results = processor.post_process_object_detection(
+            results = processor.image_processor.post_process_object_detection(
                 outputs, threshold=0.2, target_sizes=[target_size, target_size]
             )