repo
stringclasses
15 values
fix_commit
stringlengths
40
40
buggy_commit
stringlengths
40
40
message
stringlengths
3
64.3k
files
listlengths
1
300
timestamp
timestamp[s]date
2013-03-13 20:45:00
2026-04-11 07:48:46
vercel/next.js
8d3c3ce80b4e9d6d03fb8a896979eb7691755358
a713100645aaee1eca5e1b406283cd3a4a00ff15
macro improvements (#342) - Removes the transform of `trait TraitName: TraitDep` into `trait TraitName: Into<TraitDep>` - Removes the generated `lazy_static!` (was always a bit hard to read in the macro expansion, and `once_cell::Lazy` does the same without a macro) - Generates unique names for all `impl`s, before imp...
[ { "path": "crates/turbo-tasks-build/src/lib.rs", "patch": "@@ -13,7 +13,7 @@ use syn::{\n PathArguments, PathSegment, TraitItem, TraitItemMethod, Type, TypePath,\n };\n use turbo_tasks_macros_shared::{\n- get_function_ident, get_ref_ident, get_register_trait_methods_ident,\n+ get_function_ident, g...
2022-09-21T17:54:19
huggingface/transformers
c31a6ff474edfb59800024d9b54495f6e398c875
104599d7a84ae54d954b4fcbed0eaa7d3bc43c86
Add post_process_depth_estimation to image processors and support ZoeDepth's inference intricacies (#32550) * add colorize_depth and matplotlib availability check * add post_process_depth_estimation for zoedepth + tests * add post_process_depth_estimation for DPT + tests * add post_process_depth_estimation in...
[ { "path": "docs/source/en/model_doc/depth_anything.md", "patch": "@@ -84,27 +84,24 @@ If you want to do the pre- and postprocessing yourself, here's how to do that:\n \n >>> with torch.no_grad():\n ... outputs = model(**inputs)\n-... predicted_depth = outputs.predicted_depth\n-\n->>> # interpolate t...
2024-10-22T13:50:54
golang/go
3a778ff50f7091b8a64875c8ed95bfaacf3d334c
a2cef9b544708ecae983ed8836ee2425a28aab68
runtime: check for g0 stack last in signal handler In the signal handler, we adjust gsingal's stack to the stack where the signal is delivered. TSAN may deliver signals to the g0 stack, so we have a special case for the g0 stack. However, we don't have very good accuracy in determining the g0 stack's bounds, as it is ...
[ { "path": "src/runtime/proc.go", "patch": "@@ -1251,6 +1251,11 @@ func mstart() {\n \t\t// Initialize stack bounds from system stack.\n \t\t// Cgo may have left stack size in stack.hi.\n \t\t// minit may update the stack bounds.\n+\t\t//\n+\t\t// Note: these bounds may not be very accurate.\n+\t\t// We set ...
2021-01-22T14:47:59
vercel/next.js
244b629730352bea51f265413c6249aa4263fb75
2b9afcfea3ce1f43833da26324b88693f2b11c8c
Skip copying next-swc debug files during testing (#40761) I have next-swc compiled locally inside the folder so there're a lot of files there (totally unexpected). And then the `fs.copy` takes 28433 ms... by filtering it out it's only 1s. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tes...
[ { "path": "test/lib/create-next-install.js", "patch": "@@ -51,7 +51,8 @@ async function createNextInstall(\n !item.includes('node_modules') &&\n !item.includes('.DS_Store') &&\n // Exclude Rust compilation files\n- !/next[\\\\/]build[\\\\/]swc[\\\\/]target/.test(item)\...
2022-09-21T17:14:29
nodejs/node
caaf7e3a9f119e8fec1018ea835210b50c6d47f7
cb94bf01aae1802d7d7858a806ef8a82dd4b65f9
http2: callback valid check before closing request Do not close the request if callback is not a function, and throw ERR_INVALID_CALLBACK TypeError PR-URL: https://github.com/nodejs/node/pull/19061 Fixes: https://github.com/nodejs/node/issues/18855 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: C...
[ { "path": "lib/internal/http2/core.js", "patch": "@@ -1769,6 +1769,8 @@ class Http2Stream extends Duplex {\n throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'code', 'number');\n if (code < 0 || code > kMaxInt)\n throw new errors.RangeError('ERR_OUT_OF_RANGE', 'code');\n+ if (callback !...
2018-02-28T15:18:29
ollama/ollama
d5a0d8d904baaf66a5326463a409fe4fa09b2dd2
ef7d26ba2cd52a5295620067ab9abd9c0055a558
llm: New memory management This changes the memory allocation strategy from upfront estimation to tracking actual allocations done by the engine and reacting to that. The goal is avoid issues caused by both under-estimation (crashing) and over-estimation (low performance due to under-utilized GPUs). It is currently o...
[ { "path": "discover/amd_linux.go", "patch": "@@ -97,6 +97,7 @@ func AMDGetGPUInfo() ([]RocmGPUInfo, error) {\n \t\treturn a < b\n \t})\n \tgpuCount := 0\n+\tgpuOrdinalID := 0\n \tfor _, match := range matches {\n \t\tslog.Debug(\"evaluating amdgpu node \" + match)\n \t\tfp, err := os.Open(match)\n@@ -187,10...
2025-05-29T19:21:48
huggingface/transformers
104599d7a84ae54d954b4fcbed0eaa7d3bc43c86
51e395d13e46a8ecdda2b47381519bdfca87ba4a
Fix: tensor of examples of the same length triggers invalid stacking (#34166) * Fix issue where tensor of examples of the same length triggers invalid stacking * Update data_collator.py
[ { "path": "src/transformers/data/data_collator.py", "patch": "@@ -439,7 +439,8 @@ def _torch_collate_batch(examples, tokenizer, pad_to_multiple_of: Optional[int]\n \n are_tensors_same_length = all(x.size(0) == length_of_first for x in examples)\n if are_tensors_same_length and (pad_to_multiple_of is...
2024-10-22T13:49:21
golang/go
a2cef9b544708ecae983ed8836ee2425a28aab68
dab3e5affefb7e0b157ad27fe4797c4c6f3c4ea6
cmd/go: don't lookup the path for CC when invoking cgo Previously, if CC was a path without separators (like gcc or clang), we'd look it up in PATH in cmd/go using internal/execabs.LookPath, then pass the resolved path to cgo in CC. This caused a regression: if the directory in PATH containing CC has a space, cgo spl...
[ { "path": "src/cmd/go/internal/work/action.go", "patch": "@@ -57,9 +57,6 @@ type Builder struct {\n \tid sync.Mutex\n \ttoolIDCache map[string]string // tool name -> tool ID\n \tbuildIDCache map[string]string // file name -> build ID\n-\n-\tcgoEnvOnce sync.Once\n-\tcgoEnvCache []string\n }\n \n ...
2021-01-22T19:27:24
vercel/next.js
620a6e0aaf73df1b41395105d1f8da42818e874d
647a87f8f01ea3811565f0768ebdec0da667b4bd
small fixes / improvements (vercel/turbo#341) Many small things I found The most important is probably the typescript transform The remaining bits should hopefully be self-explanatory from the commit messages
[ { "path": "packages/next-swc/crates/next-dev/src/main.rs", "patch": "@@ -121,22 +121,24 @@ async fn main() -> Result<()> {\n }\n }\n \n- join! {\n- async move {\n- let (elapsed, count) = tt_clone.get_or_wait_update_info(Duration::ZERO).await;\n- println!(\"initial...
2022-09-21T15:47:23
nodejs/node
cb94bf01aae1802d7d7858a806ef8a82dd4b65f9
8ed44ff1c4b48fe62a0aef88bd1d0385f0eadd03
build: disable openssl build warnings on macos We already disable `-Wmissing-field-initializers` on other Unices but not on MacOS. PR-URL: https://github.com/nodejs/node/pull/19046 Fixes: https://github.com/nodejs/node/issues/18983 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.beve...
[ { "path": "deps/openssl/openssl.gyp", "patch": "@@ -157,6 +157,9 @@\n }, {\n 'defines': ['<@(openssl_default_defines_not_win)'],\n 'cflags': ['-Wno-missing-field-initializers'],\n+ 'xcode_settings': {\n+ 'WARNING_CFLAGS': ['-Wno-missing-field-initializers'],\n+ }...
2018-02-27T20:27:44
huggingface/transformers
51e395d13e46a8ecdda2b47381519bdfca87ba4a
eb6a734995aa2586528e29fd9d0a13a55721444b
Fix FA2 attention for models supporting sliding window (#34093) Fix FA2
[ { "path": "src/transformers/models/jamba/modeling_jamba.py", "patch": "@@ -417,34 +417,7 @@ def forward(\n key_states = key_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)\n value_states = value_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim)...
2024-10-22T13:37:21
vercel/next.js
d3d07e7efbca5276dd8ec698ec3a2cc955c487ed
c5ad3dfe398d90ebd5b7118b57a5b32dc1ad0f3b
small fixes / improvements (#341) Many small things I found The most important is probably the typescript transform The remaining bits should hopefully be self-explanatory from the commit messages
[ { "path": "crates/next-dev/src/main.rs", "patch": "@@ -121,22 +121,24 @@ async fn main() -> Result<()> {\n }\n }\n \n- join! {\n- async move {\n- let (elapsed, count) = tt_clone.get_or_wait_update_info(Duration::ZERO).await;\n- println!(\"initial compilation {} ({...
2022-09-21T15:47:23
huggingface/transformers
eb6a734995aa2586528e29fd9d0a13a55721444b
84b17e03f1e248cdb73ddb2360929e460cb84797
[RT-DETR] Fix onnx inference bug for Optype (Where) (#33877) * feat: [RT-DETR] Add onnx runtime config and fix onnx inference bug Optype (Where) * fix lint * use dtype istead of torch.float32 * add doc * remove onnx config * use dtype info * use tensor to fix lint
[ { "path": "src/transformers/models/rt_detr/modeling_rt_detr.py", "patch": "@@ -1752,7 +1752,7 @@ def generate_anchors(self, spatial_shapes=None, grid_size=0.05, device=\"cpu\", dt\n anchors = torch.concat(anchors, 1)\n valid_mask = ((anchors > eps) * (anchors < 1 - eps)).all(-1, keepdim=True...
2024-10-22T13:14:07
nodejs/node
1572a5b6cd16aeb6cafd338814ead76c0f198f1d
a865e8ba6781a7d3640df1c8cc1ce493fef7231b
doc: add URL.format() example PR-URL: https://github.com/nodejs/node/pull/18888 Fixes: https://github.com/nodejs/node/issues/18887 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewate...
[ { "path": "doc/api/url.md", "patch": "@@ -948,6 +948,20 @@ changes:\n The `url.format()` method returns a formatted URL string derived from\n `urlObject`.\n \n+```js\n+url.format({\n+ protocol: 'https',\n+ hostname: 'example.com',\n+ pathname: '/some/path',\n+ query: {\n+ page: 1,\n+ format: 'json...
2018-02-20T20:10:54
rust-lang/rust
78768361a0c06adff614515eb651a927c63c91b4
217693a1f02ca6431a434926ff3417bdb6dbac2e
Remove `rustc_middle::ty::util::ExplicitSelf`. It's an old (2017 or earlier) type that describes a `self` receiver. It's only used in `rustc_hir_analysis` for two error messages, and much of the complexity isn't used. I suspect it used to be used for more things. This commit removes it, and moves a greatly simplified...
[ { "path": "compiler/rustc_hir_analysis/src/check/compare_impl_item.rs", "patch": "@@ -12,7 +12,6 @@ use rustc_hir::{self as hir, AmbigArg, GenericParamKind, ImplItemKind, intravisi\n use rustc_infer::infer::{self, InferCtxt, TyCtxtInferExt};\n use rustc_infer::traits::util;\n use rustc_middle::ty::error::{E...
2025-03-28T02:44:55
ollama/ollama
1a19df1f3a39481dfe686c8f1041f91531a04ada
7ccfd97a9381588562a4764e41bde27ae5197ace
update vendored llama.cpp and ggml (#11823) * TEMPORARY: Update the llama.cpp upstream to my fork's Granite Four branch This will be redone once my branch is merged upstream in llama.cpp * feat: Update all patches There are a number that are no longer needed at all: - 0003-embeddings: Embeddings entirely overhaule...
[ { "path": "CMakeLists.txt", "patch": "@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.21)\n project(Ollama C CXX)\n \n include(CheckLanguage)\n+include(GNUInstallDirs)\n \n find_package(Threads REQUIRED)\n \n@@ -51,7 +52,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ml/backend/ggml/ggml/src/include\...
2025-08-14T21:42:58
vercel/next.js
c5ad3dfe398d90ebd5b7118b57a5b32dc1ad0f3b
3ba323c9993f9741c2776a3c13cb29df78c2d29c
Implement ValueDebugFormat for tuples (up to 12 elements) and derive it for some types (#402) Tuples will now be formatted properly when nested inside other `ValueDebugFormat` types. This means `vc.dbg().await?` will now debug tuple elements as well. I also derived `ValueDebugFormat` for two types which are found in ...
[ { "path": "crates/turbo-tasks/src/debug/mod.rs", "patch": "@@ -125,6 +125,36 @@ where\n }\n }\n \n+macro_rules! tuple_impls {\n+ ( $( $name:ident )+ ) => {\n+ impl<$($name: ValueDebugFormat),+> ValueDebugFormat for ($($name,)+)\n+ {\n+ #[allow(non_snake_case)]\n+ f...
2022-09-21T12:07:47
huggingface/transformers
93352e81f5019abaa52f7bdc2e3284779e864367
b644178ed4275e7d44cd0bc29a5a3319cb51bc0d
Fix Korean doc _toctree.yml (#34293) Fix korean doc _toctree.yml
[ { "path": "docs/source/ko/_toctree.yml", "patch": "@@ -673,7 +673,7 @@\n - local: in_translation\n title: (번역중) XLSR-Wav2Vec2\n title: (번역중) 오디오 모델\n- - isExpanded: false\n+ - isExpanded: false\n sections:\n - local: model_doc/vivit\n title: ViViT", "addit...
2024-10-22T09:05:56
nodejs/node
eda702104b3447dd56dc635565b4c88b0e04685a
1ebd966d2cef9d026b947c3c36d49c9989a60701
tls: better error message for socket disconnect The error emitted when a connection is closed before the TLS handshake completes seemed rather unspefic by just saying `socket hang up`. Use a more verbose message, that also indicates that this is a purely client-side error, and remove a misleading comment. PR-URL: ht...
[ { "path": "lib/_tls_wrap.js", "patch": "@@ -1074,7 +1074,6 @@ function onConnectSecure() {\n this.emit('secureConnect');\n }\n \n- // Uncork incoming data\n this.removeListener('end', onConnectEnd);\n }\n \n@@ -1083,7 +1082,8 @@ function onConnectEnd() {\n if (!this._hadError) {\n const optio...
2018-02-25T20:43:23
rust-lang/rust
a9cb15d793495b6b6318c7a60c42d12ddcf1609a
9cf05b893d33a4a83a145396ed76e41ea1da97f2
bootstrap: Fix CMAKE_OSX_ARCHITECTURES on all Apple platforms
[ { "path": "src/bootstrap/src/core/build_steps/llvm.rs", "patch": "@@ -696,7 +696,7 @@ fn configure_cmake(\n // CMakeFiles (and then only in tests), and so far no issues have been\n // reported, the system version is currently left unset.\n \n- if target.contains(\"darwin\") {\n+ ...
2025-03-24T10:05:41
huggingface/transformers
b644178ed4275e7d44cd0bc29a5a3319cb51bc0d
73d65e637b63193289dbf6727297cb9ecdf4ff29
[docs] Fix GenerationConfig params (#34299) fix generationconfigs
[ { "path": "src/transformers/generation/configuration_utils.py", "patch": "@@ -93,7 +93,7 @@ class GenerationMode(ExplicitEnum):\n \n class GenerationConfig(PushToHubMixin):\n # no-format\n- rf\"\"\"\n+ \"\"\"\n Class that holds a configuration for a generation task. A `generate` call supports ...
2024-10-22T09:03:25
ollama/ollama
837379a94c03e505bbad965a31eb1aa7976edb3c
a24f90604f883df01500b62992fb80b242022510
discovery: fix cudart driver version (#11614) We prefer the nvcuda library, which reports driver versions. When we dropped cuda v11, we added a safety check for too-old drivers. What we missed was the cudart fallback discovery logic didn't have driver version wired up. This fixes cudart discovery to expose the drive...
[ { "path": "discover/gpu.go", "patch": "@@ -263,6 +263,8 @@ func GetGPUInfo() GpuInfoList {\n \t\t\t\tvar driverMinor int\n \t\t\t\tif cHandles.cudart != nil {\n \t\t\t\t\tC.cudart_bootstrap(*cHandles.cudart, C.int(i), &memInfo)\n+\t\t\t\t\tdriverMajor = int(cHandles.cudart.driver_major)\n+\t\t\t\t\tdriverMi...
2025-08-13T22:43:33
vercel/next.js
4719517381f1b604f4a89f79241a8343ebee54e8
3943b20f554ba6558fa2f8262a302c14c42c134e
Updated example for i18n middleware (#40728) Added support for search params and NEXT_LOCALE cookie if set <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checkl...
[ { "path": "docs/advanced-features/i18n-routing.md", "patch": "@@ -183,7 +183,11 @@ export async function middleware(req: NextRequest) {\n }\n \n if (req.nextUrl.locale === 'default') {\n- return NextResponse.redirect(new URL(`/en${req.nextUrl.pathname}`, req.url))\n+ const locale = req.cookies.get...
2022-09-20T22:48:55
nodejs/node
4489a48dff3f44ee570a9dde6bb2428bd810b03d
449d1c8ea4747b14bc09e39a0ed51bb285062d37
buffer: fix typo in lib/buffer.js PR-URL: https://github.com/nodejs/node/pull/19126 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozh...
[ { "path": "lib/buffer.js", "patch": "@@ -722,7 +722,7 @@ Buffer.prototype.compare = function compare(target,\n // - buffer - a Buffer to search\n // - val - a string, Buffer, or number\n // - byteOffset - an index into `buffer`; will be clamped to an int32\n-// - encoding - an optional encoding, relevant is...
2018-03-04T08:24:17
rust-lang/rust
9cf05b893d33a4a83a145396ed76e41ea1da97f2
c83504faefcbb7c26426cbc20686b910bd58c8d2
bootstrap: Always set CMAKE_SYSTEM_NAME when cross-compiling To avoid a panic in cmake-rs that was introduced in: https://github.com/rust-lang/cmake-rs/pull/158
[ { "path": "src/bootstrap/src/core/build_steps/llvm.rs", "patch": "@@ -645,10 +645,17 @@ fn configure_cmake(\n if !builder.is_builder_target(target) {\n cfg.define(\"CMAKE_CROSSCOMPILING\", \"True\");\n \n+ // NOTE: Ideally, we wouldn't have to do this, and `cmake-rs` would just handle it ...
2025-03-24T12:08:25
golang/go
a1b53d85dad7648d545ee5e0d7e768f300bfcd84
b268b607743ebf570396750208e0032870653edd
cmd/go: add documentation for test and xtest fields output by go list The TestEmbedPatterns, TestEmbedFiles, XTestEmbedPatterns, and XTestEmbedFiles fields were left out of golang.org/cl/282195 which was supposed to document the embed fields available in the go list output. Add documentation for them in this CL. Fixe...
[ { "path": "src/cmd/go/alldocs.go", "patch": "@@ -787,8 +787,12 @@\n // XTestGoFiles []string // _test.go files outside package\n //\n // // Embedded files\n-// EmbedPatterns []string // //go:embed patterns\n-// EmbedFiles []string // files and directories matched by E...
2021-01-16T00:41:26
huggingface/transformers
73d65e637b63193289dbf6727297cb9ecdf4ff29
5077bc034fd806a8b0155e71b963596a765a7758
T5 compile compatibilty (#34089) * this worked in normal generation, needs more tests * fix almost all tests in t5 * nit * longt5, umt5, mt5 * style * udop, pix2struct * more models * fix some tests * fix onnx tests * tracing tests fixed * compile enabled and tested for t5 models * fix...
[ { "path": "src/transformers/cache_utils.py", "patch": "@@ -1475,11 +1475,7 @@ def from_legacy_cache(\n def get_seq_length(self, layer_idx: Optional[int] = 0) -> int:\n \"\"\"Returns the sequence length of the cached states. A layer index can be optionally passed.\"\"\"\n # check if empty...
2024-10-22T06:23:53
ollama/ollama
bb71654ebe846d97df306b163c086167239431e5
a343ae53a4fa0f75a37e1653df3b61a9ed1b843d
chore: fix some inconsistent function name in comment Signed-off-by: youzichuan <youzichuan6@outlook.com>
[ { "path": "ml/backend/ggml/quantization.go", "patch": "@@ -15,7 +15,7 @@ import (\n \tfsggml \"github.com/ollama/ollama/fs/ggml\"\n )\n \n-// convertToF32 converts (dequantizes) the raw data to F32 so we can then quantize it\n+// ConvertToF32 converts (dequantizes) the raw data to F32 so we can then quantiz...
2025-08-13T08:22:45
vercel/next.js
3943b20f554ba6558fa2f8262a302c14c42c134e
c2f48ea86d448c8be1982b46f184b1d2f2d6cd50
fix: InferGetServerSidePropsType and InferGetStaticPropsType (#40635) ## Problem Currently the Next.js infer utility (`InferGetServerSidePropsType` and `InferGetStaticPropsType`) types can lead to a wrong inferred types (`never`). This happens if these functions return something different than: `{props: {}}`. ...
[ { "path": "package.json", "patch": "@@ -135,6 +135,7 @@\n \"eslint-plugin-react-hooks\": \"4.5.0\",\n \"event-stream\": \"4.0.1\",\n \"execa\": \"2.0.3\",\n+ \"expect-type\": \"0.14.2\",\n \"express\": \"4.17.0\",\n \"faker\": \"5.5.3\",\n \"faunadb\": \"2.6.1\",", "additions"...
2022-09-20T22:25:01
nodejs/node
449d1c8ea4747b14bc09e39a0ed51bb285062d37
85212bb182f555f6d09e0b2f5f78d2d8e19bcef1
doc: fix n-api asynchronous threading docs Documentation for N-API Custom Asynchronous Operations incorrectly stated that async execution happens on the main event loop. Added details to napi_create_async_work about which threads are used to invoke the execute and complete callbacks. Changed 'async' to 'asynchronous'...
[ { "path": "doc/api/n-api.md", "patch": "@@ -3269,9 +3269,11 @@ napi_status napi_create_async_work(napi_env env,\n - `[in] async_resource_name`: Identifier for the kind of resource that is\n being provided for diagnostic information exposed by the `async_hooks` API.\n - `[in] execute`: The native function wh...
2018-03-01T17:27:16
golang/go
626406b703a418acd41c4163b5c58d832c09e1e4
12cd9cf7e080806f86595d71078a30e654458ebe
[dev.typeparams] go/types: import api_test.go changes from dev.go2go This CL imports tests for the go/types API from the dev.go2go branch. Only parse type parameters for packages with a magic prefix, with the rationale that while generics are in preview, we want existing (non-generic) tests to exercise the default mod...
[ { "path": "src/go/types/api_test.go", "patch": "@@ -22,7 +22,8 @@ import (\n \n func pkgFor(path, source string, info *Info) (*Package, error) {\n \tfset := token.NewFileSet()\n-\tf, err := parser.ParseFile(fset, path, source, 0)\n+\tmode := modeForSource(source)\n+\tf, err := parser.ParseFile(fset, path, s...
2021-01-19T22:30:09
huggingface/transformers
5077bc034fd806a8b0155e71b963596a765a7758
21d5025826857e11a75ef7b23ac15a607be4fc54
VLM: add more modularity (#34175) * update * fix tests + fix copies * fix tests once more
[ { "path": "src/transformers/models/llava/modeling_llava.py", "patch": "@@ -273,6 +273,20 @@ def resize_token_embeddings(self, new_num_tokens: Optional[int] = None, pad_to_m\n def get_image_features(\n self, pixel_values: torch.FloatTensor, vision_feature_layer: int, vision_feature_select_strateg...
2024-10-22T05:56:35
ollama/ollama
a343ae53a4fa0f75a37e1653df3b61a9ed1b843d
d0cf6c82811c2268a396888347ff95087a618d56
ggml: Use ordinal IDs for AMD GPUs on Linux when UUID is unavailable Some AMD GPUs do not provide UUIDs and report only "XX". In these cases, we should use the ordinal ID as an alternate identifier. This is the same as we always need to do on Windows for AMD. In addition, this prints out the ID for each GPU when enum...
[ { "path": "llama/patches/0017-ggml-Export-GPU-UUIDs.patch", "patch": "@@ -7,12 +7,12 @@ This enables matching up devices and information reported by the backend\n with tools (e.g. nvidia-smi) and system management libraries (e.g. nvml).\n ---\n ggml/include/ggml-backend.h | 1 +\n- ggml/src/ggml-cuda/...
2025-08-12T00:01:07
vercel/next.js
647a87f8f01ea3811565f0768ebdec0da667b4bd
b9c36e77485afb3b656ff5dcaeae0789e51b4807
better ssr error message (vercel/turbo#387)
[ { "path": "packages/next-swc/crates/next-core/src/server_render/asset.rs", "patch": "@@ -342,7 +342,8 @@ async fn render(\n // Show error page\n // TODO This need to include HMR handler to allow auto refresh\n let result = into_result(format!(\n- \"Error during rendering:\\n{}\\n\\n{}\",\...
2022-09-20T18:57:49
rust-lang/rust
14410b6369e7fbe221f37421b1840c51c663c6ca
5aeb82f6677dca53318d9a633cecb590c024aa4a
Fix a bug in orphan rules calculation Where a fundamental type applied twice wasn't considered local.
[ { "path": "src/tools/rust-analyzer/crates/hir-ty/src/method_resolution.rs", "patch": "@@ -874,21 +874,26 @@ pub fn check_orphan_rules(db: &dyn HirDatabase, impl_: ImplId) -> bool {\n return true;\n }\n \n- let unwrap_fundamental = |ty: Ty| match ty.kind(Interner) {\n- TyKind::Ref(_, _,...
2025-03-27T21:55:48
nodejs/node
bbc9807b207b08759b447672fa638c9ec96d4c17
96b2d8d3dc59f057622175eac0c57423964165c7
http2: fix flaky test-http2-https-fallback The test was flaky because it relied on a specific order of asynchronous operation that were fired paralellely. This was true on most platform and conditions, but not all the time. See: https://github.com/nodejs/node/pull/18986 PR-URL: https://github.com/nodejs/node/pull/19...
[ { "path": "test/parallel/test-http2-https-fallback.js", "patch": "@@ -31,7 +31,7 @@ function onRequest(request, response) {\n }));\n }\n \n-function onSession(session) {\n+function onSession(session, next) {\n const headers = {\n ':path': '/',\n ':method': 'GET',\n@@ -54,6 +54,10 @@ function onS...
2018-03-02T19:38:51
golang/go
12cd9cf7e080806f86595d71078a30e654458ebe
f8654579cdd637167bb38d38f0de76abc812d34c
[dev.typeparams] cmd/compile: disambiguate OXDOT in noder using types2 Selection info By using the types2 Selection information, we can create ODOT, ODOTPTR, OCALLPART, ODOTMETH, ODOTINTER, and OMETHEXPR nodes directly in noder, so we don't have to do that functionality in typecheck.go. Intermediate nodes are created ...
[ { "path": "src/cmd/compile/internal/noder/expr.go", "patch": "@@ -11,6 +11,7 @@ import (\n \t\"cmd/compile/internal/typecheck\"\n \t\"cmd/compile/internal/types\"\n \t\"cmd/compile/internal/types2\"\n+\t\"cmd/internal/src\"\n )\n \n func (g *irgen) expr(expr syntax.Expr) ir.Node {\n@@ -106,9 +107,7 @@ func ...
2021-01-19T21:54:33
ollama/ollama
d0cf6c82811c2268a396888347ff95087a618d56
8f4ec9ab289fd2a1f96384926a7f7bfd888d4ef9
fix(openai): handle reasoning_effort (#11868)
[ { "path": "api/types.go", "patch": "@@ -769,8 +769,8 @@ func (t *ThinkValue) IsString() bool {\n \treturn ok\n }\n \n-// AsBool returns the value as a bool (true if enabled in any way)\n-func (t *ThinkValue) AsBool() bool {\n+// Bool returns the value as a bool (true if enabled in any way)\n+func (t *ThinkV...
2025-08-12T18:02:01
vercel/next.js
2ee4f4c06f0519b17bcf7a055071eb6f6f8b03ec
e56d380018dcb43001fb572468b644a36c9484b9
better ssr error message (#387)
[ { "path": "crates/next-core/src/server_render/asset.rs", "patch": "@@ -342,7 +342,8 @@ async fn render(\n // Show error page\n // TODO This need to include HMR handler to allow auto refresh\n let result = into_result(format!(\n- \"Error during rendering:\\n{}\\n\\n{}\",\n+ \"<h1>Er...
2022-09-20T18:57:49
nodejs/node
96b2d8d3dc59f057622175eac0c57423964165c7
67b5985c0800b3cfaef5947e2cb6ef61c8cf49f8
fs: check for symlink support in fs-promises test Attempting to make symlinks as a non-administrator user in Windows causes a permission error. We need to update test-fs-promises to avoid making symlinks if the platform does not support it. PR-URL: https://github.com/nodejs/node/pull/19018 Reviewed-By: Anna Henningse...
[ { "path": "test/parallel/test-fs-promises.js", "patch": "@@ -116,21 +116,24 @@ function verifyStatObject(stat) {\n stats = await stat(newPath);\n verifyStatObject(stats);\n \n- const newLink = path.resolve(tmpDir, 'baz3.js');\n- await symlink(newPath, newLink);\n+ if (common.canCreateSymLin...
2018-02-26T21:06:12
golang/go
ec4051763d439e7108bc673dd0b1bf1cbbc5dfc5
7ece3a7b17ff637755dbe9e5687af22fd5f82168
runtime: fix typo in mgcscavenge.go recieved -> received Change-Id: I84336170e179832604e1311ea9263af36f9ce15a GitHub-Last-Rev: a6068c1d2b5a7711b93899f798dbc84f1ea339e4 GitHub-Pull-Request: golang/go#43845 Reviewed-on: https://go-review.googlesource.com/c/go/+/285675 Reviewed-by: Keith Randall <khr@golang.org> Trust: ...
[ { "path": "src/runtime/mgcscavenge.go", "patch": "@@ -562,7 +562,7 @@ func (p *pageAlloc) scavengeUnreserve(r addrRange, gen uint32) {\n func (p *pageAlloc) scavengeOne(work addrRange, max uintptr, mayUnlock bool) (uintptr, addrRange) {\n \tassertLockHeld(p.mheapLock)\n \n-\t// Defensively check if we've re...
2021-01-22T15:00:35
huggingface/transformers
21d5025826857e11a75ef7b23ac15a607be4fc54
32590b5ecb50f1c56be32cb0e686196be9427f2f
Attn implementation for composite models (#32238) * first try * codestyle * idefics2 is happy * [run-slow] llava, llava_next, video_llava, vipllava, llava_next_video, idefics, idefics2, kosmos2, fuyu, blip, blip_2, instructblip, instructblipvideo, paligemma * fix-copies * [run-slow] llava, llava_next, v...
[ { "path": "docs/source/en/perf_infer_gpu_one.md", "patch": "@@ -79,6 +79,7 @@ FlashAttention-2 is currently supported for the following architectures:\n * [OLMo](https://huggingface.co/docs/transformers/model_doc/olmo#transformers.OlmoModel)\n * [OLMoE](https://huggingface.co/docs/transformers/model_doc/olm...
2024-10-22T04:54:44
vercel/next.js
e96e8bb1a6e766799441a110aa78bd0bd7866037
ef98d32d4ac2c857a347ba8635be22fdb29aaa9b
Throw a runtime error when Cjs require/require.resolve fail to resolve (#400) This adds support for the following conditional importing pattern with CommonJS: ```js let mod; try { mod = require("some_module"); } catch (e) {} ```
[ { "path": "crates/turbopack-ecmascript/src/references/cjs.rs", "patch": "@@ -1,7 +1,8 @@\n use anyhow::Result;\n use swc_core::{\n common::DUMMY_SP,\n- ecma::ast::{Callee, Expr, ExprOrSpread, Ident},\n+ ecma::ast::{Callee, Expr, ExprOrSpread, Ident, Lit, Str},\n+ quote,\n };\n use turbo_tasks::...
2022-09-20T16:49:35
nodejs/node
67b5985c0800b3cfaef5947e2cb6ef61c8cf49f8
4bfc03b57dfbf6ac245b56c62b718ccd68e12cd7
net: fix usage of writeBuffer in makeSyncWrite The binding writeBuffer has been changed in https://github.com/nodejs/node/pull/19041 and it now requires the last argument to be a context object. makeSyncWrite was not updated accordingly, resulting assertions on Windows. This patch fixes the usage of writeBuffer there....
[ { "path": "lib/internal/errors.js", "patch": "@@ -426,7 +426,23 @@ function message(key, args) {\n * @returns {Error}\n */\n function uvException(ctx) {\n- const err = new Error();\n+ const [ code, uvmsg ] = errmap.get(ctx.errno);\n+ let message = `${code}: ${uvmsg}, ${ctx.syscall}`;\n+\n+ let path;\n...
2018-03-03T07:43:14
huggingface/transformers
32590b5ecb50f1c56be32cb0e686196be9427f2f
f701b98e4a10d3b882834308f2f0c9398b19d343
Fix method name which changes in tutorial (#34252) The method `model_download_tool` was called `model_download_counter` earlier in the tutorial, this raises an error when following the code.
[ { "path": "docs/source/en/agents.md", "patch": "@@ -332,7 +332,7 @@ This code can quickly be converted into a tool, just by wrapping it in a functio\n from transformers import tool\n \n @tool\n-def model_download_counter(task: str) -> str:\n+def model_download_tool(task: str) -> str:\n \"\"\"\n This...
2024-10-21T17:21:52
golang/go
7ece3a7b17ff637755dbe9e5687af22fd5f82168
50cba0506f0f979cf1a1670ffff9113a4cdb6273
net/http: fix flaky TestDisableKeepAliveUpgrade This test hijacks a connection. It was reading from the net.Conn returned by Hijack, not the bufio.ReadWriter, causing flaky failures when a read-ahead byte was held in the read buffer. Fixes #43073. Change-Id: Ic3e7f704fba9635fd851cb3c0c0c74e312b75f6e Reviewed-on: htt...
[ { "path": "src/net/http/serve_test.go", "patch": "@@ -6460,13 +6460,15 @@ func TestDisableKeepAliveUpgrade(t *testing.T) {\n \t\tw.Header().Set(\"Connection\", \"Upgrade\")\n \t\tw.Header().Set(\"Upgrade\", \"someProto\")\n \t\tw.WriteHeader(StatusSwitchingProtocols)\n-\t\tc, _, err := w.(Hijacker).Hijack()...
2021-01-22T02:24:55
vercel/next.js
0fb3284d1fc0829c9934547fb939067acbe95d8b
642d52e1ac9ef5a6f8f3bcfe4042a6c569927523
Use resolved url in flight entry loader (#40697) If there's any resolve alias in webpack config, an aliased resource url will error with `require.resolve` usage in flight manifest plugin, we need to resolve the absolute resource url first then pass down to flight manifest ## Bug - [ ] Related issues linked using `f...
[ { "path": "packages/next/build/webpack/loaders/next-flight-client-entry-loader.ts", "patch": "@@ -41,9 +41,16 @@ export default async function transformSource(this: any): Promise<string> {\n `\n \n const buildInfo = getModuleBuildInfo(this._module)\n+ const resolve = this.getResolve()\n+\n+ // Resol...
2022-09-20T10:40:27
nodejs/node
81d73fe83e280a36b094980eee85badece94f5ea
c111e133ae58f0d3a6a0e464abc047879edd66bf
test: fix flaky inspector-stop-profile-after-done Use common.platformTimeout() to give longer durations to Raspberry Pi devices to make test more reliable. PR-URL: https://github.com/nodejs/node/pull/18126 Fixes: https://github.com/nodejs/node/issues/16772 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewe...
[ { "path": "test/sequential/sequential.status", "patch": "@@ -13,7 +13,6 @@ test-inspector-debug-end : PASS, FLAKY\n test-inspector-async-hook-setup-at-signal: PASS, FLAKY\n test-http2-ping-flood : PASS, FLAKY\n test-http2-settings-flood : PASS, FLAKY\n-test-inspecto...
2018-03-02T20:10:55
ollama/ollama
ee04dbba51a4299b6ff4bb19f758eeacbf2b35d8
735c41f9ca38fd2507c3e8e93efe6bbb94455a6f
server: fix error when parsing bad harmony tool calls Thanks @moll for reporting! Fixes: #11781
[ { "path": "server/routes.go", "patch": "@@ -364,7 +364,8 @@ func (s *Server) GenerateHandler(c *gin.Context) {\n \t\t\t\t\t\t*toolName = strings.TrimPrefix(*toolName, \"functions.\")\n \t\t\t\t\t\tvar args api.ToolCallFunctionArguments\n \t\t\t\t\t\tif err := json.Unmarshal([]byte(toolContent), &args); err ...
2025-08-11T21:09:13
huggingface/transformers
a4122813d1309385f303f60b59a1f9944fada761
24bdc94da5d915afc8c766f8da8acdd509d808ff
Add DetrImageProcessorFast (#34063) * add fully functionning image_processing_detr_fast * Create tensors on the correct device * fix copies * fix doc * add tests equivalence cpu gpu * fix doc en * add relative imports and copied from * Fix copies and nit
[ { "path": "docs/source/en/model_doc/detr.md", "patch": "@@ -181,6 +181,15 @@ If you're interested in submitting a resource to be included here, please feel f\n - post_process_instance_segmentation\n - post_process_panoptic_segmentation\n \n+## DetrImageProcessorFast\n+\n+[[autodoc]] DetrImageProcess...
2024-10-21T13:05:05
golang/go
50cba0506f0f979cf1a1670ffff9113a4cdb6273
cf10e69f17a202499aed8de6dd08f9642ab61b53
time: clarify Timer.Reset behavior on AfterFunc Timers Fixes #28100 Change-Id: I37d4d7badf455e4ecf982d4fc7cb070052de2e45 Reviewed-on: https://go-review.googlesource.com/c/go/+/285632 Trust: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
[ { "path": "src/time/sleep.go", "patch": "@@ -101,7 +101,9 @@ func NewTimer(d Duration) *Timer {\n // It returns true if the timer had been active, false if the timer had\n // expired or been stopped.\n //\n-// Reset should be invoked only on stopped or expired timers with drained channels.\n+// For a Timer ...
2021-01-22T03:41:56
vercel/next.js
642d52e1ac9ef5a6f8f3bcfe4042a6c569927523
e70406022d30ff263df7658ecb311d5e6e14a59f
Break assetPrefix app tests into separate suite (#40701) As discussed in slack this breaks out the `assetPrefix` tests to a separate suite to speed up the main `app` suite. x-ref: [slack thread](https://vercel.slack.com/archives/C035J346QQL/p1663623560467579)
[ { "path": "test/e2e/app-dir/app/next.config.js", "patch": "@@ -8,10 +8,8 @@ module.exports = {\n algorithm: 'sha256',\n },\n },\n- // assetPrefix: '/assets',\n rewrites: async () => {\n return {\n- // beforeFiles: [ { source: '/assets/:path*', destination: '/:path*' } ],\n afte...
2022-09-20T01:17:16
ollama/ollama
203c137810846865f6358b25c8937bc4b55dfda4
30f8a68c4cc55e0f3a717b891931847c97190843
openai: allow for content _and_ tool calls in the same message Previously our OpenAI chat completions compat layer assumed that tool calls and content would never be provided together, but this is not a correct assumption. Content is only optional when tool calls are present, but tool calls and content can be provided...
[ { "path": "openai/openai.go", "patch": "@@ -403,7 +403,11 @@ func fromChatRequest(r ChatCompletionRequest) (*api.ChatRequest, error) {\n \tfor _, msg := range r.Messages {\n \t\tswitch content := msg.Content.(type) {\n \t\tcase string:\n-\t\t\tmessages = append(messages, api.Message{Role: msg.Role, Content:...
2025-08-06T22:50:30
golang/go
f8654579cdd637167bb38d38f0de76abc812d34c
18bd7aa62581f313c86164d763b1e246307888a9
[dev.typeparams] cmd/compile/internal/types2: adjust errors in branch checking code, fix a bug The types2.Config.IgnoreBranches flag mistakenly excluded a set of label-unrelated branch checks. After fixing this and also adjusting some error messages to match the existing compiler errors, more errorcheck tests pass now...
[ { "path": "src/cmd/compile/internal/noder/irgen.go", "patch": "@@ -35,7 +35,7 @@ func check2(noders []*noder) {\n \t// typechecking\n \tconf := types2.Config{\n \t\tInferFromConstraints: true,\n-\t\tIgnoreBranches: true, // parser already checked via syntax.CheckBranches mode\n+\t\tIgnoreLabels: ...
2021-01-22T04:20:22
nodejs/node
e8bb1f35df079cf0111fc18a8a24ec0a2d66eb3e
a6c490cc8e8c848d6c4d5b8739827198055fe40f
buffer: refactor all read/write functions There are a lot of changes in this commit: 1) Remove the `noAssert` argument from all read and write functions. 2) Improve the performance of all read floating point functions significantly. This is done by switching to TypedArrays as the write floating point write func...
[ { "path": "doc/api/buffer.md", "patch": "@@ -1538,31 +1538,32 @@ deprecated: v8.0.0\n \n The `buf.parent` property is a deprecated alias for `buf.buffer`.\n \n-### buf.readDoubleBE(offset[, noAssert])\n-### buf.readDoubleLE(offset[, noAssert])\n+### buf.readDoubleBE(offset)\n+### buf.readDoubleLE(offset)\n ...
2018-01-30T16:34:25
huggingface/transformers
24bdc94da5d915afc8c766f8da8acdd509d808ff
ca541bd4f4d932f486a4116deba833b4ffaebd15
Change Paligemma import logging to work with modular (#34211) * change import logging * fix CI
[ { "path": "src/transformers/models/glm/modeling_glm.py", "patch": "@@ -25,7 +25,6 @@\n import torch\n import torch.nn as nn\n import torch.utils.checkpoint\n-from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss\n \n from ...activations import ACT2FN\n from ...cache_utils import Cache, DynamicCa...
2024-10-21T12:55:27
vercel/next.js
a03cdc6d350192a5ef960de3b5bc037b691cb8c0
5a50a9980ff7d55c443656cf1091f756faac82fa
docs(examples): fix error connection handling (#40633) When there's an error while connect to mongodb (timeout for example), it will be cached and need to restart next.js, by handling the error correctly (clear cached promise) it will try to reconnect to mongodb if the function is called again ## Bug - [ ] Related...
[ { "path": "examples/with-mongodb-mongoose/lib/dbConnect.js", "patch": "@@ -33,7 +33,14 @@ async function dbConnect() {\n return mongoose\n })\n }\n- cached.conn = await cached.promise\n+\n+ try {\n+ cached.conn = await cached.promise\n+ } catch (e) {\n+ cached.promise = null\n+ throw...
2022-09-19T21:26:24
ollama/ollama
fa8be9e35ce88ef28cd59062f1c8b647a8261bfc
8a75e9ee151933d71182d31125cec0fb821d0183
clean up debugging (#11756)
[ { "path": "ml/backend/ggml/ggml.go", "patch": "@@ -239,12 +239,10 @@ func New(modelPath string, params ml.BackendParams) (ml.Backend, error) {\n \tcreateTensor := func(t tensor, bts []*C.struct_ggml_backend_buffer_type, layer int) *C.struct_ggml_tensor {\n \t\tfor _, bt := range bts {\n \t\t\tif _, ok := ct...
2025-08-06T20:31:22
golang/go
e2b4f1fea5b0367fd6d687f677f9a8cb9dc252ea
9f43a9e07b1379a808de38559e408040b17ced1c
doc/go1.16: minor formatting fix Change-Id: Ie924a15da0d9a35089d1d4b3d6c4a07b93bdf270 Reviewed-on: https://go-review.googlesource.com/c/go/+/285393 Trust: Austin Clements <austin@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
[ { "path": "doc/go1.16.html", "patch": "@@ -892,11 +892,11 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n </p>\n \n <p><!-- CL 261917 -->\n- <a href=\"/pkg/syscall/?GOOS=windows#SysProcAttr\"><code>SysProcAttr</code></a> on Windows has a new NoInheritHandles field that d...
2021-01-21T19:24:14
nodejs/node
1411b30f4646878fc3ff452c3d97a240c0d8b807
069dd10ca2258a27f3cba2db688ce4b97b624241
buffer: move c++ float functions to js This ports the Buffer#write(Double|Float)(B|L)E functions to JS. This fixes a security issue concerning type confusion and fixes another possible crash in combination with `noAssert`. In addition to that it will also significantly improve the write performance. Fixes: https://gi...
[ { "path": "lib/buffer.js", "patch": "@@ -34,10 +34,6 @@ const {\n swap16: _swap16,\n swap32: _swap32,\n swap64: _swap64,\n- writeDoubleBE: _writeDoubleBE,\n- writeDoubleLE: _writeDoubleLE,\n- writeFloatBE: _writeFloatBE,\n- writeFloatLE: _writeFloatLE,\n kMaxLength,\n kStringMaxLength\n } = pr...
2018-01-30T16:21:28
huggingface/transformers
e46e3bc173f472160ee5f6813520806df4762c4a
66047640076a60e27c031726ec489e0b79143150
Fix UDOP dtype issue (#34180) * Trigger UDOP tests * Try forcing dtype in LayoutLMV3 * Do checks to see where uint8 is getting in * Do checks to see where uint8 is getting in * Found it! * Add .astype(np.float32) * Remove forced check, make fixup * Checking where exactly the uint8 creeps in * M...
[ { "path": "src/transformers/image_transforms.py", "patch": "@@ -123,11 +123,11 @@ def rescale(\n if not isinstance(image, np.ndarray):\n raise TypeError(f\"Input image must be of type np.ndarray, got {type(image)}\")\n \n- rescaled_image = image * scale\n+ rescaled_image = image.astype(np....
2024-10-18T15:54:58
vercel/next.js
6279dba3b8fe1d6b881145d6079db6ffb26e593d
aed2dc0c853afd1f42eec5e360fb7eab73d5fc93
Avoid direct React client API imports in the server graph (#40686) We have heuristic checks in the SWC transform to make sure you are not using client-only APIs such as `useState` inside the Server Components graph. However inside our server graph compilation we also have to import the framework and renderer itself...
[ { "path": "packages/next/pages/_document.tsx", "patch": "@@ -1,4 +1,4 @@\n-import React, { Component, ReactElement, ReactNode, useContext } from 'react'\n+import React, { ReactElement, ReactNode, useContext } from 'react'\n import {\n OPTIMIZED_FONT_PROVIDERS,\n NEXT_BUILTIN_DOCUMENT,\n@@ -353,7 +353,13...
2022-09-19T18:08:52
rust-lang/rust
8d2c63f514a74752a3186b0bf3e8f3aef57dc12e
cfd00f9c16d9b3ab98d6e06125c6baa83dfa4a03
Don't use `kw::Empty` in `hir::Lifetime::ident`. `hir::Lifetime::ident` currently sometimes uses `kw::Empty` for elided lifetimes and sometimes uses `kw::UnderscoreLifetime`, and the distinction is used when creating some error suggestions, e.g. in `Lifetime::suggestion` and `ImplicitLifetimeFinder::visit_ty`. I found...
[ { "path": "compiler/rustc_ast_lowering/src/item.rs", "patch": "@@ -5,7 +5,7 @@ use rustc_ast::*;\n use rustc_errors::ErrorGuaranteed;\n use rustc_hir::def::{DefKind, Res};\n use rustc_hir::def_id::{CRATE_DEF_ID, LocalDefId};\n-use rustc_hir::{self as hir, HirId, PredicateOrigin};\n+use rustc_hir::{self as h...
2025-03-24T21:21:28
ollama/ollama
fcec04bf4249f91c553ec3d2914a493bf794d105
ee92ca3e1d1f95ce5372a395d19b6a5ed11afaeb
gptoss: fix memory calc (#11700)
[ { "path": "fs/ggml/ggml.go", "patch": "@@ -676,7 +676,7 @@ func (f GGML) GraphSize(context, batch uint64, numParallel int, kvCacheType stri\n \t\t\t}\n \t\t}\n \t\tfullOffload = 4 * f.KV().HeadCountMax() / cmp.Or(f.KV().HeadCountKVMin(), 1) * kvTotal / 6\n-\t\tpartialOffload = 2 * fullOffload\n+\t\tpartialO...
2025-08-05T22:56:12
huggingface/transformers
0437d6cd03f24766fec93e950c74abdc0b6183e4
5a5b590d060ea59433b2f666453f3314d86f98b1
Fix broken test decorator `require_torch_up_to_2_accelerators` (#34201) * fix broken require_torch_up_to_2_accelerators * make style
[ { "path": "src/transformers/testing_utils.py", "patch": "@@ -827,8 +827,9 @@ def require_torch_up_to_2_accelerators(test_case):\n if not is_torch_available():\n return unittest.skip(reason=\"test requires PyTorch\")(test_case)\n \n- return unittest.skipUnless(backend_device_count(torch_device...
2024-10-18T11:54:55
golang/go
9f43a9e07b1379a808de38559e408040b17ced1c
3c2f11ba5b76cda35a5bedc9299833c649216b83
doc/go1.16: mention new debug/elf constants For #40700 Change-Id: If105d2f043539bb0893f577a984f14ee3e7ca753 Reviewed-on: https://go-review.googlesource.com/c/go/+/285212 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
[ { "path": "doc/go1.16.html", "patch": "@@ -616,6 +616,16 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n </dd>\n </dl><!-- crypto/x509 -->\n \n+<dl id=\"debug/elf\"><dt><a href=\"/pkg/debug/elf/\">debug/elf</a></dt>\n+ <dd>\n+ <p><!-- CL 255138 -->\n+ More <a href=\"/pkg/d...
2021-01-21T04:09:18
nodejs/node
069dd10ca2258a27f3cba2db688ce4b97b624241
9e9c516512668133813c71e39d56b011b804572b
test: remove vulgar language The FIXME is obsolete as it was meant about a indentation issue that got fixed a long time ago. PR-URL: https://github.com/nodejs/node/pull/18395 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anatoli Papirovski <apapirov...
[ { "path": "test/parallel/test-zerolengthbufferbug.js", "patch": "@@ -6,7 +6,6 @@ const http = require('http');\n \n const server = http.createServer((req, res) => {\n const buffer = Buffer.alloc(0);\n- // FIXME: WTF gjslint want this?\n res.writeHead(200, { 'Content-Type': 'text/html',\n ...
2018-01-30T19:27:16
vercel/next.js
4a53582e14c313056f29bf8a241c9352dc17db70
db3b8446d750dd24ca61912472e07e6c69d64400
fix(image): preload should respect crossOrigin (#40676) ## Bug - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` Currently, `link[rel=preload]` inserted by `priority` will not have the `crossOrigin` attribute, which will...
[ { "path": "packages/next/client/future/image.tsx", "patch": "@@ -825,10 +825,14 @@ export default function Image({\n imageSrcSetPropName = 'imageSrcSet'\n imageSizesPropName = 'imageSizes'\n }\n- const linkProps = {\n+ const linkProps: React.DetailedHTMLProps<\n+ React.LinkHTMLAttributes<HTML...
2022-09-19T17:25:27
rust-lang/rust
2b3bceb89f4a1c8e122edfce1f25e01fd5edcb7b
c8609d96cef4d45746e9cd7ba01b57c83843ae53
Add `{ast,hir,thir}::PatKind::Missing` variants. "Missing" patterns are possible in bare fn types (`fn f(u32)`) and similar places. Currently these are represented in the AST with `ast::PatKind::Ident` with no `by_ref`, no `mut`, an empty ident, and no sub-pattern. This flows through to `{hir,thir}::PatKind::Binding` ...
[ { "path": "src/items.rs", "patch": "@@ -2433,11 +2433,7 @@ pub(crate) fn span_hi_for_param(context: &RewriteContext<'_>, param: &ast::Param\n }\n \n pub(crate) fn is_named_param(param: &ast::Param) -> bool {\n- if let ast::PatKind::Ident(_, ident, _) = param.pat.kind {\n- ident.name != symbol::kw:...
2025-03-26T22:33:02
huggingface/transformers
5a5b590d060ea59433b2f666453f3314d86f98b1
b54109c7466f6e680156fbd30fa929e2e222d730
BLIP: fix input expansion logic (#34225) fix
[ { "path": "src/transformers/models/blip_2/processing_blip_2.py", "patch": "@@ -137,7 +137,9 @@ def __call__(\n # because BLIP expects image tokens to be at the beginning even before BOS token\n if self.num_query_tokens is not None:\n image_tokens = self.image_token.co...
2024-10-18T10:17:30
ollama/ollama
8253ad4d2b2e7ac58268192051b92b59986c874f
fa7776fd2458fc3a8aeb7f12e4bc65b439955319
ggml: Prevent kv cache quanitization on gpt-oss KV cache quantization has a dependency on the flash attention kernel. We currently cannot use flash attention with gpt-oss as it requires additional operations. The model definition does not call flash attention, so it works regardless of the setting but the cache will ...
[ { "path": "fs/ggml/ggml.go", "patch": "@@ -761,6 +761,10 @@ func (f GGML) SupportsFlashAttention() bool {\n \t\treturn false\n \t}\n \n+\tif f.KV().Architecture() == \"gptoss\" {\n+\t\treturn false\n+\t}\n+\n \t// Check head counts match and are non-zero\n \theadCountK := f.KV().EmbeddingHeadCountK()\n \the...
2025-08-05T19:42:07
nodejs/node
1d19fd393cc6d1e57475441e73faa81a5e9330ed
c698017a2fc25d51b0ace432c539d24b7d7af709
doc: Readable unpipe on Writable error event PR-URL: https://github.com/nodejs/node/pull/18080 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "doc/api/stream.md", "patch": "@@ -323,6 +323,9 @@ The `'unpipe'` event is emitted when the [`stream.unpipe()`][] method is called\n on a [Readable][] stream, removing this [Writable][] from its set of\n destinations.\n \n+This is also emitted in case this [Writable][] stream emits an error when a...
2018-02-08T08:22:02
golang/go
953d1feca9b21af075ad5fc8a3dad096d3ccc3a0
b186e4d70de28697d1ad7e3c31625793e6338ef0
all: introduce and use internal/execabs Introduces a wrapper around os/exec, internal/execabs, for use in all commands. This wrapper prevents exec.LookPath and exec.Command from running executables in the current directory. All imports of os/exec in non-test files in cmd/ are replaced with imports of internal/execabs...
[ { "path": "src/cmd/api/goapi.go", "patch": "@@ -16,10 +16,10 @@ import (\n \t\"go/parser\"\n \t\"go/token\"\n \t\"go/types\"\n+\texec \"internal/execabs\"\n \t\"io\"\n \t\"log\"\n \t\"os\"\n-\t\"os/exec\"\n \t\"path/filepath\"\n \t\"regexp\"\n \t\"runtime\"", "additions": 1, "deletions": 1, "lan...
2021-01-15T20:14:06
rust-lang/rust
32f330158ef0151427f5d9f2617eb7998c4d4567
aba76d0e78aeb031f941c7a3466eb4d9d13d7a85
Add `{ast,hir,thir}::PatKind::Missing` variants. "Missing" patterns are possible in bare fn types (`fn f(u32)`) and similar places. Currently these are represented in the AST with `ast::PatKind::Ident` with no `by_ref`, no `mut`, an empty ident, and no sub-pattern. This flows through to `{hir,thir}::PatKind::Binding` ...
[ { "path": "clippy_lints/src/equatable_if_let.rs", "patch": "@@ -45,6 +45,7 @@ fn unary_pattern(pat: &Pat<'_>) -> bool {\n pats.iter().all(unary_pattern)\n }\n match &pat.kind {\n+ PatKind::Missing => unreachable!(),\n PatKind::Slice(_, _, _)\n | PatKind::Range(_, _, _)...
2025-03-26T22:33:02
vercel/next.js
65be8a08049b81170e58661950335b9e12e635fd
e35ad2f2dccc4a222a8fd94ea2bc061cd016f5ae
handle exceptions during waiting for events (vercel/turbo#383)
[ { "path": "packages/next-swc/crates/next-dev/benches/util/page_guard.rs", "patch": "@@ -1,8 +1,12 @@\n-use std::time::Duration;\n+use std::{sync::Arc, time::Duration};\n \n use anyhow::{anyhow, Result};\n-use chromiumoxide::{cdp::js_protocol::runtime::EventBindingCalled, listeners::EventStream, Page};\n-use...
2022-09-19T15:22:05
huggingface/transformers
b54109c7466f6e680156fbd30fa929e2e222d730
6ba31a8a94bf7cfeaf59ffc3bc9e0b0cd3e25788
Fix-red-ci (#34230) * fix copies, skip fx for llama * styke * re-fix copies * last? * style
[ { "path": "src/transformers/models/mistral/modeling_mistral.py", "patch": "@@ -1358,6 +1358,7 @@ def forward(\n output_attentions: Optional[bool] = None,\n output_hidden_states: Optional[bool] = None,\n return_dict: Optional[bool] = None,\n+ **kwargs,\n ) -> Union[Tuple, Q...
2024-10-17T21:38:35
nodejs/node
c698017a2fc25d51b0ace432c539d24b7d7af709
f7e5b385a7d4084714c1360079d46d0725e7879a
n-api: fix object test Passing a pointer to a static integer is sufficient for the test. PR-URL: https://github.com/nodejs/node/pull/19039 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
[ { "path": "test/addons-napi/test_object/test_object.c", "patch": "@@ -1,7 +1,6 @@\n #include <node_api.h>\n #include \"../common.h\"\n #include <string.h>\n-#include <stdlib.h>\n \n static int test_value = 3;\n \n@@ -199,9 +198,7 @@ napi_value Wrap(napi_env env, napi_callback_info info) {\n napi_value arg...
2018-02-27T18:02:24
golang/go
5a8a2265fb3f2a4f2b37737e8a69e1aea763325f
46e2e2e9d99925bbf724b12693c6d3e27a95d6a0
cmd/cgo: report exec errors a bit more clearly Change-Id: I0e6bebf0e2e6efdef4be880e0c6c7451b938924b Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/949417 Reviewed-by: Katie Hockman <katiehockman@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com> Reviewed-by: Ian Lance Taylor <iant@g...
[ { "path": "src/cmd/cgo/util.go", "patch": "@@ -63,7 +63,7 @@ func run(stdin []byte, argv []string) (stdout, stderr []byte, ok bool) {\n \tp.Env = append(os.Environ(), \"TERM=dumb\")\n \terr := p.Run()\n \tif _, ok := err.(*exec.ExitError); err != nil && !ok {\n-\t\tfatalf(\"%s\", err)\n+\t\tfatalf(\"exec %s...
2021-01-11T15:01:24
rust-lang/rust
9f089e080c47bc282aa98f1e8c72ff44076afbb9
217693a1f02ca6431a434926ff3417bdb6dbac2e
Add `{ast,hir,thir}::PatKind::Missing` variants. "Missing" patterns are possible in bare fn types (`fn f(u32)`) and similar places. Currently these are represented in the AST with `ast::PatKind::Ident` with no `by_ref`, no `mut`, an empty ident, and no sub-pattern. This flows through to `{hir,thir}::PatKind::Binding` ...
[ { "path": "compiler/rustc_ast/src/ast.rs", "patch": "@@ -563,6 +563,7 @@ impl Pat {\n /// This is intended for use by diagnostics.\n pub fn to_ty(&self) -> Option<P<Ty>> {\n let kind = match &self.kind {\n+ PatKind::Missing => unreachable!(),\n // In a type expression ...
2025-03-26T22:33:02
ollama/ollama
fa7776fd2458fc3a8aeb7f12e4bc65b439955319
0d38b6650259e6e95c4cc7192d8588e5945427f9
gpt-oss (#11672) * bf16 * tests * gpt-oss * enable gptoss for engine * rough estimate * convert to mxfp4 * handle safetensors U8 * clamp glu/linear * update tokenizer * MXFP4 support This implements the Open Compute Microscaling (MX) FP4 format as a tensor type with backend implementations focusing on mulmat...
[ { "path": "api/types.go", "patch": "@@ -85,10 +85,11 @@ type GenerateRequest struct {\n \tOptions map[string]any `json:\"options\"`\n \n \t// Think controls whether thinking/reasoning models will think before\n-\t// responding. Needs to be a pointer so we can distinguish between false\n+\t// responding. Can...
2025-08-05T19:21:16
huggingface/transformers
6ba31a8a94bf7cfeaf59ffc3bc9e0b0cd3e25788
7a06d07e14ce4f575ac97287d9af472bd88e9d4c
Enable users to use their own loss functions + deal with prefetching for grad accum (#34198) * bookmark * Bookmark * Bookmark * Actually implement * Pass in kwarg explicitly * Adjust for if we do or don't have labels * Bookmark fix for od * bookmark * Fin * closer * Negate accelerate grad...
[ { "path": "src/transformers/trainer.py", "patch": "@@ -340,12 +340,16 @@ class Trainer:\n The function may have zero argument, or a single one containing the optuna/Ray Tune/SigOpt trial object, to\n be able to choose different architectures according to hyper parameters (such as lay...
2024-10-17T21:01:56
vercel/next.js
7913996fa6cfc5da3a7d4f891d0ce7e25cdc1d20
835fc92f4ca775edd1173150ca6d98c2393a540c
handle exceptions during waiting for events (#383)
[ { "path": "crates/next-dev/benches/util/page_guard.rs", "patch": "@@ -1,8 +1,12 @@\n-use std::time::Duration;\n+use std::{sync::Arc, time::Duration};\n \n use anyhow::{anyhow, Result};\n-use chromiumoxide::{cdp::js_protocol::runtime::EventBindingCalled, listeners::EventStream, Page};\n-use futures::StreamEx...
2022-09-19T15:22:05
nodejs/node
49dd80935c68ce26dd56d0c0ec59c37c2d92dd10
994320b07be5da33e98785a7dab4bd2bb7cb8f12
fs: throw futimesSync errors in JS PR-URL: https://github.com/nodejs/node/pull/19041 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "lib/fs.js", "patch": "@@ -1183,7 +1183,9 @@ fs.futimesSync = function(fd, atime, mtime) {\n validateUint32(fd, 'fd');\n atime = toUnixTimestamp(atime, 'atime');\n mtime = toUnixTimestamp(mtime, 'mtime');\n- binding.futimes(fd, atime, mtime);\n+ const ctx = {};\n+ binding.futimes(fd, atim...
2018-02-27T18:25:02
golang/go
46e2e2e9d99925bbf724b12693c6d3e27a95d6a0
3d40895e36e5f16654fa6b75f7fdf59edb18d2e0
cmd/go: pass resolved CC, GCCGO to cgo This makes sure the go command and cgo agree about exactly which compiler is being used. This issue was reported by RyotaK. Fixes CVE-2021-3115 Fixes #43783 Change-Id: If171c5c8b2523efb5ea2d957e5ad1380a038149c Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-pr...
[ { "path": "src/cmd/go/internal/work/action.go", "patch": "@@ -57,6 +57,9 @@ type Builder struct {\n \tid sync.Mutex\n \ttoolIDCache map[string]string // tool name -> tool ID\n \tbuildIDCache map[string]string // file name -> build ID\n+\n+\tcgoEnvOnce sync.Once\n+\tcgoEnvCache []string\n }\n \n ...
2021-01-11T14:41:54
huggingface/transformers
7a06d07e14ce4f575ac97287d9af472bd88e9d4c
c1c7e89620b43f0924148e267a6da5d38450ce1f
Support Llama 3.2 conversion (text models) (#33778) * Support Llama 3.2 conversion (text models) Co-authored-by: Omar Sanseviero <osanseviero@gmail.com> * Fix rope factor * Update chat template Initialize from a well-known template. The guidance is that the changes should be applied to 3.1 models as well...
[ { "path": "src/transformers/models/llama/convert_llama_weights_to_hf.py", "patch": "@@ -15,11 +15,12 @@\n import gc\n import json\n import os\n-import shutil\n+import tempfile\n import warnings\n from typing import List\n \n import torch\n+from tokenizers import AddedToken, processors\n \n from transformers...
2024-10-17T20:37:37
ollama/ollama
0d38b6650259e6e95c4cc7192d8588e5945427f9
4183bb0574a28b73276efef944107d0c45d79c95
kvcache: Log contents of cache when unable to find a slot There is a bug when using sliding window attention where we run out of KV cache slots. This is likely due to not correctly removing all of the entries as they slide out of range. This adds additional logging when this occurs to track down the source. Bug #1012...
[ { "path": "kvcache/causal.go", "patch": "@@ -214,6 +214,7 @@ func (c *Causal) StartForward(ctx ml.Context, batch input.Batch, reserve bool) e\n \t\t\tc.curLoc, err = c.findStartLoc()\n \t\t}\n \t\tif err != nil {\n+\t\t\tslog.Warn(\"unable to find a kv cache slot\", \"cache\", c)\n \t\t\treturn err\n \t\t}\...
2025-08-04T23:44:23
vercel/next.js
9b0c00a5b2a8b8bb2ba77f02d2092de7cbcb5e0b
ce82c60da368429c25f32cad63b683f8e5679036
misc: update caniuse-lite to latest (#40680) Fixes build errors related to https://github.com/browserslist/caniuse-lite/issues/102 see https://github.com/vercel/next.js/actions/runs/3082979772/jobs/4983345078 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Er...
[ { "path": "package.json", "patch": "@@ -207,7 +207,7 @@\n },\n \"resolutions\": {\n \"browserslist\": \"4.20.2\",\n- \"caniuse-lite\": \"1.0.30001332\",\n+ \"caniuse-lite\": \"1.0.30001406\",\n \"@babel/core\": \"7.18.0\",\n \"@babel/parser\": \"7.18.0\",\n \"@babel/types\": \"7.18...
2022-09-19T14:48:41
golang/go
d95ca9138026cbe40e0857d76a81a16d03230871
ecf4ebf10054f70e51a0ce759b2ae91aa4febd1a
crypto/elliptic: fix P-224 field reduction This patch fixes two independent bugs in p224Contract, the function that performs the final complete reduction in the P-224 field. Incorrect outputs due to these bugs were observable from a high-level P224().ScalarMult() call. The first bug was in the calculation of out3GT. ...
[ { "path": "src/crypto/elliptic/p224.go", "patch": "@@ -386,21 +386,25 @@ func p224Invert(out, in *p224FieldElement) {\n // p224Contract converts a FieldElement to its unique, minimal form.\n //\n // On entry, in[i] < 2**29\n-// On exit, in[i] < 2**28\n+// On exit, out[i] < 2**28 and out < p\n func p224Contr...
2021-01-08T02:56:58
nodejs/node
994320b07be5da33e98785a7dab4bd2bb7cb8f12
1650eaeac4d344a21f08923dc39ab09637f71ab8
fs: throw writeSync errors in JS PR-URL: https://github.com/nodejs/node/pull/19041 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "lib/fs.js", "patch": "@@ -635,6 +635,8 @@ Object.defineProperty(fs.write, internalUtil.customPromisifyArgs,\n // fs.writeSync(fd, string[, position[, encoding]]);\n fs.writeSync = function(fd, buffer, offset, length, position) {\n validateUint32(fd, 'fd');\n+ const ctx = {};\n+ let result;\n...
2018-02-27T18:17:12
rust-lang/rust
4924e0a067946d7b810dcc777ffd8370c29da80a
217693a1f02ca6431a434926ff3417bdb6dbac2e
Add a HIR pretty-printing test focused on lifetimes. HIR printing currently gets very little testing. This increases coverage a bit, with a focus on lifetimes. There are some FIXME comments for cases that are printed in a dubious fashion. This PR won't address those; the point of adding this test is to ensure that th...
[ { "path": "tests/pretty/hir-lifetimes.pp", "patch": "@@ -0,0 +1,96 @@\n+//@ pretty-compare-only\n+//@ pretty-mode:hir\n+//@ pp-exact:hir-lifetimes.pp\n+\n+// This tests the pretty-printing of lifetimes in lots of ways.\n+\n+#![allow(unused)]\n+#[prelude_import]\n+use ::std::prelude::rust_2015::*;\n+#[macro_...
2025-03-26T04:51:41
ollama/ollama
4183bb0574a28b73276efef944107d0c45d79c95
ff89ba90bc97e9f58b8378a664b904bbc94e6f26
kvcache: Enable SWA to retain additional entries Models that use sliding window attention can only resume a sequence from the cache if it falls within the saved windows. This works well if the next message picks up where the old one left off. However, it generally prevents a partial prefix match unless the entire conv...
[ { "path": "kvcache/causal.go", "patch": "@@ -19,9 +19,16 @@ type shiftFn func(ctx ml.Context, layer int, key, shift ml.Tensor) (ml.Tensor, e\n // The tensors are of shape embed dim, kv heads, batch size\n // The mask is of shape history size, batch size\n type Causal struct {\n-\tDType ml.DType\n-\twin...
2025-07-30T21:42:57
vercel/next.js
44afc37670a7015170aff806ed59506f63d1384c
6df8770734f53a913b4846539d322e016a6fe0c9
Refine error messages (#40661) As per @sebmarkbage's suggestion, this PR refines the error message to be more readable and friendly: ``` error - ./components/qux.js You're importing a component that needs useEffect. It only works in a Client Component but none of its parents are marked with "client", so they'r...
[ { "path": "packages/next-swc/crates/core/src/react_server_components.rs", "patch": "@@ -227,11 +227,7 @@ impl<C: Comments> ReactServerComponents<C> {\n handler\n .struct_span_err(\n import.source.1,\n- format!...
2022-09-19T13:50:03
golang/go
671dba6c89bc0183982553e0359e0a3b2c00963f
8e0584c327e429bd010edb28fb9fea6f68a4cccc
[dev.fuzz] internal/fuzz: guard concurrent access to shared memory This change moves the worker's *sharedMem into a buffered chan that acts as a mutex. The mutex can be locked by receiving from the chan; it can be unlocked by sending *sharedMem back to the chan. Multiple objects (like worker, workerClient, workerServe...
[ { "path": "src/internal/fuzz/fuzz.go", "patch": "@@ -75,13 +75,15 @@ func CoordinateFuzzing(ctx context.Context, parallel int, seed [][]byte, corpusD\n \t\tif err != nil {\n \t\t\treturn nil, err\n \t\t}\n+\t\tmemMu := make(chan *sharedMem, 1)\n+\t\tmemMu <- mem\n \t\treturn &worker{\n \t\t\tdir: di...
2021-01-20T22:09:59
huggingface/transformers
c1c7e89620b43f0924148e267a6da5d38450ce1f
f51ac9e059a78049362803c1d606a2c6a8160ee4
Fix Gradient Accumulation issue (#34191) * quick fix * 3 losses * oups * fix * nits * check how it scales for special models * propagate for conditiona detr * propagate * propagate * propagate * fixes * propagate changes * update * fixup * nits * f string * fixes * mo...
[ { "path": "src/transformers/__init__.py", "patch": "@@ -142,7 +142,9 @@\n \"is_tensorboard_available\",\n \"is_wandb_available\",\n ],\n+ \"loss\": [],\n \"modelcard\": [\"ModelCard\"],\n+ # Losses\n \"modeling_tf_pytorch_utils\": [\n \"convert_tf_weight_name_to_pt_...
2024-10-17T20:34:40
nodejs/node
1650eaeac4d344a21f08923dc39ab09637f71ab8
79b195437c007162e0ebf5b24f3f38f8d369e267
fs: throw fchownSync errors in JS PR-URL: https://github.com/nodejs/node/pull/19041 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "lib/fs.js", "patch": "@@ -1110,7 +1110,9 @@ fs.fchownSync = function(fd, uid, gid) {\n validateUint32(uid, 'uid');\n validateUint32(gid, 'gid');\n \n- return binding.fchown(fd, uid, gid);\n+ const ctx = {};\n+ binding.fchown(fd, uid, gid, undefined, ctx);\n+ handleErrorFromBinding(ctx);\n...
2018-02-27T17:45:17
ollama/ollama
ff89ba90bc97e9f58b8378a664b904bbc94e6f26
6dcc5dfb9c0a033e4e8dde627d55580600418fb6
fixing broken AMD driver link (#11579)
[ { "path": "discover/amd_linux.go", "patch": "@@ -58,7 +58,7 @@ func AMDGetGPUInfo() ([]RocmGPUInfo, error) {\n \tdriverMajor, driverMinor, err := AMDDriverVersion()\n \tif err != nil {\n \t\t// TODO - if we see users crash and burn with the upstreamed kernel this can be adjusted to hard-fail rocm support an...
2025-07-30T19:02:54
vercel/next.js
6df8770734f53a913b4846539d322e016a6fe0c9
dc11d77be56ccfecd5c1de6cf0004993ef29d277
Upgrade to latest React experimental (#40672) Only upgrade react-exp. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature reques...
[ { "path": "package.json", "patch": "@@ -179,8 +179,8 @@\n \"react-17\": \"npm:react@17.0.2\",\n \"react-dom\": \"18.2.0\",\n \"react-dom-17\": \"npm:react-dom@17.0.2\",\n- \"react-dom-exp\": \"npm:react-dom@0.0.0-experimental-e6a062bd2-20220913\",\n- \"react-exp\": \"npm:react@0.0.0-experi...
2022-09-19T13:26:06
golang/go
d7e71c01ad1c8edd568380ce9276c265dfd3635b
5248f59a224e390cc59c9850f7795479f07757a7
[dev.regabi] cmd/compile: replace ir.Name map with ir.NameSet for dwarf Same as CL 284897, but for dwarf. Passes toolstash -cmp. Fixes #43819 Change-Id: Icbe43aa2e3cb96e6a6c318523c643247da8e4c74 Reviewed-on: https://go-review.googlesource.com/c/go/+/284899 Run-TryBot: Baokun Lee <bk@golangcn.org> Trust: Baokun Lee ...
[ { "path": "src/cmd/compile/internal/dwarfgen/dwarf.go", "patch": "@@ -136,7 +136,7 @@ func createDwarfVars(fnsym *obj.LSym, complexOK bool, fn *ir.Func, apDecls []*ir\n \t// Collect a raw list of DWARF vars.\n \tvar vars []*dwarf.Var\n \tvar decls []*ir.Name\n-\tvar selected map[*ir.Name]bool\n+\tvar select...
2021-01-21T07:24:38
huggingface/transformers
1d2c29f0b32c084cf2e21890106681a4634ee41f
9470c00042d0ff37e52a6e442970547b42d29b6c
Fix bus error when using GPT2 on M1 macs (#34031) There's a bug on M1 macs with transformer >= 4.43.0 and torch >= 2.1.0, where if a model has tied embeddings, then the fast loading from #31771 causes a bus error when the model is actually run. This can be solved by disabling `_supports_param_buffer_assignment` for th...
[ { "path": "src/transformers/models/gpt2/modeling_gpt2.py", "patch": "@@ -890,6 +890,8 @@ class GPT2DoubleHeadsModelOutput(ModelOutput):\n GPT2_START_DOCSTRING,\n )\n class GPT2Model(GPT2PreTrainedModel):\n+ _supports_param_buffer_assignment = False\n+\n def __init__(self, config):\n super...
2024-10-17T15:39:04
rust-lang/rust
01820a9efe3d7d09d858483f15fcd38b8cf2cab9
a895265a4e44666c2c30de27f010c6467130c6e8
Do not make incomplete or invalid suggestions The `unnecessary_filter_map` and `unnecessary_find_map` lints were making partial suggestions, proposing to replace the whole expression by only the method name, or a subexpression which contained explicit placeholders. Since even `MaybeIncorrect` suggestions must generat...
[ { "path": "clippy_lints/src/methods/unnecessary_filter_map.rs", "patch": "@@ -1,11 +1,10 @@\n use super::utils::clone_or_copy_needed;\n-use clippy_utils::diagnostics::span_lint_and_sugg;\n+use clippy_utils::diagnostics::span_lint;\n use clippy_utils::ty::is_copy;\n use clippy_utils::usage::mutated_variables...
2025-03-27T19:44:03