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
golang/go
422dc83baa2816ca1d9a0aa3f1aaf4c47c8098ad
56b783ad94f9a55163d494d5b34c783a9603d478
database/sql: fix typo in comment Fixes #43116 Change-Id: Ib04fab6ae03f322aa1508ec00523f628d891247a GitHub-Last-Rev: 0a86e665b2c320e0b2aef75ee53bd7281b19b013 GitHub-Pull-Request: golang/go#43122 Reviewed-on: https://go-review.googlesource.com/c/go/+/276992 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: ...
[ { "path": "src/database/sql/sql.go", "patch": "@@ -1141,7 +1141,7 @@ func (db *DB) connectionOpener(ctx context.Context) {\n \n // Open one new connection\n func (db *DB) openNewConnection(ctx context.Context) {\n-\t// maybeOpenNewConnctions has already executed db.numOpen++ before it sent\n+\t// maybeOpenN...
2020-12-10T16:45:48
nodejs/node
5f6478759b6bd25c927a1ceb53e78dc2db61dec6
ea7400c1bd61672090a2ca7e72512a8fa16ad79d
src: fix -Wunused-but-set-variable warnings PR-URL: https://github.com/nodejs/node/pull/18205 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gm...
[ { "path": "src/node_file.cc", "patch": "@@ -516,7 +516,6 @@ static void InternalModuleStat(const FunctionCallbackInfo<Value>& args) {\n \n static void Stat(const FunctionCallbackInfo<Value>& args) {\n Environment* env = Environment::GetCurrent(args);\n- Local<Context> context = env->context();\n \n CHE...
2018-01-17T14:32:47
ollama/ollama
1618700c5a042ecedb3fe3a93d7c90d3b4bd3001
b111aa5a91769e5af0edf7259773b20514f9883f
Workaround buggy P2P ROCm copy on windows (#7466) This enables the workaround code only for windows which should help windows users with muliple AMD GPUs
[ { "path": "llama/make/Makefile.rocm", "patch": "@@ -92,6 +92,12 @@ GPU_COMPILER_CUFLAGS = \\\n \t-Wno-unused-result \\\n \t-I.\n \n+# Workaround buggy P2P copy on some windows multi-GPU setups\n+# This workaround breaks linux systems with small system RAM, so only enable on windows\n+ifeq ($(OS),windows)\n+...
2024-11-07T22:26:31
huggingface/transformers
91f19a5b182c9f3ec8fef3e19f59b4f338b9990e
e719b65c31e48c07e78dea27bc28aaaebf69c16e
Fix failing windows (#33436) * Encoding * style
[ { "path": "src/transformers/utils/import_utils.py", "patch": "@@ -1924,7 +1924,7 @@ def create_import_structure_from_path(module_path):\n if not module_name.endswith(\".py\"):\n continue\n \n- with open(os.path.join(directory, module_name)) as f:\n+ with open(os.path.join(d...
2024-09-11T12:06:16
vercel/next.js
4425ee40fad76d1d9a8adce67f6df1795499d256
34e60a8b353791a4a89680d822f4016364cd9932
Separate ValueDebugFormat derive from ValueDebug derive (#218) Split from #209 This lets any non-`#[turbo_tasks::value]` struct be debug-formatted properly when inside another `#[turbo_tasks::value]` struct. e.g. ```rust #[turbo_tasks::value] struct Value1 { value2: Value2, } #[derive(TraceRawVcs, Serialize, De...
[ { "path": "crates/turbo-tasks-macros/src/derive/mod.rs", "patch": "@@ -1,8 +1,10 @@\n mod trace_raw_vcs_macro;\n+mod value_debug_format_macro;\n mod value_debug_macro;\n \n use syn::{spanned::Spanned, Attribute, Meta, MetaList, NestedMeta};\n pub use trace_raw_vcs_macro::derive_trace_raw_vcs;\n+pub use valu...
2022-08-09T17:43:25
golang/go
ddf44904f125c964e81d7c3ec2612908f95a0fa3
dbce27d29c8479d969aad5be4658fde32ff3f1e4
[dev.typeparams] test: exclude 32bit-specific test that fails on 32bit platforms (fix build) Change-Id: I4f1d5d34dd9b26cea8e837a8ff7e833e02c913e1 Reviewed-on: https://go-review.googlesource.com/c/go/+/276815 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <g...
[ { "path": "test/run.go", "patch": "@@ -1969,7 +1969,8 @@ var excluded = map[string]bool{\n \t\"fixedbugs/bug374.go\": true,\n \t\"fixedbugs/bug379.go\": true,\n \t\"fixedbugs/bug383.go\": true,\n-\t\"fixedbugs/bug385_64.go\": true,\n+\t\"fixedbugs/bug385_32.go\": true, // types2 doesn't produce \"s...
2020-12-10T01:17:36
nodejs/node
ea7400c1bd61672090a2ca7e72512a8fa16ad79d
fe94394b99a39a4ed2c0589f825b6e4958fed629
tty: fix console printing on Windows This broke writing non-ASCII data to the console on Windows because the result would be codepage-dependent. This partially reverts 8b751f7eb7b05a0b27f52e2288a636fdd78e9ecb. Fixes: https://github.com/nodejs/node/issues/18189 Refs: https://github.com/nodejs/node/pull/18019 PR-URL:...
[ { "path": "lib/tty.js", "patch": "@@ -24,7 +24,6 @@\n const util = require('util');\n const net = require('net');\n const { TTY, isTTY } = process.binding('tty_wrap');\n-const { makeSyncWrite } = require('internal/net');\n const { inherits } = util;\n const errnoException = util._errnoException;\n const err...
2018-01-17T21:55:23
ollama/ollama
b111aa5a91769e5af0edf7259773b20514f9883f
9e83e550e1b0022e39de9bf2b84961cec3a0071c
Debug logging for nvcuda init (#7532) Some users are reporting crashes during nvcuda.dll initialization on windows. This should help narrow down where things are going bad.
[ { "path": "discover/gpu_info_nvcuda.c", "patch": "@@ -4,6 +4,7 @@\n #include \"gpu_info_nvcuda.h\"\n \n void nvcuda_init(char *nvcuda_lib_path, nvcuda_init_resp_t *resp) {\n+ LOG(resp->ch.verbose, \"initializing %s\\n\", nvcuda_lib_path);\n CUresult ret;\n resp->err = NULL;\n resp->num_devices = 0;\n...
2024-11-07T22:25:53
rust-lang/rust
2e70cfc04d29ec499e076746d2588d8e7a4e0fe6
cb50d4d8566b1ee97e9a5ef95a37a40936a62c30
uefi: fs: Implement exists Also adds the initial file abstractions. The file opening algorithm is inspired from UEFI shell. It starts by classifying if the Path is Shell mapping, text representation of device path protocol, or a relative path and converts into an absolute text representation of device path protocol. ...
[ { "path": "library/std/src/sys/fs/uefi.rs", "patch": "@@ -286,8 +286,13 @@ pub fn remove_dir_all(_path: &Path) -> io::Result<()> {\n unsupported()\n }\n \n-pub fn exists(_path: &Path) -> io::Result<bool> {\n- unsupported()\n+pub fn exists(path: &Path) -> io::Result<bool> {\n+ let f = uefi_fs::File...
2025-03-14T17:18:38
huggingface/transformers
e719b65c31e48c07e78dea27bc28aaaebf69c16e
781bbc4d980abd2b21c332fd3122b733dba35d10
Fix `FbgemmFp8Linear` not preserving tensor shape (#33239) * add tests for linear shape behavior * fix linear shape behavior ended up adding the reshape at the end, after f8f8bf16_rowwise, because adding it directly after quantize_fp8_per_row caused f8f8bf16_rowwise to drop the seq_len dimension. (i.e., (17, 2...
[ { "path": "src/transformers/integrations/fbgemm_fp8.py", "patch": "@@ -45,6 +45,8 @@ def __init__(self, in_features, out_features, bias, weight_dtype=torch.float32):\n \n def forward(self, x):\n num_tokens = None\n+ # quantize_fp8_per_row will squash the leading dimensions, so save the de...
2024-09-11T11:26:44
vercel/next.js
1a5d175d8d08e81cf8f079aa87d656b2cac90c3f
7bd5321b0952d6ce242dda059b6737ec16530a74
Update toolchain to 2022-08-02 (vercel/turbo#215) * Update toolchain to 2022-08-02 * Fix warnings
[ { "path": "packages/next-swc/crates/next-dev/src/lib.rs", "patch": "@@ -1,5 +1,4 @@\n #![feature(future_join)]\n-#![feature(future_poll_fn)]\n #![feature(min_specialization)]\n \n use std::{net::IpAddr, sync::Arc};", "additions": 0, "deletions": 1, "language": "Rust" }, { "path": "packag...
2022-08-09T17:38:05
nodejs/node
5e17f54d79a345cc66a2105201f25f38d6b8d9e3
f576341dc28199cc1f92a4ac66b6aa82e22cb486
test: refactor test-http-parser Use common's mustCall (for some reason was implementing its own?), and other small fixes. PR-URL: https://github.com/nodejs/node/pull/18219 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Review...
[ { "path": "test/parallel/test-http-parser.js", "patch": "@@ -20,15 +20,11 @@\n // USE OR OTHER DEALINGS IN THE SOFTWARE.\n \n 'use strict';\n-const common = require('../common');\n+const { mustCall, mustNotCall } = require('../common');\n const assert = require('assert');\n \n-const binding = process.bindin...
2018-01-18T01:36:25
golang/go
56b783ad94f9a55163d494d5b34c783a9603d478
b110733327a66870da9c5f482d8fd3275dae55f3
cmd/go, cmd/asm: pass -linkshared to assembler for shared linkage builds When the -linkshared build mode is in effect, the Go command passes the "-linkshared" command line option to the compiler so as to insure special handling for things like builtin functions (which may appear in a shared library and not the main ex...
[ { "path": "src/cmd/asm/internal/flags/flags.go", "patch": "@@ -20,6 +20,7 @@ var (\n \tTrimPath = flag.String(\"trimpath\", \"\", \"remove prefix from recorded source file paths\")\n \tShared = flag.Bool(\"shared\", false, \"generate code that can be linked into a shared library\")\n \tDyn...
2020-12-10T13:44:44
ollama/ollama
a4c70fe157477fc25940a0ff1f544632464f2e77
34a75102f7b128ba9675be544ac86dc6e2fc8392
One corrupt manifest should not wedge model operations (#7515) One potential failure mode is an empty file which bubbles up as an EOF error, leading to all pulls and listing operations failing. Instead, continue and warn about the corrupt manifest. This also allows re-pulling the corrupt manifest to repair the sy...
[ { "path": "server/images.go", "patch": "@@ -690,7 +690,8 @@ func CopyModel(src, dst model.Name) error {\n }\n \n func deleteUnusedLayers(deleteMap map[string]struct{}) error {\n-\tmanifests, err := Manifests()\n+\t// Ignore corrupt manifests to avoid blocking deletion of layers that are freshly orphaned\n+\...
2024-11-05T22:21:45
rust-lang/rust
96f68d138f307eb763b177bbf83fe90712b0bf60
e3776329ff1f94e2ba3b19a30e0a92e773c224c1
Teach rustfmt to handle postfix yield This involved fixing the span when parsing .yield
[ { "path": "src/chains.rs", "patch": "@@ -192,6 +192,7 @@ enum ChainItemKind {\n StructField(symbol::Ident),\n TupleField(symbol::Ident, bool),\n Await,\n+ Yield,\n Comment(String, CommentPosition),\n }\n \n@@ -203,6 +204,7 @@ impl ChainItemKind {\n | ChainItemKind::StructField...
2025-03-18T00:32:11
huggingface/transformers
6ed2b10942becf0d67e52c07ac852c6f83db27f0
96429e74a8191521bcb4b99f48ad1fbc8f9e6873
Bug Fix: Update hub.py to fix NoneType error (#33315) * Bug Fix: Update hub.py Bug: TypeError: argument of type 'NoneType' is not iterable Analysis: The error `TypeError: argument of type 'NoneType' is not iterable` suggests that `model_card.data.tags` is `None`, and the code is trying to iterate through it us...
[ { "path": "src/transformers/utils/hub.py", "patch": "@@ -1198,6 +1198,9 @@ def create_and_tag_model_card(\n model_card = ModelCard.from_template(card_data, model_description=model_description)\n \n if tags is not None:\n+ # Ensure model_card.data.tags is a list and not None\n+ if m...
2024-09-10T14:39:19
vercel/next.js
34e60a8b353791a4a89680d822f4016364cd9932
aa53b936b3db8c437f6ce9f4a41f3b36b32f55e0
Update toolchain to 2022-08-02 (#215) * Update toolchain to 2022-08-02 * Fix warnings
[ { "path": "crates/next-dev/src/lib.rs", "patch": "@@ -1,5 +1,4 @@\n #![feature(future_join)]\n-#![feature(future_poll_fn)]\n #![feature(min_specialization)]\n \n use std::{net::IpAddr, sync::Arc};", "additions": 0, "deletions": 1, "language": "Rust" }, { "path": "crates/next-dev/src/main...
2022-08-09T17:38:05
nodejs/node
e99ae7764d9fe77fb7ecadc180c55664ebfd4f19
f054855bbf15201487f4a7fdac8812c958330af1
lib: make console writable and non-enumerable According to the standard the property descriptor of console should be writable and non-enumerable. PR-URL: https://github.com/nodejs/node/pull/17708 Fixes: https://github.com/nodejs/node/issues/11805 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Jam...
[ { "path": "lib/internal/bootstrap_node.js", "patch": "@@ -321,10 +321,8 @@\n const wrappedConsole = NativeModule.require('console');\n Object.defineProperty(global, 'console', {\n configurable: true,\n- enumerable: true,\n- get() {\n- return wrappedConsole;\n- }\n+ e...
2017-12-16T06:29:40
golang/go
b110733327a66870da9c5f482d8fd3275dae55f3
0aba8f24cb1f38beb01491bc91697617ea0ce55b
cmd/link: reject too-large relocation addend on darwin/arm64 Mach-O relocation addend is signed 24-bit. If the addend overflows, it is better to fail the build than emitting an incorrect binary. (I'm still working on a fix.) Updates #42738. Change-Id: I647f0cd4f6b84d9ac75ef3bf36673bea01dfc211 Reviewed-on: https://go...
[ { "path": "src/cmd/link/internal/arm64/asm.go", "patch": "@@ -463,6 +463,9 @@ func elfreloc1(ctxt *ld.Link, out *ld.OutBuf, ldr *loader.Loader, s loader.Sym,\n \treturn true\n }\n \n+// sign-extends from 24-bit.\n+func signext24(x int64) int64 { return x << 40 >> 40 }\n+\n func machoreloc1(arch *sys.Arch, o...
2020-12-09T17:14:00
ollama/ollama
4ebfa2cb91d378ab69315b963bb28c0cfcac59fe
046054fa3bba6d6511bcf46ca53f3ee8bc972df6
Quiet down debug log of image payload (#7454) Avoid excessive log spew and make consistent with chat logging
[ { "path": "server/routes.go", "patch": "@@ -267,7 +267,7 @@ func (s *Server) GenerateHandler(c *gin.Context) {\n \t\tprompt = b.String()\n \t}\n \n-\tslog.Debug(\"generate request\", \"prompt\", prompt, \"images\", images)\n+\tslog.Debug(\"generate request\", \"images\", len(images), \"prompt\", prompt)\n \...
2024-11-04T21:05:16
rust-lang/rust
9b0e7f62644b629c30b4157ad854296eca36ecf0
c5093ac1224fe9eeff5c5694f1c3ff643005d7d4
Teach rustfmt to handle postfix yield This involved fixing the span when parsing .yield
[ { "path": "compiler/rustc_parse/src/parser/expr.rs", "patch": "@@ -1315,9 +1315,8 @@ impl<'a> Parser<'a> {\n if self.eat_keyword(exp!(Yield)) {\n let yield_span = self.prev_token.span;\n self.psess.gated_spans.gate(sym::yield_expr, yield_span);\n- return Ok(\n- ...
2025-03-18T00:32:11
huggingface/transformers
96429e74a8191521bcb4b99f48ad1fbc8f9e6873
8e8e7d85587bea7b68e4fe65318ab4f609b4a9da
Add support for GGUF Phi-3 (#31844) * Update docs for GGUF supported models * Add tensor mappings and define class GGUFPhi3Converter * Fix tokenizer * Working version * Attempt to fix some CI failures * Run ruff format * Add vocab, merges, decoder methods like LlamaConverter * Resolve conflicts si...
[ { "path": "docs/source/en/gguf.md", "patch": "@@ -79,6 +79,7 @@ For now the supported model architectures are the architectures that have been v\n - Mistral\n - Qwen2\n - Qwen2Moe\n+- Phi3\n \n ## Example usage\n ", "additions": 1, "deletions": 0, "language": "Markdown" }, { "path": "src...
2024-09-10T11:32:38
vercel/next.js
3e19ad5c5feda4d971ac3d7022c48ff205547e10
d3bbfea1171974d3505f2bf59796541931db1610
typing: upgrade styled-jsx to remove workaround in build script (#39408) Improve styled-jsx types in next.js, previously there's no `declare module` for styled-jsx and there's type name conflicts in `styled-jsx/index.d.ts` and we use a rename hack to avoid the conflicts. Now styled-jsx 5.0.3 fixed those issues. x-ref...
[ { "path": "packages/next/index.d.ts", "patch": "@@ -1,5 +1,5 @@\n /// <reference types=\"./types/global\" />\n-/// <reference path=\"./dist/styled-jsx/global.d.ts\" />\n+/// <reference path=\"./dist/styled-jsx/types/global.d.ts\" />\n /// <reference path=\"./amp.d.ts\" />\n /// <reference path=\"./app.d.ts\...
2022-08-09T17:10:33
nodejs/node
f2e62b52385ff5e778d997ba86db70975e5670c7
c134ff24f44ca523566bd38aa2d49f0dce7401aa
doc: add builtin module in building.md Fixes: https://github.com/nodejs/node/issues/12516 Refs: https://github.com/nodejs/node/pull/2497 PR-URL: https://github.com/nodejs/node/pull/17705 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <ja...
[ { "path": "BUILDING.md", "patch": "@@ -403,3 +403,26 @@ and [user guide](https://openssl.org/docs/fips/UserGuide-2.0.pdf).\n `/usr/local/ssl/fips-2.0`\n 8. Build Node.js with `make -j`\n 9. Verify with `node -p \"process.versions.openssl\"` (for example `1.0.2a-fips`)\n+\n+## Building Node.js with extern...
2017-12-16T05:19:16
golang/go
0aba8f24cb1f38beb01491bc91697617ea0ce55b
6c64b6db6802818dd9a4789cdd564f19b70b6b4c
cmd/link: truncate file after code signature When external linking, in case that the external linker generates a code signature with a different size (e.g. as it uses a different identifier), truncate the file after rewriting the code signature, to make sure that no bytes after the signature (which will invalidate the...
[ { "path": "src/cmd/link/internal/ld/macho.go", "patch": "@@ -1474,6 +1474,17 @@ func machoCodeSign(ctxt *Link, fname string) error {\n \t\t// Skip.\n \t\treturn nil\n \t}\n+\n+\tfi, err := f.Stat()\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\tif sigOff+sigSz != fi.Size() {\n+\t\t// We don't expect anythin...
2020-12-09T23:25:05
ollama/ollama
95483f348b27dff9f7deb8ab5b97dd51de124d88
f247a6233ed933f393248139adfffcec67f1b1e8
CI: matrix strategy fix (#7496) Github actions matrix strategy can't access env settings
[ { "path": ".github/workflows/release.yaml", "patch": "@@ -3,10 +3,6 @@ name: release\n env:\n ROCM_WINDOWS_URL: https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-24.Q3-WinSvr2022-For-HIP.exe\n MSYS2_URL: https://github.com/msys2/msys2-installer/releases/download/2024-07-27/msys2-...
2024-11-04T18:48:35
rust-lang/rust
6d353134bccd7e14aaba2c3476fc754f1fc16a48
192206bfbb57ed2781ccc9319405038e5778c1a5
Revert "Disable broken powerpc64 test due to https://github.com/rust-lang/rust/issues/88520" This reverts commit 55f6ecb6de9e2e10d9187b287b9e87b202d07d1e. Fixes: https://github.com/rust-lang/rust/issues/88520 Signed-off-by: Jens Reidel <adrian@travitia.xyz>
[ { "path": "library/compiler-builtins/testcrate/tests/cmp.rs", "patch": "@@ -2,11 +2,8 @@\n #![allow(unreachable_code)]\n #![cfg_attr(f128_enabled, feature(f128))]\n \n-#[cfg(not(target_arch = \"powerpc64\"))]\n use testcrate::*;\n \n-// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust...
2025-03-17T20:59:56
huggingface/transformers
8e8e7d85587bea7b68e4fe65318ab4f609b4a9da
7d2d6ce9cb80d45d341f149c9b76a583c289052a
fixed Mask2Former image processor segmentation maps handling (#33364) * fixed mask2former image processor segmentation maps handling * introduced review suggestions * introduced review suggestions
[ { "path": "src/transformers/models/mask2former/image_processing_mask2former.py", "patch": "@@ -935,7 +935,7 @@ def encode_inputs(\n if segmentation_maps is not None:\n mask_labels = []\n class_labels = []\n- pad_size = get_max_height_width(pixel_values_list)\n+ ...
2024-09-10T10:19:56
nodejs/node
38ee25e2e205270c6ff258742aa34b442d9bc580
359a23234892acc6f481f5c90ca27c2435e32a01
child_process: do not ignore proto values of env This reverts this behaviour introduced in a recent PR, and updates the test. Without this change, CitGM and other packages are broken. PR-URL: https://github.com/nodejs/node/pull/18210 Fixes: https://github.com/nodejs/citgm/issues/536 Reviewed-By: Evan Lucas <evanlucas...
[ { "path": "lib/child_process.js", "patch": "@@ -504,7 +504,8 @@ function normalizeSpawnArguments(file, args, options) {\n var env = options.env || process.env;\n var envPairs = [];\n \n- for (const key of Object.keys(env)) {\n+ // Prototype values are intentionally included.\n+ for (var key in env) {...
2018-01-17T18:30:43
vercel/next.js
7bd5321b0952d6ce242dda059b6737ec16530a74
659a5fd83db8721e159aa2896f797d97b333ad82
next-dev test runner (vercel/turbo#172) This is a very early version of the next-dev test runner. I'm opening this early to get thoughts from folks re: the direction of the design and implementation. Fixes vercel/turbo#204 Currently it: * Discovers integration test fixtures from the filesystem. Right now these are ...
[ { "path": "packages/next-swc/crates/next-dev/Cargo.toml", "patch": "@@ -24,6 +24,7 @@ tokio_console = [\n anyhow = \"1.0.47\"\n clap = { version = \"3.1.3\", features = [\"derive\"] }\n console-subscriber = { version = \"0.1.6\", optional = true }\n+futures = \"0.3.21\"\n json = \"0.12.4\"\n mime = \"0.3.16...
2022-08-09T16:20:30
rust-lang/rust
636285180daa00b62a604acee9c843128d70262f
43a2e9d2c72db101f5fedac8b3acb78981b06bf2
[bootstrap] Distribute split debuginfo if present If debuginfo has been requested in `config.toml`, it should be packaged alongside the appropriate binary when running `x.py dist`. Currently, this is only implemented for msvc environments where split debuginfo is (basically) the only option. I've tested that this cor...
[ { "path": "src/bootstrap/src/core/build_steps/compile.rs", "patch": "@@ -33,7 +33,7 @@ use crate::utils::exec::command;\n use crate::utils::helpers::{\n exe, get_clang_cl_resource_dir, is_debug_info, is_dylib, symlink_dir, t, up_to_date,\n };\n-use crate::{CLang, Compiler, DependencyType, GitRepo, LLVM_...
2024-05-01T23:32:45
ollama/ollama
312d9de1d1b5aae7dd9e2f018a0a9548800cd0ee
a103dae01eb947f08d49a8b73c6b66ad97204a19
llama: Improve error handling Check for NULL return values from llama.cpp in more places and convert them into Go errors, which should make debugging easier in the future rather than having hidden surprises in our data structures.
[ { "path": "llama/llama.go", "patch": "@@ -88,6 +88,7 @@ import (\n \t\"fmt\"\n \t\"runtime\"\n \t\"runtime/cgo\"\n+\t\"slices\"\n \t\"strings\"\n \t\"unsafe\"\n )\n@@ -260,7 +261,7 @@ func LoadModelFromFile(modelPath string, params ModelParams) (*Model, error) {\n \t}\n \n \tm := Model{c: C.llama_load_model...
2024-11-01T22:50:53
golang/go
6c64b6db6802818dd9a4789cdd564f19b70b6b4c
89f465c2b59cea32c10ed69eaa07e17f85c910e2
cmd/compile: don't constant fold divide by zero It just makes the compiler crash. Oops. Fixes #43099 Change-Id: Id996c14799c1a5d0063ecae3b8770568161c2440 Reviewed-on: https://go-review.googlesource.com/c/go/+/276652 Trust: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Go Bo...
[ { "path": "src/cmd/compile/internal/ssa/gen/ARM.rules", "patch": "@@ -760,8 +760,8 @@\n (MUL (MOVWconst [c]) (MOVWconst [d])) => (MOVWconst [c*d])\n (MULA (MOVWconst [c]) (MOVWconst [d]) a) => (ADDconst [c*d] a)\n (MULS (MOVWconst [c]) (MOVWconst [d]) a) => (SUBconst [c*d] a)\n-(Select0 (CALLudiv (MOVWconst...
2020-12-09T16:27:54
huggingface/transformers
7d2d6ce9cb80d45d341f149c9b76a583c289052a
f24f08432960023129817328cac6c01151d1f70f
VLM: fixes after refactor (#32907) * leave only half of the changes * fix tests * [run-slow] llava, llava_next, llava_next_video, vipllava, video_llava * fix tests, first try * [run-slow] llava, llava_next, llava_next_video, vipllava, video_llava * fix, second try * [run-slow] llava, llava_next, llav...
[ { "path": "src/transformers/models/llava/modeling_llava.py", "patch": "@@ -476,6 +476,7 @@ def forward(\n inputs_embeds, attention_mask, labels, position_ids = self._merge_input_ids_with_image_features(\n image_features, inputs_embeds, input_ids, attention_mask, l...
2024-09-10T10:02:37
nodejs/node
359a23234892acc6f481f5c90ca27c2435e32a01
6c76de13c5849fb8273272490c55460e33c0c556
doc: fix typo in esm.md Change `run time` to `runtime` for both correctness and consistency with every other instance of the expression in the docs. PR-URL: https://github.com/nodejs/node/pull/18142 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: T...
[ { "path": "doc/api/esm.md", "patch": "@@ -34,7 +34,7 @@ node --experimental-modules my-app.mjs\n \n Only the CLI argument for the main entry point to the program can be an entry\n point into an ESM graph. Dynamic import can also be used with the flag\n-`--harmony-dynamic-import` to create entry points into ...
2018-01-14T05:53:27
vercel/next.js
3ce974463f94a2bf1729fc66b3141f90cc2e29ed
0509afb18972ec69c931ee909eed937bc1690192
next-dev test runner (#172) This is a very early version of the next-dev test runner. I'm opening this early to get thoughts from folks re: the direction of the design and implementation. Fixes #204 Currently it: * Discovers integration test fixtures from the filesystem. Right now these are expected to be single fi...
[ { "path": "crates/next-dev/Cargo.toml", "patch": "@@ -24,6 +24,7 @@ tokio_console = [\n anyhow = \"1.0.47\"\n clap = { version = \"3.1.3\", features = [\"derive\"] }\n console-subscriber = { version = \"0.1.6\", optional = true }\n+futures = \"0.3.21\"\n json = \"0.12.4\"\n mime = \"0.3.16\"\n serde = \"1.0...
2022-08-09T16:20:30
ollama/ollama
a103dae01eb947f08d49a8b73c6b66ad97204a19
8a9bb0d000ae8201445ef1a590d7136df0a16f8b
runner.go: Only allocate 1 element embedding batches for mllama Mllama has large embeddings (100 MB per image) and each embedding is represented as 1 token when passed to llama.cpp. Batches are pre- allocated for the size of the tokens times the batch size, so this results in allocations of over 50 GB at the default b...
[ { "path": "llama/llama.go", "patch": "@@ -315,20 +315,30 @@ func (m *Model) ApplyLoraFromFile(context *Context, loraPath string, scale float\n type Batch struct {\n \tc C.struct_llama_batch\n \tbatchSize int\n+\tmaxSeq int\n \tembedSize int\n }\n \n-// Creates a new batch for either word tokens i...
2024-11-01T21:29:57
golang/go
dbce27d29c8479d969aad5be4658fde32ff3f1e4
edf80c4209a03bc656edfa5222b8fbd7fd072401
[dev.typeparams] cmd/compile/internal/types2: report correct line number for missing key Use the Key position of a syntax.KeyValueExpr (not the position of the ":") when reporting an error for a missing key. (In go/types, the KeyValueExpr position is the start of the expression not the ":", so there this works as exp...
[ { "path": "src/cmd/compile/internal/types2/expr.go", "patch": "@@ -1277,9 +1277,9 @@ func (check *Checker) exprInternal(x *operand, e syntax.Expr, hint Type) exprKin\n \t\t\t\t\ti := fieldIndex(utyp.fields, check.pkg, key.Value)\n \t\t\t\t\tif i < 0 {\n \t\t\t\t\t\tif check.conf.CompilerErrorMessages {\n-\t...
2020-12-09T23:49:04
huggingface/transformers
f24f08432960023129817328cac6c01151d1f70f
7f112caac2ff365c3d6e0020fefe8c1300311e07
Import structure & first three model refactors (#31329) * Import structure & first three model refactors * Register -> Export. Export all in __all__. Sensible defaults according to filename. * Apply most comments from Amy and some comments from Lucain Co-authored-by: amyeroberts <22614925+amyeroberts@users.no...
[ { "path": "Makefile", "patch": "@@ -53,7 +53,6 @@ quality:\n \t@python -c \"from transformers import *\" || (echo '🚨 import failed, this means you introduced unprotected imports! 🚨'; exit 1)\n \truff check $(check_dirs) setup.py conftest.py\n \truff format --check $(check_dirs) setup.py conftest.py\n-\tpy...
2024-09-10T09:10:53
nodejs/node
e42708c8e3d2c3917419ba7b536d3bb003b0df97
f7c709fdd0cd990b52f6cc9ea2cb486eb309a5bd
deps: ICU 60.2 bump - Update to Maintainance ICU 60.2 - CLDR 32.0.1 - http://site.icu-project.org/download/60#TOC-ICU-60.2-bug-fixes - Subsumes https://github.com/nodejs/node/pull/16931 PR-URL: https://github.com/nodejs/node/pull/17687 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Richard L...
[ { "path": "configure", "patch": "@@ -1132,8 +1132,8 @@ def glob_to_var(dir_base, dir_sub, patch_dir):\n def configure_intl(o):\n icus = [\n {\n- 'url': 'https://ssl.icu-project.org/files/icu4c/60.1/icu4c-60_1-src.zip',\n- 'md5': 'e6cb990ac2a3161d31a3def8435f80cb',\n+ 'url': 'https://ssl...
2017-12-14T19:26:30
vercel/next.js
5ac50a9be01c8df4d261d1d28aef4a64480acb11
5d93753bc304fa65acb11e534126d37ce1d1ebe1
fix: ensure trailing slash on registry URL when fetching wasm fallback (#39427) fix: ensure trailing slash on registry URL
[ { "path": "packages/next/lib/download-wasm-swc.ts", "patch": "@@ -83,7 +83,7 @@ export async function downloadWasmSwc(\n try {\n const output = execSync('npm config get registry').toString().trim()\n if (output.startsWith('http')) {\n- registry = output\n+ registry = output.end...
2022-08-09T14:32:29
ollama/ollama
26acdcf44e9e0c64fe0918b9cf59a61ce3339757
921779bb10265e4030bba3fd74e1936e58930ce1
runner.go: Don't set cross attention before sending embeddings Currently if an input has embeddings at any point then we will set cross attention to true from the beginning. This means that any tokens before the embeddings are sent will incorrectly have cross attention layers applied. This only sets cross attention w...
[ { "path": "llama/runner/image.go", "patch": "@@ -5,6 +5,7 @@ import (\n \t\"fmt\"\n \t\"hash/maphash\"\n \t\"log/slog\"\n+\t\"slices\"\n \t\"sync\"\n \t\"time\"\n \n@@ -96,6 +97,16 @@ func (c *ImageContext) EmbedSize(llamaContext *llama.Context) int {\n \t}\n }\n \n+func (c *ImageContext) NeedCrossAttention...
2024-10-31T17:55:31
golang/go
edf80c4209a03bc656edfa5222b8fbd7fd072401
43c7b214dba8b2a5bfd7d22b66b875865d0aa0f2
[dev.typeparams] cmd/compile/internal/types2: adjusted more error messages for compiler Triaged and adjusted more test/fixedbugs/* tests. Change-Id: I80b9ead2445bb8d126b7d79db4bea9ddcb225a84 Reviewed-on: https://go-review.googlesource.com/c/go/+/276812 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Gries...
[ { "path": "src/cmd/compile/internal/types2/decl.go", "patch": "@@ -364,7 +364,11 @@ func (check *Checker) cycleError(cycle []Object) {\n \t// cycle? That would be more consistent with other error messages.\n \ti := firstInSrc(cycle)\n \tobj := cycle[i]\n-\tcheck.errorf(obj.Pos(), \"illegal cycle i...
2020-12-09T20:28:15
huggingface/transformers
7f112caac2ff365c3d6e0020fefe8c1300311e07
f745e7d3f902601686b83c7cce2660c2a94509f0
Fix import of `FalconMambaForCausalLM` (#33381) * fix build issues with FM kernels * try another approach * test * fix * add init files * push fix * fix * fixup * fix duplicate * fix * fix * fix
[ { "path": "utils/check_build.py", "patch": "@@ -23,6 +23,9 @@\n \"kernels/rwkv/wkv_op.cpp\",\n \"kernels/deformable_detr/ms_deform_attn.h\",\n \"kernels/deformable_detr/cuda/ms_deform_im2col_cuda.cuh\",\n+ \"kernels/falcon_mamba/selective_scan_with_ln_interface.py\",\n+ \"kernels/falcon_ma...
2024-09-10T07:14:54
nodejs/node
82bdf8fba2d3f197522e31ee49f3cc4f5f52bd53
5aa0f3ee169caf1eba9c3b013c1f757f73404029
fs: fix options.end of fs.ReadStream() Fixes: https://github.com/nodejs/node/issues/18116 PR-URL: https://github.com/nodejs/node/pull/18121 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Weijia Wang <starkwang@126...
[ { "path": "lib/fs.js", "patch": "@@ -2267,7 +2267,8 @@ function ReadStream(path, options) {\n this.flags = options.flags === undefined ? 'r' : options.flags;\n this.mode = options.mode === undefined ? 0o666 : options.mode;\n \n- this.start = options.start;\n+ this.start = typeof this.fd !== 'number' &...
2018-01-12T15:21:44
ollama/ollama
712e99d477d7a6725d077079ee2b27f55e6209e6
b754f5a6a36d6f3068e938af525d8b056c7f9bce
Soften windows clang requirement (#7428) This will no longer error if built with regular gcc on windows. To help triage issues that may come in related to different compilers, the runner now reports the compier used by cgo.
[ { "path": ".github/workflows/release.yaml", "patch": "@@ -115,6 +115,7 @@ jobs:\n $env:CMAKE_SYSTEM_VERSION=\"10.0.22621.0\"\n $env:PATH=\"$gopath;$env:PATH\"\n $cores = (Get-ComputerInfo -Property CsProcessors).CsProcessors.NumberOfCores\n+ if (!(gcc --version | selec...
2024-10-30T19:28:36
golang/go
43c7b214dba8b2a5bfd7d22b66b875865d0aa0f2
6812eae2e2b9c69a4046a615f00c83fe9543ffe3
[dev.typeparams] cmd/compile/internal/types2: adjusted qualified identifier error message for compiler Also: Triaged/adjusted some more test/fixedbugs tests. Change-Id: I050847b6dfccc7f301f8100bfdbe84e0487e33fc Reviewed-on: https://go-review.googlesource.com/c/go/+/276512 Trust: Robert Griesemer <gri@golang.org> Revie...
[ { "path": "src/cmd/compile/internal/types2/call.go", "patch": "@@ -490,7 +490,11 @@ func (check *Checker) selector(x *operand, e *syntax.SelectorExpr) {\n \t\t\t\texp = pkg.scope.Lookup(sel)\n \t\t\t\tif exp == nil {\n \t\t\t\t\tif !pkg.fake {\n-\t\t\t\t\t\tcheck.errorf(e.Sel, \"%s not declared by package %...
2020-12-09T06:01:22
vercel/next.js
71f5f258ab01bc3146e2cf817ce7a9814771836d
b0f590162c14fdbdfcc3f848dbbb9ad9cfccd72b
Setup require hook in next-server for styled-jsx resolving (#39305) * Use require hook and alias to resolve styled-jsx * re-export styled-jsx types from compiled * fix lint * add test for styled-jsx css * setup require hook in server * compile import path to styled-jsx/style * revert require hook ...
[ { "path": "package.json", "patch": "@@ -192,7 +192,6 @@\n \"semver\": \"7.3.7\",\n \"shell-quote\": \"1.7.3\",\n \"styled-components\": \"5.3.3\",\n- \"styled-jsx\": \"link:packages/next/node_modules/styled-jsx\",\n \"styled-jsx-plugin-postcss\": \"3.0.2\",\n \"tailwindcss\": \"1.1.3\...
2022-08-09T01:27:42
huggingface/transformers
0574fa668bec70c3d9366e9e0efa0cdf2e559988
65bb28444849976f853063edb958b3ef3dd59d12
Adjust templates (#33384) * Adjust templates * Update .github/ISSUE_TEMPLATE/bug-report.yml Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com> * Chat templates --------- Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
[ { "path": ".github/ISSUE_TEMPLATE/bug-report.yml", "patch": "@@ -37,17 +37,17 @@ body:\n Models:\n \n - text models: @ArthurZucker\n- - vision models: @amyeroberts\n- - speech models: @sanchit-gandhi\n+ - vision models: @amyeroberts, @qubvel\n+ - speech ...
2024-09-09T12:00:43
nodejs/node
98f744cbc9a6cb844595e028a23a925b7f7edfe1
1b0d9795b6b738bdc27880a71764d3fe86e68e45
doc: fix typo in TextEncoding section PR-URL: https://github.com/nodejs/node/pull/18201 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Revi...
[ { "path": "doc/api/util.md", "patch": "@@ -869,7 +869,7 @@ const uint8array = encoder.encode('this is some data');\n UTF-8 encodes the `input` string and returns a `Uint8Array` containing the\n encoded bytes.\n \n-### textDecoder.encoding\n+### textEncoder.encoding\n \n * {string}\n ", "additions": 1, ...
2018-01-17T07:36:59
ollama/ollama
91dfbb1bba3318c1604e75ecc95e23b2991001db
db1842b9e1272237947d427c852c38e48688dd02
windows: Support alt install paths, fit and finish (#6967) * windows: Support alt install paths Advanced users are leveraging innosetup's /DIR switch to target an alternate location, but we get confused by things not existing in the LocalAppData dir. This also hardens the server path lookup code for a future atte...
[ { "path": "app/lifecycle/lifecycle.go", "patch": "@@ -11,10 +11,12 @@ import (\n \n \t\"github.com/ollama/ollama/app/store\"\n \t\"github.com/ollama/ollama/app/tray\"\n+\t\"github.com/ollama/ollama/envconfig\"\n )\n \n func Run() {\n \tInitLogging()\n+\tslog.Info(\"app config\", \"env\", envconfig.Values())...
2024-10-30T16:24:31
golang/go
6812eae2e2b9c69a4046a615f00c83fe9543ffe3
810957b1555358fd22e6dfd75cdceb2117362f91
[dev.typeparams] cmd/compile/internal/types2: adjust init cycle error message for compiler Enabled some more test/fixedbugs tests. Change-Id: I02102b698eedfbee582b3234850fb01418ebbf7c Reviewed-on: https://go-review.googlesource.com/c/go/+/276453 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rf...
[ { "path": "src/cmd/compile/internal/types2/initorder.go", "patch": "@@ -151,7 +151,11 @@ func findPath(objMap map[Object]*declInfo, from, to Object, seen map[Object]bool\n // reportCycle reports an error for the given cycle.\n func (check *Checker) reportCycle(cycle []Object) {\n \tobj := cycle[0]\n-\tcheck...
2020-12-09T01:56:35
vercel/next.js
289bfa6af937ed9a6ad059f0a0141e0a94c78c12
60c8e5c29e4da99ac1aa458b1ba3bdf829111115
Fix Link generation for SSG pages if locale domains are used (#36818) * Fix SSG Link generation if using domain locales * Updated condition and test * Changed export worker domain locale check * Update check Co-authored-by: JJ Kasper <jj@jjsweb.site>
[ { "path": "packages/next/export/worker.ts", "patch": "@@ -2,7 +2,7 @@ import type { ComponentType } from 'react'\n import type { FontManifest } from '../server/font-utils'\n import type { GetStaticProps } from '../types'\n import type { IncomingMessage, ServerResponse } from 'http'\n-import type { NextConfi...
2022-08-08T23:42:40
nodejs/node
b88da496ef3ac9bf2a9dab101bb5827d9f41df04
dbdcf12187ec4cdc2f9b4aa080328fb746a5afd0
test: fix flaky interval test PR-URL: https://github.com/nodejs/node/pull/18161 Fixes: https://github.com/nodejs/node/issues/18160 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
[ { "path": "test/sequential/test-timers-set-interval-excludes-callback-duration.js", "patch": "@@ -8,10 +8,10 @@ let first;\n const t = setInterval(() => {\n cntr++;\n if (cntr === 1) {\n- first = Timer.now();\n common.busyLoop(100);\n+ first = Timer.now();\n } else if (cntr === 2) {\n- as...
2018-01-15T15:09:55
huggingface/transformers
65bb28444849976f853063edb958b3ef3dd59d12
eedd21b9e7ef38f628240b9fe62e3fc28b662e04
Compile compatibilty for decoder-only models (#32617) * squash into one commit * add qwen2-vl for rope standardization * fix mistral compile * fix qwen2-vl * fix-copies
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -1629,13 +1629,14 @@ def _tensor_or_none(token, device=None):\n \n # Set pad token if unset (and there are conditions to do so)\n if pad_token_tensor is None and eos_token_tensor is not None:\n- if kwargs_has_attention...
2024-09-09T08:59:04
ollama/ollama
c9ca386131881f1fde3ab173e4eb47c8db8d475b
078f666f73422edc1a3819332c03b6f467d064f4
Switch windows to clang (#7407) * Switch over to clang for deepseek on windows The patch for deepseek requires clang on windows. gcc on windows has a buggy c++ library and can't handle the unicode characters * Fail fast with wrong compiler on windows Avoid users mistakenly building with GCC when we need clan...
[ { "path": "docs/development.md", "patch": "@@ -296,10 +296,13 @@ The following tools are required as a minimal development environment to build C\n - https://go.dev/dl/\n - Git\n - https://git-scm.com/download/win\n-- GCC and Make. There are multiple options on how to go about installing these tools on...
2024-10-29T20:15:04
golang/go
810957b1555358fd22e6dfd75cdceb2117362f91
c32566c336519f378c07575b0149507a261032e9
[dev.typeparams] cmd/compile/internal/types2: adjusted array error message for compiler Also: Triaged/adjusted some more test/fixedbugs tests. Change-Id: Idaba1875273d6da6ef82dd8de8edd8daa885d32c Reviewed-on: https://go-review.googlesource.com/c/go/+/276472 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert ...
[ { "path": "src/cmd/compile/internal/types2/expr.go", "patch": "@@ -1039,7 +1039,11 @@ func (check *Checker) index(index syntax.Expr, max int64) (typ Type, val int64)\n \n \tv, valid := constant.Int64Val(constant.ToInt(x.val))\n \tif !valid || max >= 0 && v >= max {\n-\t\tcheck.errorf(&x, \"index %s is out o...
2020-12-09T01:48:39
vercel/next.js
60c8e5c29e4da99ac1aa458b1ba3bdf829111115
1cc6e47abe01798bf43014d807d4fb2df9d3f84b
Fix: broken TypeScript in WordPress example. (#39402) * chore: add typescript and update deps * style: add tsconfig * chore: add g.avatar.com domain * fix: images domain api url to match with hostname * style: convert files to typescript * refactor(Avatar): const name for readable purpose * refactor:...
[ { "path": "examples/cms-wordpress/README.md", "patch": "@@ -1,6 +1,6 @@\n-# A statically generated blog example using Next.js and WordPress\n+# An Incremental Static Regeneration Blog Example Using Next.js and WordPress\n \n-This example showcases Next.js's [Static Generation](https://nextjs.org/docs/basic-...
2022-08-08T19:18:26
rust-lang/rust
f9d0a14639df0f92645ff58ed4958509473c03ad
f5c37c3732360b21dc6d049003838e99b5ec5263
resolve repeated attribute fixme
[ { "path": "compiler/rustc_builtin_macros/src/autodiff.rs", "patch": "@@ -282,22 +282,35 @@ mod llvm_enzyme {\n span,\n };\n \n+ // We're avoid duplicating the attributes `#[rustc_autodiff]` and `#[inline(never)]`.\n+ fn same_attribute(attr: &ast::AttrKind, item: &ast::AttrK...
2025-03-17T21:06:26
nodejs/node
dbdcf12187ec4cdc2f9b4aa080328fb746a5afd0
1e802539b2811f5090281cfc8041f21120c2c3c6
doc: correct buffer changelog ordering This commit reorders the function level changelogs of Buffer.prototype.fill() and Buffer.alloc() to reflect the order in which the entries were added. PR-URL: https://github.com/nodejs/node/pull/18129 Fixes: https://github.com/nodejs/node/issues/18128 Reviewed-By: Richard Lau <r...
[ { "path": "doc/api/buffer.md", "patch": "@@ -511,18 +511,18 @@ console.log(buf2.toString());\n <!-- YAML\n added: v5.10.0\n changes:\n- - version: v8.9.3\n- pr-url: https://github.com/nodejs/node/pull/17428\n- description: Specifying an invalid string for `fill` now results in a\n- ze...
2018-01-17T01:13:26
huggingface/transformers
eedd21b9e7ef38f628240b9fe62e3fc28b662e04
489cbfd6d3b0c441cf2dbbf08e753896e5a9aea9
Fixed Majority of the Typos in `transformers[en]` Documentation (#33350) * Fixed typo: insted to instead * Fixed typo: relase to release * Fixed typo: nighlty to nightly * Fixed typos: versatible, benchamarks, becnhmark to versatile, benchmark, benchmarks * Fixed typo in comment: quantizd to quantized *...
[ { "path": "docs/source/en/accelerate.md", "patch": "@@ -46,7 +46,7 @@ The next step is to pass all the relevant training objects to the [`~accelerate.\n \n ## Backward\n \n-The last addition is to replace the typical `loss.backward()` in your training loop with 🤗 Accelerate's [`~accelerate.Accelerator.back...
2024-09-09T08:47:24
rust-lang/rust
192206bfbb57ed2781ccc9319405038e5778c1a5
1fb5e1a5ba8129c13790320a855623fb9e3170c3
Revert "Disable some PPC64 tests which are failing due to an LLVM(?) bug" This reverts commit 265fdacab9b3c63b2c17a42fb17c51996c703ef8. Fixes: https://github.com/rust-lang/rust/issues/99853 Signed-off-by: Jens Reidel <adrian@travitia.xyz>
[ { "path": "library/compiler-builtins/testcrate/tests/mem.rs", "patch": "@@ -230,8 +230,6 @@ fn memmove_backward_aligned() {\n }\n }\n \n-// PowerPC tests are failing: https://github.com/rust-lang/rust/issues/99853\n-#[cfg(not(target_arch = \"powerpc64\"))]\n #[test]\n fn memset_backward_misaligned_nonal...
2025-03-17T01:41:53
vercel/next.js
0c6eabaaec4d90ed26d47878a8bd89f79092ef79
905440ee96a89de64aaa34f2fc63130fbd15aa5c
Fix wrong hooks usage in webpack-node-module-trace (#214)
[ { "path": "packages/webpack-nmt/src/index.ts", "patch": "@@ -1,24 +1,28 @@\n-import { spawn } from 'child_process'\n+import { spawnSync } from 'child_process'\n import { join } from 'path'\n \n import { Compilation, WebpackPluginInstance, Compiler } from 'webpack'\n \n export interface NodeModuleTracePlugin...
2022-08-08T15:30:19
nodejs/node
1e802539b2811f5090281cfc8041f21120c2c3c6
db9c556f507ea2510a603ca526d6cd1e79cfac2d
buffer: throw when filling with empty buffers Prior to this commit, Node would enter an infinite loop when attempting to fill a non-zero length buffer with a zero length buffer. This commit introduces a thrown exception in this scenario. PR-URL: https://github.com/nodejs/node/pull/18129 Fixes: https://github.com/node...
[ { "path": "doc/api/buffer.md", "patch": "@@ -519,6 +519,10 @@ changes:\n pr-url: https://github.com/nodejs/node/pull/17427\n description: Specifying an invalid string for `fill` triggers a thrown\n exception.\n+ - version: REPLACEME\n+ pr-url: https://github.com/nodejs/node/pull...
2018-01-13T05:30:28
nodejs/node
4e2e7d11e16d185a088aec77d1adc7bb4b606806
f878f9414eb6c7ef1d166404ae43444826706db8
cluster: resolve relative unix socket paths Relative unix sockets paths were previously interpreted relative to the master's CWD, which was inconsistent with non-cluster behavior. A test case has been added as well. PR-URL: https://github.com/nodejs/node/pull/16749 Fixes: https://github.com/nodejs/node/issues/16387 R...
[ { "path": "lib/internal/cluster/child.js", "patch": "@@ -1,6 +1,7 @@\n 'use strict';\n const assert = require('assert');\n const util = require('util');\n+const path = require('path');\n const EventEmitter = require('events');\n const Worker = require('internal/cluster/worker');\n const { internal, sendHelp...
2018-01-08T20:05:33
vercel/next.js
b292bdc293bae1476f7b67a4e69e50eb7b7d1838
8ebd1a24cb62e94789501abe5dbceb497f7ea47a
fix(ts): Middleware type tweaks (#38625) * fix internal type * allow `void` to be returned from Middleware * mark deprecated APIs in JSDoc * fix typo * add missing error page * remove unused import
[ { "path": "errors/manifest.json", "patch": "@@ -719,6 +719,10 @@\n {\n \"title\": \"failed-to-fetch-devpagesmanifest\",\n \"path\": \"/errors/failed-to-fetch-devpagesmanifest.md\"\n+ },\n+ {\n+ \"title\": \"middleware-parse-user-agent\",\n+ \"path\...
2022-08-08T14:40:44
huggingface/transformers
62aecd85ffa226d9552529acfd388d87a6b4ecb1
60226fdc1d8d5e854c18115f4986d9a2aa0fabdf
schedulefree optimizers (#30079) * schedulefree optimizers * fix train instead of eval for optimizer * fixes and update docs * chore: lint * add tests and drop overly-verbose _32bit suffix * chore: lint * fix for docs * fix code review issues * use duck-typing to avoid per-optimizer patches ...
[ { "path": "docs/source/en/trainer.md", "patch": "@@ -518,6 +518,51 @@ trainer.train()\n \n This script demonstrates how to fine-tune the `google/gemma-2b` model on the IMDB dataset using the GrokAdamW optimizer. The `TrainingArguments` are configured to use GrokAdamW, and the dataset is passed to the `Train...
2024-09-09T07:51:39
rust-lang/rust
6222a735b0179603b86e8423071ba2c4182d70ae
2b431f768b283319d52be7353024c8426fe8e9fe
Move `hir::Item::ident` into `hir::ItemKind`. `hir::Item` has an `ident` field. - It's always non-empty for these item kinds: `ExternCrate`, `Static`, `Const`, `Fn`, `Macro`, `Mod`, `TyAlias`, `Enum`, `Struct`, `Union`, Trait`, TraitAalis`. - It's always empty for these item kinds: `ForeignMod`, `GlobalAsm`, `...
[ { "path": "clippy_lints/src/arbitrary_source_item_ordering.rs", "patch": "@@ -5,7 +5,7 @@ use clippy_config::types::{\n };\n use clippy_utils::diagnostics::span_lint_and_note;\n use rustc_hir::{\n- AssocItemKind, FieldDef, HirId, ImplItemRef, IsAuto, Item, ItemKind, Mod, QPath, TraitItemRef, TyKind, UseK...
2025-03-06T08:07:36
nodejs/node
f878f9414eb6c7ef1d166404ae43444826706db8
cd60c7db5fe04c6a53b7dd8784ad0b52af30958d
build: refine static and shared lib build Refine the static and shared lib build process in order to integrate static and shared lib verfication into CI. When building both static and shared lib, we still build node executable now and it uses the shared and static lib. Signed-off-by: Yihong Wang <yh.wang@ibm.com> Fi...
[ { "path": "configure", "patch": "@@ -878,7 +878,6 @@ def configure_node(o):\n configure_mips(o)\n \n if flavor == 'aix':\n- o['variables']['node_core_target_name'] = 'node_base'\n o['variables']['node_target_type'] = 'static_library'\n \n if target_arch in ('x86', 'x64', 'ia32', 'x32'):\n@@ -...
2017-12-05T00:07:53
vercel/next.js
8ebd1a24cb62e94789501abe5dbceb497f7ea47a
f60f8aede6c2a73098f49dc578bde98d37ae7004
Update polyfill for eslint no-unwanted-polyfillio rule (#33170) Fixes #33072 I documented all `esXXX` features to be sure that they were already polyfilled. Only `es2019` feature `Object.fromEntries` is not already polyfilled by nextjs. I added some unwanted polyfill (that are polyfilled by nextjs). I kept the `es5...
[ { "path": "packages/eslint-plugin-next/lib/rules/no-unwanted-polyfillio.js", "patch": "@@ -1,3 +1,4 @@\n+// Keep in sync with next.js polyfills file : https://github.com/vercel/next.js/blob/master/packages/next-polyfill-nomodule/src/index.js\n const NEXT_POLYFILLED_FEATURES = [\n 'Array.prototype.@@iterat...
2022-08-08T05:56:31
huggingface/transformers
60226fdc1d8d5e854c18115f4986d9a2aa0fabdf
66bc4def9505fa7c7fe4aa7a248c34a026bb552b
Fix quantized cache tests (#33351) * fix * fix * better fix * Update src/transformers/generation/configuration_utils.py Co-authored-by: Lysandre Debut <hi@lysand.re> --------- Co-authored-by: Lysandre Debut <hi@lysand.re>
[ { "path": "src/transformers/generation/configuration_utils.py", "patch": "@@ -68,9 +68,7 @@\n \"mamba\": MambaCache,\n }\n QUANT_BACKEND_CLASSES_MAPPING = {\"quanto\": QuantoQuantizedCache, \"HQQ\": HQQQuantizedCache}\n- ALL_CACHE_IMPLEMENTATIONS = list(NEED_SETUP_CACHE_CLASSES_MAPPING.ke...
2024-09-09T07:09:58
huggingface/transformers
d7b04ea14ddfef04fc110f360e8ea81cfcd1c86a
6ff6069fa7e23dac9af999fb28503fec9d48c5bf
Fix Prefill docs (#33352) last -> final
[ { "path": "docs/source/en/chat_templating.md", "patch": "@@ -196,7 +196,7 @@ Not all models require generation prompts. Some models, like LLaMA, don't have a\n special tokens before bot responses. In these cases, the `add_generation_prompt` argument will have no effect. The exact\n effect that `add_generati...
2024-09-06T16:57:54
vercel/next.js
f60f8aede6c2a73098f49dc578bde98d37ae7004
59b144c2642708e36499f0331a6fae7e8dfb8633
Land(Update example with-apivideo-upload README) (#39391) * update(README) * fix create scripts Co-authored-by: MarDi66 <yohann.mtfpro@gmail.com>
[ { "path": "examples/with-apivideo-upload/README.md", "patch": "@@ -18,10 +18,14 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag\n \n ```bash\n npx create-next-app --example with-apivideo-upload with-apivideo-upload-app\n-# or\n+```\n+\n+```bash\n yarn create next-app --ex...
2022-08-08T05:33:17
rust-lang/rust
f2ddbcd24b3e71a2c919721f854043f1bb81ff79
6698c26b3ab9ef90a31af1afc367bab3a359563c
Move `hir::Item::ident` into `hir::ItemKind`. `hir::Item` has an `ident` field. - It's always non-empty for these item kinds: `ExternCrate`, `Static`, `Const`, `Fn`, `Macro`, `Mod`, `TyAlias`, `Enum`, `Struct`, `Union`, Trait`, TraitAalis`. - It's always empty for these item kinds: `ForeignMod`, `GlobalAsm`, `...
[ { "path": "compiler/rustc_ast_lowering/src/index.rs", "patch": "@@ -164,7 +164,7 @@ impl<'a, 'hir> Visitor<'hir> for NodeCollector<'a, 'hir> {\n fn visit_item(&mut self, i: &'hir Item<'hir>) {\n debug_assert_eq!(i.owner_id, self.owner);\n self.with_parent(i.hir_id(), |this| {\n- ...
2025-03-06T08:07:36
nodejs/node
d3600e513ae277534e9a37b51489ec8584fbf3dc
c90185c15e406df2c190e8ed7932d932e2260708
doc: fix typo in http2stream.close param default PR-URL: https://github.com/nodejs/node/pull/18166 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjih...
[ { "path": "doc/api/http2.md", "patch": "@@ -919,7 +919,7 @@ added: v8.4.0\n -->\n \n * code {number} Unsigned 32-bit integer identifying the error code. **Default:**\n- `http2.constant.NGHTTP2_NO_ERROR` (`0x00`)\n+ `http2.constants.NGHTTP2_NO_ERROR` (`0x00`)\n * `callback` {Function} An optional function ...
2018-01-15T19:36:55
huggingface/transformers
6ff6069fa7e23dac9af999fb28503fec9d48c5bf
2d757002fc25e33b0c8b949340f3ef030b1711b4
RoPE: fix BC warning (#33331)
[ { "path": "src/transformers/modeling_rope_utils.py", "patch": "@@ -362,10 +362,10 @@ def _compute_llama3_parameters(\n \n def _check_received_keys(rope_type: str, received_keys: set, required_keys: set, optional_keys: Optional[set] = None):\n \"\"\"Compare the received keys in `config.rope_scaling` agai...
2024-09-06T15:15:11
vercel/next.js
59b144c2642708e36499f0331a6fae7e8dfb8633
4199da09b8211a6687ca1ea4acbde6a1d597c576
[ESLint] Adds `--output-file` flag (#36420) Add support for `--output-file` on ESLint cli, based on this discussion https://github.com/vercel/next.js/discussions/26179, and this closed PR https://github.com/vercel/next.js/pull/35154. With this flag, it is possible to save the output in a file and use it for any purpos...
[ { "path": "packages/next/cli/next-lint.ts", "patch": "@@ -71,10 +71,12 @@ const nextLint: cliCommand = async (argv) => {\n '--cache-strategy': String,\n '--error-on-unmatched-pattern': Boolean,\n '--format': String,\n+ '--output-file': String,\n \n // Aliases\n '-c': '--config',\n ...
2022-08-08T05:29:23
nodejs/node
c90185c15e406df2c190e8ed7932d932e2260708
82b07835193f4a02431cc12bf9bc0ef4eb3847e5
test: fixed typos in napi test PR-URL: https://github.com/nodejs/node/pull/18148 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net...
[ { "path": "test/addons-napi/test_symbol/test_symbol.c", "patch": "@@ -12,7 +12,7 @@ napi_value Test(napi_env env, napi_callback_info info) {\n NAPI_CALL(env, napi_typeof(env, args[0], &valuetype));\n \n NAPI_ASSERT(env, valuetype == napi_symbol,\n- \"Wrong type of argments. Expects a symbol.\");\n+...
2018-01-14T18:01:51
huggingface/transformers
2d757002fc25e33b0c8b949340f3ef030b1711b4
e48e5f1f13e05380e24f4f31f5fee07aa6f959eb
red-ci on main, fix copies (#33356) * fix copies * ???
[ { "path": "src/transformers/models/camembert/modeling_camembert.py", "patch": "@@ -916,7 +916,7 @@ def forward(\n encoder_hidden_states (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`, *optional*):\n Sequence of hidden-states at the output of the last layer of...
2024-09-06T15:06:39
vercel/next.js
ab48f547864a1e325dd92bfb4790833917e1d71f
160da6b80692738c575c3401c6abbfc5f52f721f
Adds `eslint-plugin-eslint-plugin` to ensure `eslint-plugin-next` rules follow ESLint rule best practices along with enforcing some consistency. (#37920) * Adds eslint-plugin-eslint-plugin and recommended rules. * Removes `fixable` as none of the rules contain fixers. * Adds description and url rules. * Adds ...
[ { "path": ".eslintrc.json", "patch": "@@ -145,6 +145,30 @@\n }\n ]\n }\n+ },\n+ {\n+ \"files\": [\n+ \"packages/eslint-plugin-next/**/*.js\",\n+ \"test/unit/eslint-plugin-next/**/*.test.ts\"\n+ ],\n+ \"extends\": [\"plugin:eslint-plugin/recommended\...
2022-08-08T04:52:02
nodejs/node
82b07835193f4a02431cc12bf9bc0ef4eb3847e5
1312db56510028a916e399b81cee754742430ec9
src,doc,test: Fix common misspellings PR-URL: https://github.com/nodejs/node/pull/18151 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen...
[ { "path": "doc/api/stream.md", "patch": "@@ -1505,7 +1505,7 @@ added: v8.0.0\n argument.\n \n The `_destroy()` method is called by [`writable.destroy()`][writable-destroy].\n-It can be overriden by child classes but it **must not** be called directly.\n+It can be overridden by child classes but it **must ...
2018-01-14T21:08:46
huggingface/transformers
e48e5f1f13e05380e24f4f31f5fee07aa6f959eb
342e800086821b375d8a779f9274059abdac5a8f
Support reading tiktoken tokenizer.model file (#31656) * use existing TikTokenConverter to read tiktoken tokenizer.model file * del test file * create titktoken integration file * adding tiktoken llama test * ALTNATIVE IMPLEMENTATION: supports llama 405B * fix one char * remove redundant line * sm...
[ { "path": "docker/consistency.dockerfile", "patch": "@@ -13,4 +13,4 @@ RUN uv pip install --no-cache-dir \"git+https://github.com/huggingface/transforme\n RUN git lfs install\n \n RUN pip uninstall -y transformers\n-RUN apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get autoremove && apt-get autoclean\...
2024-09-06T12:24:02
vercel/next.js
160da6b80692738c575c3401c6abbfc5f52f721f
4264408b164130308e367327eb5e4c314ffb74b3
next/image imgix loader can use multiple auto params (#34808) fix: imgixLoader can use multiple auto params
[ { "path": "packages/next/client/image.tsx", "patch": "@@ -974,7 +974,8 @@ function imgixLoader({\n const url = new URL(`${config.path}${normalizeSrc(src)}`)\n const params = url.searchParams\n \n- params.set('auto', params.get('auto') || 'format')\n+ // auto params can be combined with comma separatio...
2022-08-08T04:27:00
ollama/ollama
de1557a0dcdcd1cfd5b5af00a17042c3dba97ffd
084929c29318c6a6604f1b01eb0a782cb31242ba
runner.go: Better handle return NULL values from llama.cpp Llama.cpp sometimes returns NULL as a return value to report an error. We should explicitly check for this and convert it to a Go error rather than putting NULL in our data structures and waiting for it to blow up later.
[ { "path": "llama/llama.go", "patch": "@@ -136,10 +136,6 @@ func (c *Context) Model() *Model {\n \treturn &Model{c: C.llama_get_model(c.c)}\n }\n \n-func (c *Context) GetLogitsIth(i int) []float32 {\n-\treturn unsafe.Slice((*float32)(unsafe.Pointer(C.llama_get_logits_ith(c.c, C.int(i)))), c.Model().NumVocab(...
2024-10-22T21:57:46
huggingface/transformers
342e800086821b375d8a779f9274059abdac5a8f
2b183541060b88f693a301effcb2f838f0c12833
support 3D attention mask in bert (#32105) * support 3D/4D attention mask in bert * test cases * update doc * fix doc
[ { "path": "src/transformers/models/bert/modeling_bert.py", "patch": "@@ -908,7 +908,7 @@ class BertForPreTrainingOutput(ModelOutput):\n [`PreTrainedTokenizer.__call__`] for details.\n \n [What are input IDs?](../glossary#input-ids)\n- attention_mask (`torch.FloatTensor` of sha...
2024-09-06T12:20:48
golang/go
89f465c2b59cea32c10ed69eaa07e17f85c910e2
f1980efb92c011eab71aa61b68ccf58d845d1de7
go/types: avoid endless recursion in the Comparable predicate This is a port of CL 276374 from the dev.typeparams branch. Avoid an endless recursion in Comparable by tracking types that have already been considered. Fixes #43088 Change-Id: I927b29ac544df9bfb5c8c04699d57fafe6cfff73 Reviewed-on: https://go-review.goog...
[ { "path": "src/go/types/issues_test.go", "patch": "@@ -12,6 +12,7 @@ import (\n \t\"go/ast\"\n \t\"go/importer\"\n \t\"go/parser\"\n+\t\"go/token\"\n \t\"internal/testenv\"\n \t\"sort\"\n \t\"strings\"\n@@ -523,3 +524,28 @@ func TestIssue34921(t *testing.T) {\n \t\tpkg = res // res is imported by the next p...
2020-12-09T11:10:52
nodejs/node
1312db56510028a916e399b81cee754742430ec9
5eccbb09fa04ccc3ad3a5624d0552b71233dff3f
test: test error messages from fs.realpath{Sync} PR-URL: https://github.com/nodejs/node/pull/17914 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "test/parallel/test-fs-error-messages.js", "patch": "@@ -64,6 +64,16 @@ fs.lstat(fn, common.mustCall((err) => {\n }));\n }\n \n+fs.realpath(fn, common.mustCall((err) => {\n+ assert.strictEqual(fn, err.path);\n+ assert.strictEqual(\n+ err.message,\n+ `ENOENT: no such file or directory, ls...
2017-12-29T10:14:30
rust-lang/rust
a1bdc191ba5c3976d7f1d09d894a8c41760166fb
48005578576c7820590f680b92f5f6213b9165f5
Reinstate `single_match`/`single_match_else` lints with comments Commit efe3fe9b8c5f16bbf39af7415bbde9441bc54dbb removed the ability for `single_match` and `single_match_else` to trigger if comments were present outside of the arms, as those comments would be lost while rewriting the `match` expression. This reinstat...
[ { "path": "clippy_lints/src/matches/mod.rs", "patch": "@@ -1110,11 +1110,9 @@ impl<'tcx> LateLintPass<'tcx> for Matches {\n }\n }\n }\n- // If there are still comments, it means they are outside of the arms, therefore...
2025-03-16T18:12:56
vercel/next.js
4264408b164130308e367327eb5e4c314ffb74b3
b30ae643a4faab8931a4b566277a615275a8ab39
Fix emotion shouldForwardProp options breaks component selectors (#39390) fixes https://github.com/vercel/next.js/issues/38291 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an exist...
[ { "path": "examples/with-emotion-swc/shared/styles.tsx", "patch": "@@ -62,7 +62,9 @@ export const Pink = styled(Basic)({\n color: 'hotpink',\n })\n \n-export const BasicExtended = styled(Basic)``\n+export const BasicExtended = styled(Basic, {\n+ shouldForwardProp: (propertyName: string) => !propertyName....
2022-08-08T03:46:11
huggingface/transformers
2b183541060b88f693a301effcb2f838f0c12833
3314fe1760af5b1308a0ea95f8ca522f23c01f9e
add self.head_dim for VisionAttention in Qwen2-VL (#33211) * add self.head_dim for VisionAttention in Qwen2-VL * add self.head_dim for VisionAttention in Qwen2-VL * fix ci * black the test_modeling_qwen2_vl.py * use ruff to format test_modeling_qwen2_vl.py * [run-slow] qwen2_vl * use tying for python...
[ { "path": "tests/models/qwen2_vl/test_modeling_qwen2_vl.py", "patch": "@@ -164,7 +164,9 @@ def prepare_config_and_inputs_for_common(self):\n attention_mask = torch.ones(input_ids.shape, dtype=torch.long, device=torch_device)\n input_ids[:, torch.arange(vision_seqlen, device=torch_device) + 1...
2024-09-06T12:19:29
ollama/ollama
099f7077a146917a78e136b4bbcf19ab134961d5
d7c94e0ca6c39f6c64f74799c0dc8f3f91079edc
Fix deepseek deseret regex (#7369) On windows compiled with gcc the c++ regex library failed to handle the characters
[ { "path": "llama/llama-vocab.cpp", "patch": "@@ -415,7 +415,7 @@ struct llm_tokenizer_bpe : llm_tokenizer {\n case LLAMA_VOCAB_PRE_TYPE_DEEPSEEK_LLM:\n regex_exprs = {\n \"[\\r\\n]\",\n- \"\\\\s?[A-Za-zµÀ-ÖØ-öø-ƺƼ-ƿDŽ-ʓʕ-ʯͰ-ͳͶͷͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵ...
2024-10-26T21:58:54
golang/go
f1980efb92c011eab71aa61b68ccf58d845d1de7
4f1b0a44cb46f3df28f5ef82e5769ebeac1bc493
all: update to use os.ReadDir where appropriate os.ReadDir is a replacement for ioutil.ReadDir that returns a slice of fs.DirEntry instead of fs.FileInfo, meaning it is the more efficient form. This CL updates call sites throughout the Go source tree wherever possible. As usual, code built using the Go 1.4 bootstrap ...
[ { "path": "src/cmd/go/internal/clean/clean.go", "patch": "@@ -9,7 +9,6 @@ import (\n \t\"context\"\n \t\"fmt\"\n \t\"io\"\n-\t\"io/ioutil\"\n \t\"os\"\n \t\"path/filepath\"\n \t\"strconv\"\n@@ -244,7 +243,7 @@ func clean(p *load.Package) {\n \t\tbase.Errorf(\"%v\", p.Error)\n \t\treturn\n \t}\n-\tdirs, err ...
2020-10-29T18:46:29
nodejs/node
5eccbb09fa04ccc3ad3a5624d0552b71233dff3f
8c00a809bc08d87776f74c84751607155f3df61f
test: verify errors thrown from fs stat APIs PR-URL: https://github.com/nodejs/node/pull/17914 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "test/parallel/test-fs-error-messages.js", "patch": "@@ -20,7 +20,7 @@\n // USE OR OTHER DEALINGS IN THE SOFTWARE.\n \n 'use strict';\n-require('../common');\n+const common = require('../common');\n const fixtures = require('../common/fixtures');\n const assert = require('assert');\n const fs = re...
2017-12-28T15:59:53
rust-lang/rust
0ee94562c9e7e2e75a13f06d9820cd191e21a06a
9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a
fix download-llvm logic for subtree sync branches
[ { "path": "src/build_helper/src/git.rs", "patch": "@@ -140,6 +140,7 @@ pub fn get_closest_merge_commit(\n // cd \\\"/checkout\\\" && \\\"git\\\" \\\"merge-base\\\" \\\"origin/master\\\" \\\"HEAD\\\"\\nexpected success, got: exit status: 1\\n\"\n // ```\n // Investigate...
2025-03-17T14:49:28
huggingface/transformers
3314fe1760af5b1308a0ea95f8ca522f23c01f9e
363301f2219fff6ad05bd98a51faa1cc510b040e
Add validation for maximum sequence length in modeling_whisper.py (#33196) * Add validation for maximum sequence length in modeling_whisper.py Added a validation check to ensure that the sequence length of labels does not exceed the maximum allowed length of 448 tokens. If the sequence length exceeds this limit, a ...
[ { "path": "src/transformers/models/whisper/modeling_whisper.py", "patch": "@@ -1671,6 +1671,7 @@ def __init__(self, config: WhisperConfig):\n super().__init__(config)\n self.model = WhisperModel(config)\n self.proj_out = nn.Linear(config.d_model, config.vocab_size, bias=False)\n+ ...
2024-09-06T12:09:49
vercel/next.js
4da09da1a2fa0c7b2d9c558b8072dfdd00a4b369
8ddcc6aedb6dcd424ff0e44c8d47450ae77a3723
Fix emotion labelFormat and sourcemap options (#39389) fixes https://github.com/vercel/next.js/issues/39386
[ { "path": "packages/next/build/swc/options.js", "patch": "@@ -152,9 +152,9 @@ function getEmotionOptions(nextConfig, development) {\n return {\n enabled: true,\n autoLabel,\n- labelFormat: nextConfig?.experimental?.emotion?.labelFormat,\n+ labelFormat: nextConfig?.compiler?.emotion?.labelFor...
2022-08-08T02:52:44
ollama/ollama
d7c94e0ca6c39f6c64f74799c0dc8f3f91079edc
35ec7f079ff3d08b1b837bffe202107abaa00555
Better support for AMD multi-GPU on linux (#7212) * Better support for AMD multi-GPU This resolves a number of problems related to AMD multi-GPU setups on linux. The numeric IDs used by rocm are not the same as the numeric IDs exposed in sysfs although the ordering is consistent. We have to count up from the f...
[ { "path": "discover/amd_common.go", "patch": "@@ -37,19 +37,6 @@ func GetSupportedGFX(libDir string) ([]string, error) {\n \treturn ret, nil\n }\n \n-func rocmGetVisibleDevicesEnv(gpuInfo []GpuInfo) (string, string) {\n-\tids := []string{}\n-\tfor _, info := range gpuInfo {\n-\t\tif info.Library != \"rocm\"...
2024-10-26T21:04:14
nodejs/node
8c00a809bc08d87776f74c84751607155f3df61f
da7804f25914fe5a460db01c2e234dafc3649dfc
fs: throw fs.fstat{Sync} errors in JS PR-URL: https://github.com/nodejs/node/pull/17914 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "lib/fs.js", "patch": "@@ -633,12 +633,11 @@ function readFileAfterClose(err) {\n }\n \n function tryStatSync(fd, isUserFd) {\n- var threw = true;\n- try {\n- binding.fstat(fd);\n- threw = false;\n- } finally {\n- if (threw && !isUserFd) fs.closeSync(fd);\n+ const ctx = {};\n+ bindin...
2017-12-28T15:16:33
golang/go
63bc23b5452f6605df3e40ce7ecdd8b0348792af
eae8fd519b2cbfa253f2f9068587e0ce765efced
[dev.regabi] cmd/compile: first start towards using Ident This CL adds Ident, which will eventually replace *Name and *PkgName within the AST for representing uses of declared names. (Originally, I intended to call it "IdentExpr", but neither go/ast nor cmd/compile/internal/syntax include the "Expr" suffix for their r...
[ { "path": "src/cmd/compile/internal/gc/dcl.go", "patch": "@@ -215,7 +215,7 @@ func oldname(s *types.Sym) ir.Node {\n \t\t// Maybe a top-level declaration will come along later to\n \t\t// define s. resolve will check s.Def again once all input\n \t\t// source has been processed.\n-\t\treturn ir.NewDeclNameA...
2020-12-08T05:56:58
rust-lang/rust
0b0ccd403bf39e0c5d82a1d2b34f5af5ce3b5f4f
b754ef727ca87050a8d758fc44f524cfb4310eff
Fix miri
[ { "path": "src/tools/miri/src/lib.rs", "patch": "@@ -71,6 +71,7 @@ extern crate rustc_index;\n extern crate rustc_middle;\n extern crate rustc_session;\n extern crate rustc_span;\n+extern crate rustc_symbol_mangling;\n extern crate rustc_target;\n // Linking `rustc_driver` pulls in the required object code...
2024-06-30T20:27:00