helloadhavan/github_issues huggingface dataset:
Repository: ollama/ollama
Pull request: app: use the same client for inference and other requests

Previously we were accidentally using different clients/UAs depending on whether it was an inference call or a different call. This change makes them consistent, other than the timeout being different.

Changed files:
filename: app/ui/ui.go
patch: @@ -342,8 +342,18 @@ func (t *userAgentTransport) RoundTrip(req *http.Request) (*http.Response, error
 
 // httpClient returns an HTTP client that automatically adds the User-Agent header
 func (s *Server) httpClient() *http.Client {
+	return userAgentHTTPClient(10 * time.Second)
+}
+
+// inferenceClient uses almost the same HTTP client, but without a timeout so
+// long requests aren't truncated
+func (s *Server) inferenceClient() *api.Client {
+	return api.NewClient(envconfig.Host(), userAgentHTTPClient(0))
+}
+
+func userAgentHTTPClient(timeout time.Duration) *http.Client {
 	return &http.Client{
-		Timeout: 10 * time.Second,
+		Timeout: timeout,
 		Transport: &userAgentTransport{
 			base: http.DefaultTransport,
 		},
@@ -721,11 +731,7 @@ func (s *Server) chat(w http.ResponseWriter, r *http.Request) error {
 	_, cancelLoading := context.WithCancel(ctx)
 	loading := false
 
-	c, err := api.ClientFromEnvironment()
-	if err != nil {
-		cancelLoading()
-		return err
-	}
+	c := s.inferenceClient()
 
 	// Check if the model exists locally by trying to show it
 	// TODO (jmorganca): skip this round trip and instead just act
@@ -1682,7 +1688,6 @@ func supportsBrowserTools(model string) bool {
 	return strings.HasPrefix(strings.ToLower(model), "gpt-oss")
 }
 
-
 // buildChatRequest converts store.Chat to api.ChatRequest
 func (s *Server) buildChatRequest(chat *store.Chat, model string, think any, availableTools []map[string]any) (*api.ChatRequest, error) {
 	var msgs []api.Message

filename: app/ui/ui_test.go
patch: @@ -15,6 +15,7 @@ import (
 	"sync/atomic"
 	"testing"
 
+	"github.com/ollama/ollama/api"
 	"github.com/ollama/ollama/app/store"
 	"github.com/ollama/ollama/app/updater"
 )
@@ -526,6 +527,33 @@ func TestUserAgentTransport(t *testing.T) {
 	t.Logf("User-Agent transport successfully set: %s", receivedUA)
 }
 
+func TestInferenceClientUsesUserAgent(t *testing.T) {
+	var gotUserAgent atomic.Value
+	ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+		gotUserAgent.Store(r.Header.Get("User-Agent"))
+		w.Header().Set("Content-Type", "application/json")
+		w.Write([]byte(`{}`))
+	}))
+	defer ts.Close()
+
+	t.Setenv("OLLAMA_HOST", ts.URL)
+
+	server := &Server{}
+	client := server.inferenceClient()
+
+	_, err := client.Show(context.Background(), &api.ShowRequest{Model: "test"})
+	if err != nil {
+		t.Fatalf("show request failed: %v", err)
+	}
+
+	receivedUA, _ := gotUserAgent.Load().(string)
+	expectedUA := userAgent()
+
+	if receivedUA != expectedUA {
+		t.Errorf("User-Agent mismatch\nExpected: %s\nReceived: %s", expectedUA, receivedUA)
+	}
+}
+
 func TestSupportsBrowserTools(t *testing.T) {
 	tests := []struct {
 		model string
Repository: rust-lang/rust
Pull request: ast_validation: scalable vectors okay for rustdoc

Scalable vector types in `core_arch` are cfg'd for aarch64 and for rustdoc, which can successfully document these types given any `--target` (`core_arch` CI uses `i686-unknown-linux-gnu`) - this shouldn't trigger the "scalable vectors not supported on arch" error.

This fixes the CI failure in rust-lang/stdarch#2071.

Changed files:
filename: compiler/rustc_ast_passes/src/ast_validation.rs
patch: @@ -1379,7 +1379,9 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
                             this.dcx()
                                 .emit_err(errors::ScalableVectorNotTupleStruct { span: item.span });
                         }
-                        if !self.sess.target.arch.supports_scalable_vectors() {
+                        if !self.sess.target.arch.supports_scalable_vectors()
+                            && !self.sess.opts.actually_rustdoc
+                        {
                             this.dcx().emit_err(errors::ScalableVectorBadArch { span: attr.span });
                         }
                     }
Repository: nodejs/node
Pull request: deps: libuv: cherry-pick aabb7651de

Refs: https://github.com/nodejs/node/pull/62497#issuecomment-4169631366

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: deps/uv/src/win/tcp.c
patch: @@ -56,6 +56,8 @@ static int minimal_windows10_version1709(void) {
   OSVERSIONINFOW os_info;
   if (!pRtlGetVersion)
     return 0;
+  os_info.dwOSVersionInfoSize = sizeof(os_info);
+  os_info.szCSDVersion[0] = L'\0';
   pRtlGetVersion(&os_info);
   if (os_info.dwMajorVersion < 10)
     return 0;
Repository: vercel/next.js
Pull request: Turbopack: fix webpack loader runner layer

Otherwise you get a `Dependency tracking is disabled` / infinite loop when trying to use both turbopack.rules.loader and turbopackLoader at the same time

Changed files:
filename: test/development/app-dir/turbopack-import-assertions-use/app/page.tsx
patch: @@ -8,14 +8,18 @@ import replacedValue from '../data-with-placeholder.js' with { turbopackLoader:
 import rawTextViaModuleType from '../data2.txt' with { turbopackLoader: '../node_modules/test-raw-loader/index.js', turbopackModuleType: 'ecmascript' }
 // Import a non-.json file and treat it as JSON via turbopackModuleType
 import jsonData from '../data.jsonlike' with { turbopackLoader: 'test-identity-loader', turbopackModuleType: 'json' }
+// Normal rules should still work at the same time
+import jsonData2 from '../data.jsonlike2'
 
+console.log(jsonData, jsonData2)
 export default function Page() {
   return (
     <div>
       <p id="raw">{rawText}</p>
       <p id="replaced">{replacedValue}</p>
       <p id="module-type">{rawTextViaModuleType}</p>
       <p id="json-type">{jsonData.greeting}</p>
+      <p id="json-type-2">{jsonData2.greeting}</p>
     </div>
   )
 }

filename: test/development/app-dir/turbopack-import-assertions-use/data.jsonlike2
patch: @@ -0,0 +1 @@
+{"greeting": "Hello from JSON module type 2"}

filename: test/development/app-dir/turbopack-import-assertions-use/next.config.js
patch: @@ -1,6 +1,15 @@
 /**
  * @type {import('next').NextConfig}
  */
-const nextConfig = {}
+const nextConfig = {
+  turbopack: {
+    rules: {
+      '*.jsonlike2': {
+        loaders: ['test-identity-loader'],
+        as: '*.json',
+      },
+    },
+  },
+}
 
 module.exports = nextConfig

filename: test/development/app-dir/turbopack-import-assertions-use/turbopack-import-assertions-use.test.ts
patch: @@ -31,4 +31,9 @@ describe('turbopack-import-assertions-use', () => {
     const $ = await next.render$('/')
     expect($('#json-type').text()).toBe('Hello from JSON module type')
   })
+
+  it('should apply identity with loader rules', async () => {
+    const $ = await next.render$('/')
+    expect($('#json-type-2').text()).toBe('Hello from JSON module type 2')
+  })
 })

filename: turbopack/crates/turbopack/src/lib.rs
patch: @@ -716,7 +716,7 @@ async fn process_default_internal(
             *execution_context,
             Some(import_map),
             None,
-            Layer::new(rcstr!("turbopack_use_loaders")),
+            Layer::new(rcstr!("webpack_loaders")),
             false,
         )
         .to_resolved()
Repository: huggingface/transformers
Pull request: Nvidia CI with `torch 2.11`

# What does this PR do?

Use torch 2.11 for our (daily) CI since it's released for 2 weeks already.

For CircleCI, we need to fix something regarding `torchvision.io.read_video`.

For daily CI, torch 2.11 doesn't cause issues (for those `torchvision.io.read_video`).

Changed files:
filename: docker/transformers-all-latest-gpu/Dockerfile
patch: @@ -9,12 +9,12 @@ SHELL ["sh", "-lc"]
 # The following `ARG` are mainly used to specify the versions explicitly & directly in this docker file, and not meant
 # to be used as arguments for docker build (so far).
 
-ARG PYTORCH='2.10.0'
+ARG PYTORCH='2.11.0'
 # Example: `cu102`, `cu113`, etc.
 ARG CUDA='cu126'
 
 # This needs to be compatible with the above `PYTORCH`.
-ARG TORCHCODEC='0.10.0'
+ARG TORCHCODEC='0.11.0'
 
 ARG FLASH_ATTN='false'
Repository: rust-lang/rust
Pull request: Promote `char::is_case_ignorable` from perma-unstable to unstable

<!-- homu-ignore:start -->
<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.

This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using

    r? <reviewer name>
-->
<!-- homu-ignore:end -->

(Take two of https://github.com/rust-lang/rust/pull/154658, which was closed when GitHub Codespaces somehow managed to squash the entire commit history of rust-lang/rust into one commit)

This function is currently used in the implementation of `str::to_lowercase()`. There is no reason to restrict it to the stdlib, though. Reimplementations of string casing for types other than `str` -> `String` shouldn't need to waste space with a duplicate copy of this table.

@rustbot label A-unicode T-libs-api

r? @Mark-Simulacrum

Changed files:
filename: library/alloc/src/lib.rs
patch: @@ -93,6 +93,7 @@
 #![feature(async_iterator)]
 #![feature(bstr)]
 #![feature(bstr_internals)]
+#![feature(case_ignorable)]
 #![feature(cast_maybe_uninit)]
 #![feature(cell_get_cloned)]
 #![feature(char_internals)]

filename: library/core/src/char/methods.rs
patch: @@ -1074,18 +1074,20 @@ impl char {
         self > '\u{02FF}' && unicode::Grapheme_Extend(self)
     }
 
-    /// Returns `true` if this `char` has the `Case_Ignorable` property.
+    /// Returns `true` if this `char` has the `Case_Ignorable` property. This narrow-use property
+    /// is used to implement context-dependent casing for the Greek letter sigma (uppercase Σ),
+    /// which has two lowercase forms.
     ///
-    /// `Case_Ignorable` is described in Chapter 4 (Character Properties) of the [Unicode Standard] and
-    /// specified in the [Unicode Character Database][ucd] [`DerivedCoreProperties.txt`].
+    /// `Case_Ignorable` is [described][D136] in Chapter 3 (Conformance) of the Unicode Core Specification,
+    /// and specified in the [Unicode Character Database][ucd] [`DerivedCoreProperties.txt`];
+    /// see those resources for more information.
     ///
-    /// [Unicode Standard]: https://www.unicode.org/versions/latest/
+    /// [D136]: https://www.unicode.org/versions/latest/core-spec/chapter-3/#G63116
     /// [ucd]: https://www.unicode.org/reports/tr44/
     /// [`DerivedCoreProperties.txt`]: https://www.unicode.org/Public/UCD/latest/ucd/DerivedCoreProperties.txt
     #[must_use]
     #[inline]
-    #[doc(hidden)]
-    #[unstable(feature = "char_internals", reason = "exposed only for libstd", issue = "none")]
+    #[unstable(feature = "case_ignorable", issue = "154848")]
     pub fn is_case_ignorable(self) -> bool {
         if self.is_ascii() {
             matches!(self, '\'' | '.' | ':' | '^' | '`')
Repository: vercel/next.js
Pull request: [turbopack] Remove incorrect debug_assert in try_read_task_cell

### What?

Removes the `debug_assert_not_in_top_level_task` call from `try_read_task_cell` in `turbopack/crates/turbo-tasks/src/manager.rs`.

### Why?

The assertion was wrong. `debug_assert_not_in_top_level_task` panics with the message:

> "Eventually consistent read cannot be performed from a top-level task."

The restriction only applies to **eventually consistent** reads (e.g. task output reads), which can return stale data if called from a top-level task (`.run_once(...)`). Cell reads, however, are **strongly consistent** — they always return up-to-date data. There is no semantic reason to forbid reading a cell from a top-level task, and the assert was producing false positives in valid call sites.

### How?

Delete the three lines that guard and invoke `debug_assert_not_in_top_level_task` inside `try_read_task_cell`. The function itself and its usage in `try_read_task_output` / `try_read_local_output` (which are genuinely eventually-consistent) are unchanged.

Changed files:
filename: turbopack/crates/turbo-tasks-backend/tests/top_level_task_consistency.rs
patch: @@ -36,13 +36,13 @@ async fn test_eventual_read_in_top_level_task_fails() {
 }
 
 #[tokio::test(flavor = "multi_thread", worker_threads = 2)]
-#[should_panic]
-async fn test_cell_read_in_top_level_task_fails() {
+async fn test_cell_read_in_top_level_task_succeeds() {
     run_once(&REGISTRATION, || async {
         let cell = returns_value_operation()
             .resolve_strongly_consistent()
             .await?;
-        let _ = cell.await?;
+        let value = cell.await?;
+        assert_eq!(value.value, 42);
         Ok(())
     })
     .await

filename: turbopack/crates/turbo-tasks/src/manager.rs
patch: @@ -1473,9 +1473,6 @@ impl<B: Backend + 'static> TurboTasksApi for TurboTasks<B> {
         options: ReadCellOptions,
     ) -> Result<Result<TypedCellContent, EventListener>> {
         let reader = current_task_if_available("reading Vcs");
-        if cfg!(debug_assertions) && reader != Some(task) {
-            debug_assert_not_in_top_level_task("read_task_cell");
-        }
         self.backend
             .try_read_task_cell(task, index, reader, options, self)
     }
Repository: ollama/ollama
Pull request: mlx: respect tokenizer add_bos_token setting in pipeline

Replace hardcoded Encode(prompt, true) with
Encode(prompt, r.Tokenizer.AddBOS()) so the pipeline respects each model's tokenizer configuration.

Models with add_bos_token=true (gemma3, llama): unchanged, tokenizer still prepends BOS.

Models with bos_token=null (qwen3, qwen3.5): unchanged, the BOS guard (vocab.BOS >= 0) already prevented prepending regardless of the flag.

This aligns the pipeline with the /v1/tokenize endpoint which already uses Tokenizer.AddBOS().

Changed files:
filename: x/mlxrunner/pipeline.go
patch: @@ -55,7 +55,7 @@ func (r *Runner) TextGenerationPipeline(request Request) error {
 		slog.Info("peak memory", "size", mlx.PrettyBytes(mlx.PeakMemory()))
 	}()
 
-	inputs := r.Tokenizer.Encode(request.Prompt, true)
+	inputs := r.Tokenizer.Encode(request.Prompt, r.Tokenizer.AddBOS())
 	if len(inputs) == 0 {
 		return errors.New("empty prompt")
 	}
Repository: nodejs/node
Pull request: doc: document TransformStream transformer.cancel option

Add documentation for the `cancel` option of the `TransformStream` transformer, which allows users to specify a callback that will be called when the stream is canceled.

See: https://streams.spec.whatwg.org/#transformer-api

Fixes: https://github.com/nodejs/node/issues/62540

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: doc/api/webstreams.md
patch: @@ -1148,6 +1148,12 @@ await Promise.all([
 
 <!-- YAML
 added: v16.5.0
+changes:
+  - version:
+    - v21.5.0
+    - v20.14.0
+    pr-url: https://github.com/nodejs/node/pull/50126
+    description: Supports the `cancel` transformer callback.
 -->
 
 * `transformer` {Object}
@@ -1166,6 +1172,11 @@ added: v16.5.0
     the transformation process.
     * `controller` {TransformStreamDefaultController}
     * Returns: A promise fulfilled with `undefined`.
+  * `cancel` {Function} A user-defined function that is called when either the
+    readable side of the `TransformStream` is canceled or the writable side is
+    aborted.
+    * `reason` {any}
+    * Returns: A promise fulfilled with `undefined`.
   * `readableType` {any} the `readableType` option is reserved for future use
     and _must_ be `undefined`.
   * `writableType` {any} the `writableType` option is reserved for future use
Repository: facebook/react
Pull request: Turn on enableViewTransition for RN FB build

Its now enabled everywhere other than keeping it dynamic in www

Changed files:
filename: packages/shared/forks/ReactFeatureFlags.native-fb.js
patch: @@ -68,7 +68,7 @@ export const syncLaneExpirationMs = 250;
 export const transitionLaneExpirationMs = 5000;
 export const enableYieldingBeforePassive: boolean = false;
 export const enableThrottledScheduling: boolean = false;
-export const enableViewTransition: boolean = false;
+export const enableViewTransition: boolean = true;
 export const enableGestureTransition: boolean = false;
 export const enableScrollEndPolyfill: boolean = true;
 export const enableSuspenseyImages: boolean = false;

filename: packages/shared/forks/ReactFeatureFlags.test-renderer.native-fb.js
patch: @@ -54,7 +54,7 @@ export const syncLaneExpirationMs = 250;
 export const transitionLaneExpirationMs = 5000;
 export const enableYieldingBeforePassive = false;
 export const enableThrottledScheduling = false;
-export const enableViewTransition = false;
+export const enableViewTransition = true;
 export const enableGestureTransition = false;
 export const enableScrollEndPolyfill = true;
 export const enableSuspenseyImages = false;

filename: packages/shared/forks/ReactFeatureFlags.test-renderer.www.js
patch: @@ -65,7 +65,7 @@ export const enableEffectEventMutationPhase: boolean = false;
 export const enableYieldingBeforePassive: boolean = false;
 
 export const enableThrottledScheduling: boolean = false;
-export const enableViewTransition: boolean = false;
+export const enableViewTransition: boolean = true;
 export const enableGestureTransition: boolean = false;
 export const enableScrollEndPolyfill: boolean = true;
 export const enableSuspenseyImages: boolean = false;
Repository: huggingface/transformers
Pull request: remove unnecessary entries in some auto model mappings

# What does this PR do?

Fix for tiny model 

Changed files:
filename: src/transformers/models/auto/modeling_auto.py
patch: @@ -1009,7 +1009,6 @@ class _BaseModelWithGenerate(PreTrainedModel, GenerationMixin):
         ("perception_lm", "PerceptionLMForConditionalGeneration"),
         ("pi0", "PI0ForConditionalGeneration"),
         ("pix2struct", "Pix2StructForConditionalGeneration"),
-        ("pixtral", "LlavaForConditionalGeneration"),
         ("pp_chart2table", "GotOcr2ForConditionalGeneration"),
         ("qwen2_5_vl", "Qwen2_5_VLForConditionalGeneration"),
         ("qwen2_vl", "Qwen2VLForConditionalGeneration"),
@@ -1671,7 +1670,6 @@ class _BaseModelWithGenerate(PreTrainedModel, GenerationMixin):
         # Model for Text-To-Waveform mapping
         ("bark", "BarkModel"),
         ("csm", "CsmForConditionalGeneration"),
-        ("fastspeech2_conformer", "FastSpeech2ConformerWithHifiGan"),
         ("fastspeech2_conformer_with_hifigan", "FastSpeech2ConformerWithHifiGan"),
         ("higgs_audio_v2", "HiggsAudioV2ForConditionalGeneration"),
         ("musicgen", "MusicgenForConditionalGeneration"),

filename: src/transformers/models/fastspeech2_conformer/configuration_fastspeech2_conformer.py
patch: @@ -262,7 +262,7 @@ def validate_architecture(self):
             raise ValueError("Either use_masking or use_weighted_masking can be True, but not both.")
 
 
-@auto_docstring(checkpoint="espnet/fastspeech2_conformer")
+@auto_docstring(checkpoint="espnet/fastspeech2_conformer_with_hifigan")
 @strict
 class FastSpeech2ConformerHifiGanConfig(PreTrainedConfig):
     r"""
@@ -323,7 +323,7 @@ def __post_init__(self, **kwargs):
         super().__post_init__(**kwargs)
 
 
-@auto_docstring(checkpoint="espnet/fastspeech2_conformer")
+@auto_docstring(checkpoint="espnet/fastspeech2_conformer_with_hifigan")
 @strict
 class FastSpeech2ConformerWithHifiGanConfig(PreTrainedConfig):
     r"""