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
f770366f6d910e4bf92a6f885908afe134d65b23
e3f2e9ac4e1ab99e1ebd0bf2a6bd3898633873b1
runtime: don't treat SIGURG as a bad signal It's possible for the scheduler to try to preempt a goroutine running on a thread created by C code just as the goroutine returns from Go code to C code. If that happens, the goroutine will have a nil g, which would normally cause us to enter the badsignal code. The badsigna...
[ { "path": "src/runtime/signal_unix.go", "patch": "@@ -412,6 +412,16 @@ func sigtrampgo(sig uint32, info *siginfo, ctx unsafe.Pointer) {\n \t\t\tsigprofNonGoPC(c.sigpc())\n \t\t\treturn\n \t\t}\n+\t\tif sig == sigPreempt && preemptMSupported && debug.asyncpreemptoff == 0 {\n+\t\t\t// This is probably a signa...
2020-02-03T23:53:53
ggml-org/llama.cpp
95e18884fc7ea4031f70f1a518d5d1df616e5717
df8491922f0ea4e032338186350dff2fb6b2b4e3
CUDA: fix misaligned synchronization in FA (#13469)
[ { "path": "ggml/src/ggml-cuda/fattn-mma-f16.cuh", "patch": "@@ -895,6 +895,11 @@ static __device__ __forceinline__ void flash_attn_ext_f16_process_tile(\n float2 * dstk_fixup_meta = dstk_fixup + (gridDim.x + blockIdx.x)*ncols;\n dstk_fixup_meta[(threadIdx.y/np)*cols_per_warp + thread...
2025-05-12T08:51:21
huggingface/transformers
eb644980eb7bd7ed5bc46d47df94a4c87ae31bcf
ebd21e904f5c52216bd081c92a28e1c963b851cb
Fix pad to multiple of (#25732) * nits * update the test * nits * update * fix bark * fix bark tests and allow padding to multiple of without new tokens
[ { "path": "src/transformers/modeling_utils.py", "patch": "@@ -1436,7 +1436,8 @@ def resize_token_embeddings(\n vectors at the end. Reducing the size will remove vectors from the end. If not provided or `None`, just\n returns a pointer to the input tokens `torch.nn.Embedding` ...
2023-09-15T15:53:39
vuejs/vue
b60cd834660f2141e0e574b82dd17c9b474b8a73
cbc1fbc3c72984dd331bb6cad5a3102f64a241ff
keep-alive re-activated component should get updated props (fix #4237)
[ { "path": "src/core/vdom/create-component.js", "patch": "@@ -154,6 +154,9 @@ function init (vnode: VNodeWithData, hydrating: boolean) {\n if (!vnode.child || vnode.child._isDestroyed) {\n const child = vnode.child = createComponentInstanceForVnode(vnode, activeInstance)\n child.$mount(hydrating ? ...
2016-11-19T01:38:33
nodejs/node
8e47600aabf7a9f953f269037014b1257a474095
c3067b56403f73ed4a285b7b21d4a30db65cf479
test: allow for absent nobody user in setuid test Some isolated build or test VMs don't have a "nobody" user, causing the parallel/test-process-setuid-setgid test to fail. Add logic to allow for that situation. PR-URL: https://github.com/nodejs/node/pull/13112 Fixes: https://github.com/nodejs/node/issues/13071 Review...
[ { "path": "test/parallel/test-process-setuid-setgid.js", "patch": "@@ -51,7 +51,7 @@ if (process.getuid() !== 0) {\n \n assert.throws(\n () => { process.setuid('nobody'); },\n- /^Error: EPERM, /\n+ /^Error: (EPERM, .+|setuid user id does not exist)$/\n );\n return;\n }", "additions": 1, ...
2017-05-19T03:03:44
golang/go
e3f2e9ac4e1ab99e1ebd0bf2a6bd3898633873b1
a744be42f9427a3b20e7e179e4b9831dbcf27f4c
internal/bytealg: fix riscv64 offset names Vet caught that these were incorrect. Updates #37022 Change-Id: I7b5cd8032ea95eb8e0729f6a4f386aec613c71d8 Reviewed-on: https://go-review.googlesource.com/c/go/+/217777 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Cherry Zhang <cherryyz@google.com> Try...
[ { "path": "src/internal/bytealg/indexbyte_riscv64.s", "patch": "@@ -6,8 +6,8 @@\n #include \"textflag.h\"\n \n TEXT ·IndexByte(SB),NOSPLIT,$0-40\n-\tMOV\ts+0(FP), A1\n-\tMOV\ts_len+8(FP), A2\n+\tMOV\tb_base+0(FP), A1\n+\tMOV\tb_len+8(FP), A2\n \tMOVBU\tc+24(FP), A3\t// byte to find\n \tMOV\tA1, A4\t\t// sto...
2020-02-04T22:53:46
vuejs/vue
cbc1fbc3c72984dd331bb6cad5a3102f64a241ff
acfe1ad4a266f4d43cdd003c3003da58d893d11d
fix eslint no-self-compare
[ { "path": "src/core/observer/index.js", "patch": "@@ -162,9 +162,11 @@ export function defineReactive (\n },\n set: function reactiveSetter (newVal) {\n const value = getter ? getter.call(obj) : val\n+ /* eslint-disable no-self-compare */\n if (newVal === value || (newVal !== newVal...
2016-11-18T17:34:01
nodejs/node
c3067b56403f73ed4a285b7b21d4a30db65cf479
171a43a98685d5cca6710d2d6bf4d20008de3426
benchmark: allow no duration in benchmark tests Imprecision in process.hrtime() in some situations can result in a zero duration being used as a denominator in benchmark tests. This would almost certainly never happen in real benchmarks. It is only likely in very short benchmarks like the type we run in our test suite...
[ { "path": "benchmark/common.js", "patch": "@@ -197,7 +197,10 @@ Benchmark.prototype.end = function(operations) {\n throw new Error('called end() with operation count <= 0');\n }\n if (elapsed[0] === 0 && elapsed[1] === 0) {\n- throw new Error('insufficient time precision for short benchmark');\n+...
2017-05-18T23:31:56
golang/go
6a027cdb7517c47b884f57d748898dfc1b6cb675
fb0b6ed0cf21100b63a515a2e29b81f63fc5a2ce
doc/go1.14: fix broken links Fix broken links with missing /pkg and fix os/signal import path. Change-Id: I4bf74c9f6e9b0e5fa96ca4d35c4ce404e07583b2 Reviewed-on: https://go-review.googlesource.com/c/go/+/217697 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
[ { "path": "doc/go1.14.html", "patch": "@@ -579,7 +579,7 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n </dd>\n </dl><!-- log -->\n \n-<dl id=\"go/doc\"><dt><a href=\"/go/doc/\">go/doc</a></dt>\n+<dl id=\"go/doc\"><dt><a href=\"/pkg/go/doc/\">go/doc</a></dt>\n <dd>\n <p><!-- ...
2020-02-04T12:23:03
huggingface/transformers
ebd21e904f5c52216bd081c92a28e1c963b851cb
c7b4d0b4e2e55dfcd966200b2366740b952f9ce1
Update notebook.py to support multi eval datasets (#25796) * Update notebook.py fix multi eval datasets * Update notebook.py * Update notebook.py using `black` to reformat * Update notebook.py support Validation Loss * Update notebook.py reformat * Update notebook.py
[ { "path": "src/transformers/utils/notebook.py", "patch": "@@ -235,13 +235,25 @@ def write_line(self, values):\n self.inner_table = [list(values.keys()), list(values.values())]\n else:\n columns = self.inner_table[0]\n- if len(self.inner_table) == 1:\n- ...
2023-09-15T15:52:18
vuejs/vue
e4fd6327906a8470c7d9999b0729c24e46cc6b67
c1bf20acb675aff7ba3e13381b1d45c395a3da7f
avoid resetting innerHTML/textContent if value is the same (fix #4247)
[ { "path": "src/platforms/web/runtime/modules/dom-props.js", "patch": "@@ -21,13 +21,14 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) {\n }\n }\n for (key in props) {\n+ cur = props[key]\n // ignore children if the node has textContent or innerHTML,\n // as the...
2016-11-18T16:56:56
nodejs/node
9e4660b5187d4be6a1484e705dc735c0e76ffafa
6fb27af70a5e7f4eb074352aed578d349c81ceac
zlib: fix node crashing on invalid options This commit fixes the Node process crashing when constructors of classes of the zlib module are given invalid options. * Throw an Error when the zlib library rejects the value of windowBits, instead of crashing with an assertion. * Treat windowBits and memLevel options co...
[ { "path": "doc/api/zlib.md", "patch": "@@ -437,6 +437,10 @@ added: v0.5.8\n \n Returns a new [DeflateRaw][] object with an [options][].\n \n+**Note:** The zlib library rejects requests for 256-byte windows (i.e.,\n+`{ windowBits: 8 }` in `options`). An `Error` will be thrown when creating\n+a [DeflateRaw][]...
2017-05-18T09:49:08
golang/go
c8a91ed24932be7248eefed58ade4bb978b62f55
753d56d3642eb83848aa39e65982a9fc77e722d7
doc/go1.14: mention changes to debug/dwarf Updates #36878 Change-Id: Icfbf9074c731d64198b4760e1902bbd09fcc1349 Reviewed-on: https://go-review.googlesource.com/c/go/+/217067 Reviewed-by: Austin Clements <austin@google.com>
[ { "path": "doc/go1.14.html", "patch": "@@ -512,6 +512,37 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n \n </dl><!-- crypto/tls -->\n \n+<dl id=\"debug/dwarf\"><dt><a href=\"/pkg/debug/dwarf/\">debug/dwarf</a></dt>\n+ <dd>\n+ <p><!-- CL 175138 -->\n+ The <code>debug/dwarf</...
2020-01-31T00:38:15
vuejs/vue
c1bf20acb675aff7ba3e13381b1d45c395a3da7f
9a742cb423690acb29990bd38f5c17f7b21f12f8
do not trigger change on NaN->NaN set (fix #4236)
[ { "path": "src/core/observer/index.js", "patch": "@@ -162,7 +162,7 @@ export function defineReactive (\n },\n set: function reactiveSetter (newVal) {\n const value = getter ? getter.call(obj) : val\n- if (newVal === value) {\n+ if (newVal === value || (newVal !== newVal && value !== ...
2016-11-18T16:47:02
huggingface/transformers
2518e368105a78f6cdc50ded6971712f2c1e7ac4
d70fab8b2062526e9c2c60196421a8bc96c7df03
Tweaks to Chat Templates docs (#26168) * Put tokenizer methods in the right alphabetical order in the docs * Quick tweak to ConversationalPipeline * Typo fixes in the developer doc * make fixup
[ { "path": "docs/source/en/chat_templating.md", "patch": "@@ -190,7 +190,7 @@ once you set the correct chat template, your model will automatically become com\n \n Before the introduction of chat templates, chat handling was hardcoded at the model class level. For backwards \n compatibility, we have retained...
2023-09-15T11:50:57
ggml-org/llama.cpp
9a390c4829cd3058d26a2e2c09d16e3fd12bf1b1
09232370fc6426aa5dd9be01a8271b9c28f5af3a
tools : fix uninitialized llama_batch in server (#13436) * add constructor to initialize server_context::batch, preventing destructor's call to llama_batch_free from causing an invalid free() * Update tools/server/server.cpp Co-authored-by: Xuan-Son Nguyen <thichthat@gmail.com> * use C++11 initializer syntax * swi...
[ { "path": "tools/server/server.cpp", "patch": "@@ -1862,7 +1862,7 @@ struct server_context {\n \n llama_context_params cparams_dft;\n \n- llama_batch batch;\n+ llama_batch batch {};\n \n bool clean_kv_cache = true;\n bool add_bos_token = true;", "additions": 1, "deletions": 1, ...
2025-05-11T15:08:26
vuejs/vue
9a742cb423690acb29990bd38f5c17f7b21f12f8
f4df893828779a74f6379a6068c223a25400828a
only treat binding as domProps on specific elements (fix #4233)
[ { "path": "flow/compiler.js", "patch": "@@ -7,7 +7,7 @@ declare type CompilerOptions = {\n directives?: { [key: string]: Function }; // platform specific directives\n isUnaryTag?: (tag: string) => ?boolean; // check if a tag is unary for the platform\n isReservedTag?: (tag: string) => ?boolean; // che...
2016-11-18T16:36:05
nodejs/node
6fb27af70a5e7f4eb074352aed578d349c81ceac
ef718247406b3e890f58efb09e690a7c03fbaab9
async_hooks: add constructor check to async-hooks This fixes the async_hooks.AsyncHook constructor such that it throws an error when provided with falsy values other than undefined. PR-URL: https://github.com/nodejs/node/pull/13096 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gma...
[ { "path": "lib/async_hooks.js", "patch": "@@ -77,13 +77,13 @@ function fatalError(e) {\n \n class AsyncHook {\n constructor({ init, before, after, destroy }) {\n- if (init && typeof init !== 'function')\n+ if (init !== undefined && typeof init !== 'function')\n throw new TypeError('init must b...
2017-05-18T08:09:50
huggingface/transformers
869733ab621495b938d0754176f7f1e360ae7ea9
5469c1876229d7f38e32f8d0c1fdcf4619576251
IDEFICS: allow interpolation of vision's pos embeddings (#26029) * add pos embed interpolation for vision encoder * style * update config with interpolate_pos_encoding arg * fix imports formatting * take off copied from on vision embeddings * add test for image embeddings interpolation * add credit f...
[ { "path": "src/transformers/models/idefics/modeling_idefics.py", "patch": "@@ -236,6 +236,7 @@ def prepare_inputs_for_generation(input_ids, past_key_values=None, **kwargs):\n image_encoder_embeddings = kwargs.get(\"image_encoder_embeddings\", None)\n perceiver_embeddings = kwargs.get(\"perceiver_emb...
2023-09-14T23:27:40
golang/go
753d56d3642eb83848aa39e65982a9fc77e722d7
866920a07351ad5663cc712c31a0f7b5631bc85c
syscall: release a js.Func object in fsCall A js.Func object in fsCall was created for each call but never released. This CL fixes this. Change-Id: I2e2b504cbf4fb130b8cfe890a66d3a66aadf56a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/217417 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> TryBot-Result: Go...
[ { "path": "src/syscall/fs_js.go", "patch": "@@ -495,7 +495,7 @@ func fsCall(name string, args ...interface{}) (js.Value, error) {\n \t}\n \n \tc := make(chan callResult, 1)\n-\tjsFS.Call(name, append(args, js.FuncOf(func(this js.Value, args []js.Value) interface{} {\n+\tf := js.FuncOf(func(this js.Value, ar...
2020-02-02T05:55:29
ggml-org/llama.cpp
7474e00b34629e9cd8b06bc87ad935584ea30f8e
7f323a589f8684c0eb722e7309074cb5eac0c8b5
CUDA: fix crash with partial offloading of MoE (#13439)
[ { "path": "ggml/src/ggml-cuda/ggml-cuda.cu", "patch": "@@ -1909,13 +1909,19 @@ static void ggml_cuda_mul_mat_batched_cublas(ggml_backend_cuda_context & ctx, co\n static void ggml_cuda_mul_mat(ggml_backend_cuda_context & ctx, const ggml_tensor * src0, const ggml_tensor * src1, ggml_tensor * dst) {\n cons...
2025-05-11T14:09:33
vuejs/vue
f4df893828779a74f6379a6068c223a25400828a
9a659593c48d6e88058515bf407ba61a6d359f79
fix weex tests for optimizer adjustments
[ { "path": "test/weex/compiler/class.spec.js", "patch": "@@ -6,8 +6,8 @@ describe('compile class', () => {\n const { render, staticRenderFns, errors } = compile(`<div class=\"a b c\"></div>`)\n expect(render).not.toBeUndefined()\n expect(staticRenderFns).not.toBeUndefined()\n- expect(staticRen...
2016-11-17T23:15:10
huggingface/transformers
5469c1876229d7f38e32f8d0c1fdcf4619576251
17fdd35481e6b462989c1c600e6cc0987dc88621
[BLIP-2] Improve conversion script (#24854) * Improve conversion script * Add int8 code example * Update tip * Fix code * Fix code snippet * Add nucleus sampling * More improvements * Address comments * Address comments
[ { "path": "src/transformers/models/blip_2/configuration_blip_2.py", "patch": "@@ -90,7 +90,7 @@ def __init__(\n image_size=224,\n patch_size=14,\n hidden_act=\"gelu\",\n- layer_norm_eps=0.00001,\n+ layer_norm_eps=1e-6,\n attention_dropout=0.0,\n initiali...
2023-09-14T18:42:20
ggml-org/llama.cpp
a634d75d1bb4034b8c945042ceea268b5b895730
62d4250e52917dc4d634f054b1e2183ed7dee944
mtmd : move helpers to dedicated file (#13442) * mtmd : move helpers to dedicated file * fix windows build * rm redundant include
[ { "path": "tools/mtmd/CMakeLists.txt", "patch": "@@ -28,6 +28,7 @@ endif()\n \n add_library(mtmd OBJECT\n mtmd.cpp\n+ mtmd-helper.cpp\n mtmd.h\n clip.cpp\n clip.h", "additions": 1, "deletions": 0, "language": "Plain Text" }, { "p...
2025-05-11T09:34:23
nodejs/node
ef718247406b3e890f58efb09e690a7c03fbaab9
2b541471dbec18dd15bee5d0cc46d39ca708f5dc
doc: edit Error.captureStackTrace html comment Edit to the comment in the stack trace capture, highlighting the use of the constructorOpt argument in errors.md Fixes: https://github.com/nodejs/node/issues/12289 PR-URL: https://github.com/nodejs/node/pull/12962 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-B...
[ { "path": "doc/api/errors.md", "patch": "@@ -238,7 +238,7 @@ function MyError() {\n \n // Without passing MyError to captureStackTrace, the MyError\n // frame would show up in the .stack property. By passing\n-// the constructor, we omit that frame and all frames above it.\n+// the constructor, we omit that...
2017-05-11T04:51:05
golang/go
866920a07351ad5663cc712c31a0f7b5631bc85c
cdb7fd6b06937aa38a7a4921f567697144448073
std,cmd: sync go.mod with new release branches cd src go get golang.org/x/sys@release-branch.go1.14-std go mod tidy && go mod vendor cd cmd go get golang.org/x/sys@release-branch.go1.14-cmd go get golang.org/x/tools@release-branch.go1.14 go mod tidy && go mod vendor Fixes #36851 Change-Id...
[ { "path": "src/cmd/go.mod", "patch": "@@ -8,6 +8,6 @@ require (\n \tgolang.org/x/arch v0.0.0-20190815191158-8a70ba74b3a1\n \tgolang.org/x/crypto v0.0.0-20200128174031-69ecbb4d6d5d\n \tgolang.org/x/mod v0.2.0\n-\tgolang.org/x/sys v0.0.0-20190502175342-a43fa875dd82 // indirect\n-\tgolang.org/x/tools v0.0.0-20...
2020-01-31T23:41:03
rust-lang/rust
8aba7307df713697cbddd76f3709f54591f707ae
1d4a419a6ba5f293d054eae64eca6a1a19b76756
rustc_hir: fix typo in comment
[ { "path": "compiler/rustc_hir/src/hir.rs", "patch": "@@ -1958,7 +1958,7 @@ impl fmt::Display for ConstContext {\n }\n \n // NOTE: `IntoDiagArg` impl for `ConstContext` lives in `rustc_errors`\n-// due to a cyclical dependency between hir that crate.\n+// due to a cyclical dependency between hir and that cra...
2025-01-28T22:27:48
vuejs/vue
8f7c49c9ba76a288b9eaf8a0bd172fc68218bc6c
f80231773e486f3ef487472f615b785bf7a0b32b
Remove old static style when applying style update (fix #4227) (#4235) * both static style and stylebinding should be removed * update test case * update test case
[ { "path": "src/platforms/web/runtime/modules/style.js", "patch": "@@ -42,7 +42,12 @@ function updateStyle (oldVnode: VNodeWithData, vnode: VNodeWithData) {\n \n let cur, name\n const el: any = vnode.elm\n- const oldStyle: any = oldVnode.data.style || {}\n+ const oldStaticStyle: any = oldVnode.data.sta...
2016-11-17T16:25:54
ggml-org/llama.cpp
62d4250e52917dc4d634f054b1e2183ed7dee944
0208355f42bdab88a08507ead4a6302790a08323
docs : Fix typo in InternVL3 model name (#13440)
[ { "path": "docs/multimodal.md", "patch": "@@ -69,9 +69,9 @@ NOTE: some models may require large context window, for example: `-c 8192`\n \n # InternVL 2.5 and 3\n (tool_name) -hf ggml-org/InternVL2_5-1B-GGUF\n-(tool_name) -hf ggml-org/InternVL2_5-2B-GGUF\n+(tool_name) -hf ggml-org/InternVL2_5-4B-GGUF\n (too...
2025-05-10T20:26:46
nodejs/node
2b541471dbec18dd15bee5d0cc46d39ca708f5dc
595e5e3b23a2c41a4abf01b0084b64f524a58a6a
dns: fix `resolve` failed starts without network Fix the bug that you start process without network at first, but it connected lately, `dns.resolve` will stay failed with ECONNREFUSED because c-ares servers fallback to 127.0.0.1 at the very beginning. If c-ares servers "127.0.0.1" is detected and its not set by user ...
[ { "path": "src/cares_wrap.cc", "patch": "@@ -386,6 +386,69 @@ struct CaresAsyncData {\n uv_async_t async_handle;\n };\n \n+void SetupCaresChannel(Environment* env) {\n+ struct ares_options options;\n+ memset(&options, 0, sizeof(options));\n+ options.flags = ARES_FLAG_NOCHECKRESP;\n+ options.sock_state...
2017-05-17T09:23:38
golang/go
53558cb721ec7a2a6f87ff87a4095e956c587e3d
8390c478600b852392cb116741b3cb239c94d123
doc/go1.14: fix math/big.(*Int).GCD notes GCD is a method, not a function, so the link was broken. Change-Id: Icbb09d39959e7c71a48987b15bb82febe12c3a19 Reviewed-on: https://go-review.googlesource.com/c/go/+/217303 Reviewed-by: Ian Lance Taylor <iant@golang.org>
[ { "path": "doc/go1.14.html", "patch": "@@ -598,7 +598,7 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n <dl id=\"math/big\"><dt><a href=\"/pkg/math/big\">math/big</a></dt>\n <dd>\n <p><!-- CL 164972 -->\n- The <a href=\"/pkg/math/big/#GCD\"><code>GCD</code></a> function\n+...
2020-01-31T22:54:21
rust-lang/rust
6763561161dff2419ffe9795ec8bc40671c16e9e
77a455303bf08da8eef6236b2b4422a77cd25c42
btree/node.rs: remove incorrect comment from pop_internal_level docs
[ { "path": "library/alloc/src/collections/btree/node.rs", "patch": "@@ -600,9 +600,6 @@ impl<K, V> NodeRef<marker::Owned, K, V, marker::LeafOrInternal> {\n /// no cleanup is done on any of the keys, values and other children.\n /// This decreases the height by 1 and is the opposite of `push_internal_...
2025-01-28T20:42:51
vuejs/vue
d8309248db4da8e162dc857d92a7ef45bac39e94
366202f31668619e6e8d3cb71dc68ec1e9d4f444
fix eslint
[ { "path": "src/platforms/weex/runtime/index.js", "patch": "@@ -1,8 +1,6 @@\n /* @flow */\n \n import Vue from 'core/index'\n-import config from 'core/config'\n-import { noop } from 'shared/util'\n import { patch } from 'weex/runtime/patch'\n import platformDirectives from 'weex/runtime/directives/index'\n i...
2016-11-16T17:06:27
ggml-org/llama.cpp
0208355f42bdab88a08507ead4a6302790a08323
d2a4ef05c60506ee48e7375eb36f2257de7ab0d2
CUDA: fix race conditions FlashAttention kernels (#13438)
[ { "path": "ggml/src/ggml-cuda/fattn-mma-f16.cuh", "patch": "@@ -874,6 +874,8 @@ static __device__ __forceinline__ void flash_attn_ext_f16_process_tile(\n }\n }\n \n+ __syncthreads();\n+\n // Write back combined meta data:\n #pragma unroll\n for (int imeta = 0; imet...
2025-05-10T20:22:48
nodejs/node
c60a7fa7383a983a0348e8876fdd84b04c353436
06a617aa21c434b5e607370e7ee0051d506a4793
test: move net reconnect error test to sequential The usage of common.PORT could cause undesired port collisions when run in parallel. The following test was moved to sequential. test-net-reconnect-error.js PR-URL: https://github.com/nodejs/node/pull/13033 Refs: https://github.com/nodejs/node/issues/12376 Reviewed-By...
[ { "path": "test/sequential/test-net-reconnect-error.js", "patch": "@@ -27,22 +27,19 @@ const N = 20;\n let client_error_count = 0;\n let disconnect_count = 0;\n \n-// Hopefully nothing is running on common.PORT\n const c = net.createConnection(common.PORT);\n \n c.on('connect', common.mustNotCall('client sh...
2017-05-15T03:38:54
golang/go
8e2b5d3e71b695887f3d02ead57744e9674acf8e
ee04d45b8f380c2e3b3b26bc4771cd97fbd9d260
[dev.link] cmd/link: make symbol's global index unique Currently, when mapping symbol's local index to global index, for duplicated and overwriting/overwritten symbols, each appearance of the symbol gets a global index, with one being the "primary", and others "redirect" to it through the overwrite map. Basically, the...
[ { "path": "src/cmd/link/internal/loader/loader.go", "patch": "@@ -62,6 +62,7 @@ type oReader struct {\n \tflags uint32 // read from object file\n \tpkgprefix string\n \trcache []Sym // cache mapping local PkgNone symbol to resolved Sym\n+\tsyms []Sym // Sym's global index, indexed by local index...
2020-01-28T23:18:58
vuejs/vue
366202f31668619e6e8d3cb71dc68ec1e9d4f444
eb92723df54373ebc2aad1790566bdcf058699ae
fix entity-decoder build config
[ { "path": "build/config.js", "patch": "@@ -25,6 +25,7 @@ const builds = {\n entry: path.resolve(__dirname, '../src/entries/web-runtime.js'),\n dest: path.resolve(__dirname, '../dist/vue.runtime.js'),\n format: 'umd',\n+ env: 'development',\n banner\n },\n // runtime-only production bu...
2016-11-16T16:25:40
rust-lang/rust
ececfaba78f150818b846b897f0fe8151258dd3e
4e1b885595447386c925be1732cccfed9daf8807
Don't build out of line atomics support code for uefi https://github.com/llvm/llvm-project/pull/116706 added Windows support to cpu_model. Compiling for UEFI also goes through that code path, because we treat it as a windows target. However, including windows.h is not actually going to work (and the used API would not...
[ { "path": "library/compiler-builtins/build.rs", "patch": "@@ -644,9 +644,10 @@ mod c {\n \n // Include out-of-line atomics for aarch64, which are all generated by supplying different\n // sets of flags to the same source file.\n- // Note: Out-of-line aarch64 atomics are not supported ...
2025-01-28T14:40:23
ggml-org/llama.cpp
15e6125a397f6086c1dfdf7584acdb7c730313dc
3b24d26c22b9d92b5aa39930988700c84e524cf4
mtmd : add hard limit on image resolution for qwen2vl / qwen2.5vl (#13434) * mtmd : add hard limit on image resolution for qwen2vl / qwen2.5vl * fix typo
[ { "path": "tools/mtmd/clip-impl.h", "patch": "@@ -92,6 +92,9 @@\n #define TN_GLM_ADAPTER_GATE \"adapter.linear.gate.%s\"\n #define TN_GLM_ADAPTER_D_4H_2_H \"adapter.linear.dense_4h_to_h.%s\"\n \n+// align x to upper multiple of n\n+#define CLIP_ALIGN(x, n) ((((x) + (n) - 1) / (n)) * (n))\n+\n enum proje...
2025-05-10T17:57:54
huggingface/transformers
17fdd35481e6b462989c1c600e6cc0987dc88621
95fe0f5d806ff1b981f1870f290a4d9aaa53a5d4
Add BROS (#23190) * add Bros boilerplate * copy and pasted modeling_bros.py from official Bros repo * update copyright of bros files * copy tokenization_bros.py from official repo and update import path * copy tokenization_bros_fast.py from official repo and update import path * copy configuration_bros....
[ { "path": "README.md", "patch": "@@ -310,6 +310,7 @@ Current number of checkpoints: ![](https://img.shields.io/endpoint?url=https://h\n 1. **[BLOOM](https://huggingface.co/docs/transformers/model_doc/bloom)** (from BigScience workshop) released by the [BigScience Workshop](https://bigscience.huggingface.co/...
2023-09-14T17:02:37
nodejs/node
06a617aa21c434b5e607370e7ee0051d506a4793
841bb4c61f07a5c2bf818a3b985ea0f88257210e
url: update IDNA error conditions This commit contains three separate changes: - Always return a string from ToUnicode no matter if an error occurred. - Disable CheckHyphens boolean flag. This flag will soon be enabled in the URL Standard, but is implemented manually by selectively ignoring certain errors. - Enab...
[ { "path": "src/node_i18n.cc", "patch": "@@ -436,11 +436,9 @@ bool InitializeICUDirectory(const std::string& path) {\n \n int32_t ToUnicode(MaybeStackBuffer<char>* buf,\n const char* input,\n- size_t length,\n- bool lenient) {\n+ size_t len...
2017-05-11T07:19:15
vuejs/vue
eb92723df54373ebc2aad1790566bdcf058699ae
02620c928f19716dc16cf2a16c5d2f5ab2378b1d
avoid merging text nodes when the node is a cloned slot node (fix #4209)
[ { "path": "src/core/vdom/helpers/normalize-children.js", "patch": "@@ -28,7 +28,9 @@ export function normalizeChildren (\n }\n } else if (c instanceof VNode) {\n if (c.text && last && last.text) {\n- last.text += c.text\n+ if (!last.isCloned) {\n+ last.text...
2016-11-16T04:07:50
rust-lang/rust
130b0d294a3404b5827869de5712009f91724700
2f348cb7ce4063fa4eb40038e6ada3c5214717bd
Tweak `&mut self` suggestion span ``` error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` reference --> $DIR/issue-38147-1.rs:17:9 | LL | self.s.push('x'); | ^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable | help: consider changing...
[ { "path": "compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs", "patch": "@@ -1140,10 +1140,9 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {\n \n let amp_mut_sugg = match *local_decl.local_info() {\n LocalInfo::User(mir::BindingForm::ImplicitSelf(_)) => {\n- ...
2025-01-28T19:35:31
golang/go
1b7fefc91f7779c886a307c809144b57d84ed35e
d91c3bc20393cab601d372547471468c869320af
doc/go1.14: add crypto/tls release notes A few minor changes that didn't feel worth mentioning: * CL 205059: support leaving Certificates/GetCertificate nil if GetConfigForClient is set * CL 205059: send the unrecognized_name alert when there are no available certificates * CL 205068: add correct names for CHACHA...
[ { "path": "doc/go1.14.html", "patch": "@@ -453,19 +453,61 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n <dl id=\"crypto/tls\"><dt><a href=\"/pkg/crypto/tls/\">crypto/tls</a></dt>\n <dd>\n <p><!-- CL 191976 -->\n- TODO: <a href=\"https://golang.org/cl/191976\">https://gol...
2020-01-28T22:37:58
ggml-org/llama.cpp
053367d149f778cdabc356ee3024494e0dd53223
d8919424f1dee7dc1638349c616f2ef5d2ee16fb
mtmd : support InternVL 2.5 and 3 (#13422) * convert : internvl support * InternVL3-1B working * fix regression * rm mobilevlm from test * fix conversion * add test for internvl * add to list of pre-quant * restore boi/eoi check * add clarify comment for norm eps
[ { "path": "convert_hf_to_gguf.py", "patch": "@@ -426,7 +426,11 @@ def load_hparams(dir_model: Path):\n logger.warning(f\"Failed to load model config from {dir_model}: {e}\")\n logger.warning(\"Trying to load config.json instead\")\n with open(dir_model / \"config.json\", ...
2025-05-10T14:26:42
huggingface/transformers
95fe0f5d806ff1b981f1870f290a4d9aaa53a5d4
44a0490d3c46e62134b3fc1f0609cbdf83e571da
[Whisper] Fix word-level timestamps for audio < 30 seconds (#25607) * Fix word-level timestamps for audio < 30 seconds * Fix code quality * fix unit tests * Fix unit tests * Fix unit test * temp: print out result * temp: set max diff to None * fix unit tests * fix typo * Fix typo Co-autho...
[ { "path": "src/transformers/models/whisper/modeling_whisper.py", "patch": "@@ -1754,6 +1754,9 @@ def generate(\n \"See https://gist.github.com/hollance/42e32852f24243b748ae6bc1f985b13a on how to add this property to the generation config.\"\n )\n \n+ if kwargs....
2023-09-14T16:42:35
vuejs/vue
02620c928f19716dc16cf2a16c5d2f5ab2378b1d
83eb63b612432ba0604a9a05f71bafb6ab07c908
fix weex-compiler externals
[ { "path": "build/config.js", "patch": "@@ -76,7 +76,7 @@ const builds = {\n entry: path.resolve(__dirname, '../src/entries/weex-compiler.js'),\n dest: path.resolve(__dirname, '../packages/weex-template-compiler/build.js'),\n format: 'cjs',\n- external: ['entities', 'de-indent']\n+ external...
2016-11-16T02:43:47
nodejs/node
841bb4c61f07a5c2bf818a3b985ea0f88257210e
525497596a51ef2e6653b930ca525046d27c9fd5
url: fix C0 control and whitespace handling PR-URL: https://github.com/nodejs/node/pull/12846 Fixes: https://github.com/nodejs/node/issues/12825 Refs: https://github.com/w3c/web-platform-tests/pull/5792 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
[ { "path": "src/node_url.cc", "patch": "@@ -133,6 +133,9 @@ enum url_error_cb_args {\n // https://infra.spec.whatwg.org/#ascii-tab-or-newline\n CHAR_TEST(8, IsASCIITabOrNewline, (ch == '\\t' || ch == '\\n' || ch == '\\r'))\n \n+// https://infra.spec.whatwg.org/#c0-control-or-space\n+CHAR_TEST(8, IsC0ControlO...
2017-05-05T06:43:47
ggml-org/llama.cpp
d8919424f1dee7dc1638349c616f2ef5d2ee16fb
7fef11766cdeb9fa7bbbe3db13580616b7d3d599
CUDA: fix FlashAttention on Turing (#13415)
[ { "path": "ggml/src/ggml-cuda/fattn-mma-f16.cuh", "patch": "@@ -546,7 +546,7 @@ static __device__ __forceinline__ void flash_attn_ext_f16_iter(\n const int i0_stop = i0_start + 2*c::nbatch_V2 < DV ? i0_start + 2*c::nbatch_V2 : DV;\n const int i0_diff = i0_stop - i0_start;\n \n- if (ns...
2025-05-10T07:16:52
huggingface/transformers
8881f38a4f48d26c7b2dfe2cb892bfdd63a8ce0b
0dd06c3f78596bcccc5f0e54450aa0d8b6ca2b2f
Fix beam search when using model parallel (#24969) * Fix GPTNeoX beam search when using parallelize * Fix beam search idx device when using model parallel * remove onnx related stuff Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com> * fix: move test_beam_search_on_multi_gpu to Generat...
[ { "path": "src/transformers/models/bart/modeling_bart.py", "patch": "@@ -1467,7 +1467,8 @@ def _reorder_cache(past_key_values, beam_idx):\n for layer_past in past_key_values:\n # cached cross_attention states don't have to be reordered -> they are always the same\n reordered_...
2023-09-14T15:00:52
nodejs/node
658741b9d9255c5e18fafa76f3a70876153c8d59
6bfdeedce5529810dbe7c61bd712fc50174a19f1
test: refactor test-https-set-timeout-server * Add common.mustCall() for error handlers. * Alphabetize modules PR-URL: https://github.com/nodejs/node/pull/13032 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ja...
[ { "path": "test/sequential/test-https-set-timeout-server.js", "patch": "@@ -21,16 +21,16 @@\n \n 'use strict';\n const common = require('../common');\n-const assert = require('assert');\n \n if (!common.hasCrypto) {\n common.skip('missing crypto');\n return;\n }\n-const https = require('https');\n \n-co...
2017-05-15T03:39:36
ggml-org/llama.cpp
33eff4024084d1f0c8441b79f7208a52fad79858
17512a94d636c4b6c1332370acb3e5af3ca70918
server : vision support via libmtmd (#12898) * server : (experimental) vision support via libmtmd * mtmd : add more api around mtmd_image_tokens * mtmd : add more api around mtmd_image_tokens * mtmd : ability to calc image hash * shared_ptr for mtmd_image_tokens * move hash to user-define ID (fixed) * abstract o...
[ { "path": "README.md", "patch": "@@ -16,8 +16,9 @@ Inference of Meta's [LLaMA](https://arxiv.org/abs/2302.13971) model (and others)\n \n ## Hot topics\n \n+- 🔥 Multimodal support arrived in `llama-server`: [#12898](https://github.com/ggml-org/llama.cpp/pull/12898) | [documentation](./docs/multimodal.md)\n ...
2025-05-09T17:29:37
huggingface/transformers
0dd06c3f78596bcccc5f0e54450aa0d8b6ca2b2f
866df66fe4a3b3b948b926d849ef291675b8a24c
[MusicGen] Add streamer to generate (#25320) * [MusicGen] Add streamer to generate * add to for cond generation * add test * finish * torch only * fix type hint * yield audio chunks * fix typehint * remove test
[ { "path": "src/transformers/models/musicgen/modeling_musicgen.py", "patch": "@@ -18,7 +18,7 @@\n import math\n import random\n from dataclasses import dataclass\n-from typing import Any, Dict, Optional, Tuple, Union\n+from typing import TYPE_CHECKING, Any, Dict, Optional, Tuple, Union\n \n import torch\n im...
2023-09-14T14:59:09
nodejs/node
6bfdeedce5529810dbe7c61bd712fc50174a19f1
4a7b7e8097fcd43bd1823050607270530d05541b
async_wrap: add `asyncReset` to `TLSWrap` When using an Agent for HTTPS, `TLSSocket`s are reused and need to have the ability to `asyncReset` from JS. PR-URL: https://github.com/nodejs/node/pull/13092 Fixes: https://github.com/nodejs/node/issues/13045 Reviewed-By: Andreas Madsen <amwebdk@gmail.com> Reviewed-By: Colin...
[ { "path": "src/tls_wrap.cc", "patch": "@@ -940,6 +940,7 @@ void TLSWrap::Initialize(Local<Object> target,\n t->SetClassName(FIXED_ONE_BYTE_STRING(env->isolate(), \"TLSWrap\"));\n \n env->SetProtoMethod(t, \"getAsyncId\", AsyncWrap::GetAsyncId);\n+ env->SetProtoMethod(t, \"asyncReset\", AsyncWrap::Async...
2017-05-18T04:43:09
ggml-org/llama.cpp
17512a94d636c4b6c1332370acb3e5af3ca70918
611aa914ef4231fab5d1ad04773c42e119ae2d2e
sycl : implementation of reordered Q4_0 MMVQ for Intel GPUs (#12858) * sycl : Implemented reorder Q4_0 mmvq Signed-off-by: Alberto Cabrera <alberto.cabrera@codeplay.com> * sycl : Fixed mmvq being called when reorder is disabled * sycl : Improved comments in the quants header Signed-off-by: Alberto Cabrera <albert...
[ { "path": "ggml/src/ggml-sycl/backend.hpp", "patch": "@@ -14,23 +14,24 @@\n #define GGML_SYCL_BACKEND_HPP\n \n #include \"binbcast.hpp\"\n-#include \"concat.hpp\"\n #include \"common.hpp\"\n+#include \"concat.hpp\"\n #include \"conv.hpp\"\n #include \"convert.hpp\"\n+#include \"cpy.hpp\"\n #include \"dequan...
2025-05-09T15:34:08
vuejs/vue
438b51793f9347407ffc71ea2b432ed7af59d258
8c0fac699a48ec62b25a94b4083ea1d75c52c236
fix style merging assertion in IE
[ { "path": "test/unit/features/directives/style.spec.js", "patch": "@@ -195,7 +195,12 @@ describe('Directive v-bind:style', () => {\n }).$mount()\n const style = vm.$el.style\n const child = vm.$children[0]\n- expect(style.cssText.replace(/\\s/g, '')).toBe('margin-right:20px;margin-left:16px;t...
2016-11-15T20:53:26
huggingface/transformers
866df66fe4a3b3b948b926d849ef291675b8a24c
7c63e6fc8c34dcf8b0121eaee776f41ccf3b1137
Overhaul Conversation class and prompt templating (#25323) * First commit while I figure this out * make fixup * Remove unused method * Store prompt attrib * Fix prompt argument for tests * Make same changes in fast tokenizer * Remove global prompts from fast tokenizer too * stash commit * stas...
[ { "path": "docs/source/en/_toctree.yml", "patch": "@@ -98,6 +98,8 @@\n title: Use model-specific APIs\n - local: custom_models\n title: Share a custom model\n+ - local: chat_templating\n+ title: Templates for chat models\n - local: sagemaker\n title: Run training on Amazon SageMaker\n ...
2023-09-14T14:10:34
golang/go
b1f9f479820be1c251cbdcadfdf9c94d7f6c2e72
af98efc545476cea052881e0a6e623f7219d5e97
[dev.link] cmd/link: fix payload pointer liveness Currently, the symbol updater uses a pointer pointing to the loader's payloads array. If the payloads slice grows (and moves), the pointer may become stale and no longer point to the symbol's actual payload. Specifically, consider sb, sym := l.MakeSymbolUpdater(...) ...
[ { "path": "src/cmd/link/internal/loader/loader.go", "patch": "@@ -158,8 +158,9 @@ type Loader struct {\n \textStaticSyms map[nameVer]Sym // externally defined static symbols, keyed by name\n \toverwrite map[Sym]Sym // overwrite[i]=j if symbol j overwrites symbol i\n \n-\tpayloads []extSymPayload...
2020-01-30T03:10:51
nodejs/node
a63b245b0a0d15e9a494b3a4602031bfc6a51ff8
3702ae732eadd9d7c64681edcdd76cd7a30f6381
n-api: Retain last code when getting error info Unlike most N-API functions, `napi_get_last_error_info()` should not clear the last error code when successful, because a pointer to (not a copy of) the error info structure is returned via an out parameter. PR-URL: https://github.com/nodejs/node/pull/13087 Reviewed-By:...
[ { "path": "src/node_api.cc", "patch": "@@ -755,7 +755,7 @@ napi_status napi_get_last_error_info(napi_env env,\n error_messages[env->last_error.error_code];\n \n *result = &(env->last_error);\n- return napi_clear_last_error(env);\n+ return napi_ok;\n }\n \n napi_status napi_create_function(napi_env...
2017-05-17T23:56:37
vuejs/vue
8c0fac699a48ec62b25a94b4083ea1d75c52c236
ef4fc1c75221bde2f4df915bba7d3585cad37c5c
fix hydration node match assertion for elements with camelCase names (fix #4195)
[ { "path": "src/core/vdom/patch.js", "patch": "@@ -446,7 +446,7 @@ export function createPatchFunction (backend) {\n if (vnode.tag) {\n return (\n vnode.tag.indexOf('vue-component') === 0 ||\n- vnode.tag === nodeOps.tagName(node).toLowerCase()\n+ vnode.tag.toLowerCase() === no...
2016-11-15T20:21:59
ggml-org/llama.cpp
27ebfcacbaadc6104e2b18acd8f13515cbf63dce
5c86c9ed3ef1cc7307fdce05f0f0e2e45253cf90
llama : do not crash if there is no CPU backend (#13395) * llama : do not crash if there is no CPU backend * add checks to examples
[ { "path": "src/llama-adapter.cpp", "patch": "@@ -253,6 +253,9 @@ static void llama_adapter_lora_init_impl(llama_model & model, const char * path_\n std::vector<ggml_backend_buffer_type_t> buft_extra;\n {\n auto * cpu_dev = ggml_backend_dev_by_type(GGML_BACKEND_DEVICE_TYPE_CPU);\n+ if ...
2025-05-09T11:02:07
huggingface/transformers
7c63e6fc8c34dcf8b0121eaee776f41ccf3b1137
ac957f69cc51497ed36a9583b6b8759044f377fa
[`PEFT`] Fix PEFT + gradient checkpointing (#25846) * fix PEFT + gradient checkpointing * add disable RG * polish tests * fix comment * Revert "fix comment" This reverts commit b85386f50d2b104bac522e823c47b7e232116a47. * final explanations and tests
[ { "path": "src/transformers/modeling_utils.py", "patch": "@@ -1750,6 +1750,13 @@ def gradient_checkpointing_enable(self):\n raise ValueError(f\"{self.__class__.__name__} does not support gradient checkpointing.\")\n self.apply(partial(self._set_gradient_checkpointing, value=True))\n \n+ ...
2023-09-14T11:01:58
vuejs/vue
ef4fc1c75221bde2f4df915bba7d3585cad37c5c
79cc7bc97a6aa527057756e2e441cad399b299b1
fix eslint
[ { "path": "src/core/util/options.js", "patch": "@@ -6,7 +6,6 @@ import { warn } from './debug'\n import { set } from '../observer/index'\n import {\n extend,\n- isObject,\n isPlainObject,\n hasOwn,\n camelize,", "additions": 0, "deletions": 1, "language": "JavaScript" } ]
2016-11-15T20:21:34
ggml-org/llama.cpp
5c86c9ed3ef1cc7307fdce05f0f0e2e45253cf90
efb8b47eda78ea8ae570d4fece3953aae499289e
CUDA: fix crash on large batch size for MoE models (#13384)
[ { "path": "ggml/src/ggml-cuda/getrows.cu", "patch": "@@ -10,10 +10,11 @@ static __global__ void k_get_rows(\n /*const size_t nb00,*/ const size_t nb01, const size_t nb02, const size_t nb03,\n const size_t s10, const size_t s11, const size_t s12/*, const size_t s13*/) {\n \n- const int i00...
2025-05-09T10:14:04
nodejs/node
46e773c5db9ebc106823594b82f4ff14a0a004f3
6f216710eb49436f0c372fbaf6da3e65ba9578c2
src: check if --icu-data-dir= points to valid dir Call uc_init() after u_setDataDirectory() to find out if the data directory is actually valid. This commit removes parallel/test-intl-no-icu-data, added in commit 46345b9 ("src: make --icu-data-dir= switch testable"). It no longer works now that an invalid --icu-data...
[ { "path": "src/node.cc", "patch": "@@ -4342,8 +4342,11 @@ void Init(int* argc,\n // Initialize ICU.\n // If icu_data_dir is empty here, it will load the 'minimal' data.\n if (!i18n::InitializeICUDirectory(icu_data_dir)) {\n- FatalError(nullptr, \"Could not initialize ICU \"\n- \...
2017-05-16T13:15:14
huggingface/transformers
ac957f69cc51497ed36a9583b6b8759044f377fa
6d49b9dcbff5af73fcbcfc79ee0e83d0c56983e0
[Whisper Tokenizer] Encode timestamps (#26054) * [Whisper Tokenizer] Fix tests after adding timestamps * fix s2t tokenizer tests * fix vocab test * backwards comp * fix tests * comment * style * fix last test * fix fast * make faster * move logic to decode * remove skip test * fix d...
[ { "path": "src/transformers/models/whisper/tokenization_whisper.py", "patch": "@@ -15,6 +15,7 @@\n \"\"\"Tokenization classes for Whisper.\"\"\"\n import json\n import os\n+from functools import lru_cache\n from typing import TYPE_CHECKING, List, Optional, Tuple, Union\n \n import numpy as np\n@@ -546,6 +54...
2023-09-14T11:00:43
vuejs/vue
79cc7bc97a6aa527057756e2e441cad399b299b1
ab277adfbe2ac7776d5d29d82a267a6a06bc8361
improve mergeData for edge cases (fix #4191)
[ { "path": "src/core/util/options.js", "patch": "@@ -40,13 +40,16 @@ if (process.env.NODE_ENV !== 'production') {\n * Helper that recursively merges two data objects together.\n */\n function mergeData (to: Object, from: ?Object): Object {\n+ if (!from) return to\n let key, toVal, fromVal\n- for (key i...
2016-11-15T20:15:04
ggml-org/llama.cpp
2189fd3b6327a1d17893694125da8edcf74a6468
3f96aeff394e9b72bbd2fa665c3e023a70ed8648
mtmd : fix batch_view for m-rope (#13397) * mtmd : fix batch_view for m-rope * nits : fix comment
[ { "path": "tools/mtmd/mtmd.cpp", "patch": "@@ -554,14 +554,19 @@ struct decode_embd_batch {\n llama_batch get_view(int offset, int n_tokens) {\n llama_pos * pos_ptr;\n pos_view.clear();\n- pos_view.resize(n_tokens * n_pos_per_embd);\n+ pos_view.reserve(n_tokens * n_pos_per_...
2025-05-09T09:18:02
nodejs/node
6f216710eb49436f0c372fbaf6da3e65ba9578c2
51664fc265bf4ce9757f18b7b78f18b34678b3e3
test: ignore spurious 'EMFILE' According to the explanation in #3635#issuecomment-157714683 And as a continuation to #5422 we also ignore EMFILE "No more file descriptors are available,so no more files can be opened" PR-URL: https://github.com/nodejs/node/pull/12698 Fixes: https://github.com/nodejs/node/issues/10286 ...
[ { "path": "test/parallel/test-child-process-fork-regr-gh-2847.js", "patch": "@@ -1,3 +1,5 @@\n+// Before https://github.com/nodejs/node/pull/2847 a child process trying\n+// (asynchronously) to use the closed channel to it's creator caused a segfault.\n 'use strict';\n \n const common = require('../common')...
2017-04-27T14:02:46
vuejs/vue
ab277adfbe2ac7776d5d29d82a267a6a06bc8361
3c78553330ffea8543479e9aac99ac8d1280c431
work around IE textarea placeholder innerHTML/outerHTML bug (fix #4098)
[ { "path": "src/compiler/parser/index.js", "patch": "@@ -211,6 +211,13 @@ export function parse (\n }\n return\n }\n+ // IE textarea placeholder bug\n+ /* istanbul ignore if */\n+ if (options.isIE &&\n+ currentParent.tag === 'textarea' &&\n+ currentParen...
2016-11-15T18:41:57
huggingface/transformers
6d49b9dcbff5af73fcbcfc79ee0e83d0c56983e0
d7bd325b5a44054341acc536339adab9ef8e8bb2
Fix eval accumulation when `accelerate` > 0.20.3 (#26060) As mentioned in: https://github.com/huggingface/transformers/issues/25641 Eval accumulation will never happen with `accelerate > 0.20.3`, so this change ensures that `sync_gradients` is ignored if accelerate is > 0.20.3
[ { "path": "src/transformers/trainer.py", "patch": "@@ -3254,7 +3254,7 @@ def evaluation_loop(\n if (\n args.eval_accumulation_steps is not None\n and (step + 1) % args.eval_accumulation_steps == 0\n- and self.accelerator.sync_gradients\n+ ...
2023-09-14T09:57:47
ggml-org/llama.cpp
3f96aeff394e9b72bbd2fa665c3e023a70ed8648
b486ba05bf973aae3652b3fd593e0b257d3a41d4
llama : one-off chat template fix for Mistral-Small-2503 (#13398) * llama : one-off chat template fix for Mistral-Small-2503 * update readme * add mistral-v7-tekken
[ { "path": "src/llama-chat.cpp", "patch": "@@ -35,6 +35,7 @@ static const std::map<std::string, llm_chat_template> LLM_CHAT_TEMPLATES = {\n { \"mistral-v3\", LLM_CHAT_TEMPLATE_MISTRAL_V3 },\n { \"mistral-v3-tekken\", LLM_CHAT_TEMPLATE_MISTRAL_V3_TEKKEN },\n { \"mistral-v7\", ...
2025-05-09T09:17:51
golang/go
96002cd25c343edfb6c06d2bf1f31ae1e345b81f
6c0545ab833b2b834f351e59242a3ea64051fa3a
doc/go1.14: fix id attribute of Testing heading Some tweaks based on comments from CL 216917. Change-Id: I538ea0dfa947b53d5c4a7135c1aec912b0357083 Reviewed-on: https://go-review.googlesource.com/c/go/+/217121 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
[ { "path": "doc/go1.14.html", "patch": "@@ -304,10 +304,9 @@ <h4 id=\"module-downloading\">Module downloading</h4>\n graphic characters and spaces.\n </p>\n \n-<h4 id=\"go.mod\">Testing</h4>\n-<!-- golang.org/issue/24929 -->\n+<h4 id=\"go-test\">Testing</h4>\n \n-<p>\n+<p><!-- golang.org/issue/24929 -->\n ...
2020-01-30T00:39:26
vuejs/vue
3c78553330ffea8543479e9aac99ac8d1280c431
3e8ac270a8d62630cae4191e016602c36b2b6beb
warn empty or missing template element (fix #4171)
[ { "path": "src/core/instance/lifecycle.js", "patch": "@@ -44,7 +44,7 @@ export function lifecycleMixin (Vue: Class<Component>) {\n vm.$options.render = emptyVNode\n if (process.env.NODE_ENV !== 'production') {\n /* istanbul ignore if */\n- if (vm.$options.template) {\n+ if ...
2016-11-15T17:29:39
nodejs/node
847688018cb166eea7bfff9a9044a7295c17d5d8
eff9252181abe6ebd19252af652f29581711e665
doc: don't suggest setEncoding for binary streams Removed an incorrect reference to the use of setEncoding(null) as the proper way to handling binary streams or to disable encoding, and explained that the default encoding is "no encoding", and that this is the correct approach for dealing with binary data via Buffers....
[ { "path": "doc/api/stream.md", "patch": "@@ -920,24 +920,21 @@ added: v0.9.4\n * `encoding` {string} The encoding to use.\n * Returns: `this`\n \n-The `readable.setEncoding()` method sets the default character encoding for\n+The `readable.setEncoding()` method sets the character encoding for\n data read fro...
2017-05-19T11:59:25
huggingface/transformers
05de038f3d249ce96740885f85fd8d0aa00c29bc
9709ab116ca06bcbd60ef296354c726c5e45f402
Flex xpu bug fix (#26135) flex gpu bug fix
[ { "path": "src/transformers/training_args.py", "patch": "@@ -1425,12 +1425,13 @@ def __post_init__(self):\n and is_torch_available()\n and (self.device.type != \"cuda\")\n and (self.device.type != \"npu\")\n+ and (self.device.type != \"xpu\")\n and ...
2023-09-13T20:03:52
ggml-org/llama.cpp
b486ba05bf973aae3652b3fd593e0b257d3a41d4
02115dcd9a6d0c03b527d5bee8c1493ab819ddbd
rpc : add rpc_msg_set_tensor_hash_req (#13353) * rpc : add rpc_msg_set_tensor_hash_req Use a dedicated struct for the request of RPC_CMD_SET_TENSOR_HASH which makes the code cleaner. * fix
[ { "path": "ggml/src/ggml-rpc/ggml-rpc.cpp", "patch": "@@ -151,6 +151,12 @@ struct rpc_msg_buffer_clear_req {\n uint8_t value;\n };\n \n+struct rpc_msg_set_tensor_hash_req {\n+ rpc_tensor tensor;\n+ uint64_t offset;\n+ uint64_t hash;\n+};\n+\n struct rpc_msg_set_tensor_hash_rsp {\n uint8_t r...
2025-05-09T07:31:07
vuejs/vue
3e8ac270a8d62630cae4191e016602c36b2b6beb
77497931e00753e109d8a72549c00b0bccf45461
fix .trim modifier when v-model is used on custom component (fix #4204)
[ { "path": "src/platforms/web/compiler/directives/model.js", "patch": "@@ -123,7 +123,7 @@ function genDefaultModel (\n \n let valueExpression = isNative\n ? `$event.target.value${trim ? '.trim()' : ''}`\n- : `$event`\n+ : trim ? `(typeof $event === 'string' ? $event.trim() : $event)` : `$event`\...
2016-11-15T16:05:08
golang/go
6c0545ab833b2b834f351e59242a3ea64051fa3a
f2a4ab32b1bcfae5c689c034953471a5541e9397
doc/go1.14: mention new method strconv.NumError.Unwrap Updates #30322 Updates #36878 Change-Id: I8b33eb6a8fb7c0ecf365940a1c3ae88dc807ebcd Reviewed-on: https://go-review.googlesource.com/c/go/+/217132 Reviewed-by: Bryan C. Mills <bcmills@google.com>
[ { "path": "doc/go1.14.html", "patch": "@@ -694,6 +694,23 @@ <h2 id=\"library\">Core library</h2>\n \n </dl><!-- signal -->\n \n+<dl id=\"strconv\"><dt><a href=\"/pkg/strconv/\">strconv</a></dt>\n+ <dd>\n+ <p>\n+ The <a href=\"/pkg/strconv/#NumError\"><code>NumError</code></a>\n+ type now has\n...
2020-01-31T03:22:15
huggingface/transformers
0fced067880e2f7785dd2b7dce600f8cbdb691e7
a796f7eea6c86b54671a6f522cebbe41f630bb62
Fix `beam_scores` shape when token scores shape changes after `logits_processor` (#25980)
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -3038,7 +3038,9 @@ def beam_search(\n ) # (batch_size * num_beams, vocab_size)\n \n next_token_scores_processed = logits_processor(input_ids, next_token_scores)\n- next_token_scores = next_token_scores_process...
2023-09-13T18:12:47
ggml-org/llama.cpp
15e03282bb432631193464100c2237a3b6bcfe4c
f05a6d71a0f3dbf0730b56a1abbad41c0f42e63d
ci : limit write permission to only the release step + fixes (#13392) * ci : limit write permission to only the release step * fix win cuda file name * fix license file copy on multi-config generators
[ { "path": ".github/workflows/build.yml", "patch": "@@ -15,7 +15,6 @@ concurrency:\n cancel-in-progress: true\n \n env:\n- BRANCH_NAME: ${{ github.head_ref || github.ref_name }}\n GGML_NLOOP: 3\n GGML_N_THREADS: 1\n LLAMA_LOG_COLORS: 1", "additions": 0, "deletions": 1, "language": "YAML"...
2025-05-08T21:45:22
vuejs/vue
77497931e00753e109d8a72549c00b0bccf45461
cccc277dd933bf06f2186e894130f5b78c4d448e
fix v-once inside v-for and v-once with v-if (#4200)
[ { "path": "src/compiler/codegen/index.js", "patch": "@@ -85,7 +85,9 @@ function genStatic (el: ASTElement): string {\n // v-once\n function genOnce (el: ASTElement): string {\n el.onceProcessed = true\n- if (el.staticInFor) {\n+ if (el.if && !el.ifProcessed) {\n+ return genIf(el)\n+ } else if (el.st...
2016-11-14T21:20:21
nodejs/node
eff9252181abe6ebd19252af652f29581711e665
ab34f9dec200490c935c179f0f3244c3fa38cc88
doc: update doc of publicEncrypt method As per https://github.com/nodejs/node/issues/12946 the crypto doc for publicEncrypt doesn't tell you whether the encryption happens in place or not. Fixes: https://github.com/nodejs/node/issues/12946 PR-URL: https://github.com/nodejs/node/pull/12947 Reviewed-By: Brian White <ms...
[ { "path": "doc/api/crypto.md", "patch": "@@ -1637,7 +1637,7 @@ treated as the key with no passphrase and will use `RSA_PKCS1_PADDING`.\n <!-- YAML\n added: v1.1.0\n -->\n-- `private_key` {Object | string}\n+- `public_key` {Object | string}\n - `key` {string} A PEM encoded private key.\n - `passphrase` {...
2017-05-10T07:11:54
huggingface/transformers
95a904104ee65cda49495e205ddad263cb3d9ee5
86ffef87b642a1e2f5bd579931bf80241bcac6bf
Fix `test_finetune_bert2bert` (#25984) Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
[ { "path": "src/transformers/trainer_seq2seq.py", "patch": "@@ -281,15 +281,16 @@ def prediction_step(\n gen_kwargs[\"synced_gpus\"] if gen_kwargs.get(\"synced_gpus\") is not None else default_synced_gpus\n )\n \n+ generation_inputs = inputs.copy()\n # If the `decoder_input...
2023-09-13T15:53:43
golang/go
6e592c2b6d3d32f0eb1211a3795e852627c7a086
b7689f5aa38b41c8fbd75d64aa463b898c81fca5
go/types: unexport Checker.LookupFieldOrMethod Implementation changes in go/types for #6977 required that internal LookupFieldOrMethod calls had access to the current *Checker. In order to make quick progress, I added a *Checker receiver to the function LookupFieldOrMethod (thus making it a method), and added a new fu...
[ { "path": "api/go1.14.txt", "patch": "@@ -150,7 +150,6 @@ pkg go/doc, type Example struct, Suffix string\n pkg go/doc, type Func struct, Examples []*Example\n pkg go/doc, type Package struct, Examples []*Example\n pkg go/doc, type Type struct, Examples []*Example\n-pkg go/types, method (*Checker) LookupFiel...
2020-01-31T04:13:02
ggml-org/llama.cpp
ee01d71e585f4a17ae83ec55d77acfdcf0bfa798
8c83449cb780c201839653812681c3a4cf17feed
server : (webui) fix a very small misalignment (#13387) * server : (webui) fix a very small misalignment * restore font-bold
[ { "path": "tools/server/webui/src/components/Sidebar.tsx", "patch": "@@ -7,6 +7,7 @@ import {\n ArrowDownTrayIcon,\n EllipsisVerticalIcon,\n PencilIcon,\n+ PencilSquareIcon,\n TrashIcon,\n XMarkIcon,\n } from '@heroicons/react/24/outline';\n@@ -76,15 +77,19 @@ export default function Sidebar() {\...
2025-05-08T16:51:45
vuejs/vue
cccc277dd933bf06f2186e894130f5b78c4d448e
4e38b54274a664db1e101a27a6d3db9860fa91c1
fix eslint
[ { "path": "test/weex/compiler/compile.spec.js", "patch": "@@ -25,6 +25,7 @@ describe('compile class', () => {\n it('should compile data bindings with children', () => {\n const { render, staticRenderFns, errors } = compile(`<foo :a=\"b\"><text>Hello</text></foo>`)\n expect(render).toEqual(`with(th...
2016-11-13T19:07:34
huggingface/transformers
7ccac73f749ce535851b9188f3867d5ed87c318c
32ec7345f2d752c294ddf5aff495b657c9cd9d3b
[`RWKV`] Final fix RWMV 4bit (#26134) * Final fix RWMV 4bit * fixup * add a test * add more clarifications
[ { "path": "src/transformers/models/rwkv/modeling_rwkv.py", "patch": "@@ -31,6 +31,7 @@\n add_code_sample_docstrings,\n add_start_docstrings,\n add_start_docstrings_to_model_forward,\n+ is_bitsandbytes_available,\n is_ninja_available,\n is_torch_cuda_available,\n logging,\n@@ -735,...
2023-09-13T14:30:20
nodejs/node
a593c74f811c12823053e6b7093466015992e9e6
29d89c98559df117bdd2d7d943a12344c72ac9fc
test: refactor test-vm-new-script-new-context Changed the second parameter of assert.throws to match the errors. PR-URL: https://github.com/nodejs/node/pull/13035 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
[ { "path": "test/parallel/test-vm-new-script-new-context.js", "patch": "@@ -38,14 +38,14 @@ console.error('thrown error');\n script = new Script('throw new Error(\\'test\\');');\n assert.throws(function() {\n script.runInNewContext();\n-}, /test/);\n+}, /^Error: test$/);\n \n \n console.error('undefined re...
2017-05-15T05:05:00
golang/go
b7689f5aa38b41c8fbd75d64aa463b898c81fca5
0eb49f67d467c93383a4d4917c9bd4d9e9f51671
doc/go1.14: mention new log.Lmsgprefix flag Updates #32062 Updates #36878 Change-Id: I06c7c9a9d253177155a6d46d58231ce26e659757 Reviewed-on: https://go-review.googlesource.com/c/go/+/217126 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
[ { "path": "doc/go1.14.html", "patch": "@@ -482,6 +482,18 @@ <h2 id=\"library\">Core library</h2>\n \n </dl><!-- encoding/json -->\n \n+<dl id=\"log\"><dt><a href=\"/pkg/log/\">log</a></dt>\n+ <dd>\n+ <p><!-- CL 186182 -->\n+ The\n+ new <a href=\"https://tip.golang.org/pkg/log/#pkg-constants\">...
2020-01-31T01:32:23
vuejs/vue
4e38b54274a664db1e101a27a6d3db9860fa91c1
46b3bcd707addd0e503cc44bf7914b0281780d5c
fix weex tests for component slot static check change
[ { "path": "test/weex/compiler/compile.spec.js", "patch": "@@ -22,10 +22,9 @@ describe('compile class', () => {\n expect(errors).toEqual([])\n })\n \n- it('should compile data bindings with static children', () => {\n+ it('should compile data bindings with children', () => {\n const { render, sta...
2016-11-13T19:04:02
ggml-org/llama.cpp
8c83449cb780c201839653812681c3a4cf17feed
1a844be132dbe865358e1de81136920c1d35ac73
server : (webui) revamp the input area, plus many small UI improvements (#13365) * rework the input area * process selected file * change all icons to heroicons * fix thought process collapse * move conversation more menu to sidebar * sun icon --> moon icon * rm default system message * stricter upload file che...
[ { "path": "common/chat.cpp", "patch": "@@ -125,7 +125,9 @@ std::vector<common_chat_msg> common_chat_msgs_parse_oaicompat(const json & messa\n msgs.push_back(msg);\n }\n } catch (const std::exception & e) {\n- throw std::runtime_error(\"Failed to parse messages: \" + std::strin...
2025-05-08T13:37:29
huggingface/transformers
c8b26096d4b092b96e65ee88367624bf7b837c36
7db1ad63d9a9a8f705e13d68f90269df78a16df5
[`core`] fix 4bit `num_parameters` (#26132) * fix 4bit `num_parameters` * stronger check
[ { "path": "src/transformers/modeling_utils.py", "patch": "@@ -989,12 +989,33 @@ def num_parameters(self, only_trainable: bool = False, exclude_embeddings: bool\n embedding_param_names = [\n f\"{name}.weight\" for name, module_type in self.named_modules() if isinstance(module_type...
2023-09-13T12:12:35
rust-lang/rust
644e527c17a1b53e60a346cce7b6b32d97b9d10d
efaeedef59e4f213806898cdedb2220016d193c0
Fix tests/ui/privacy/sysroot-private
[ { "path": "tests/ui/privacy/sysroot-private.default.stderr", "patch": "@@ -1,11 +1,11 @@\n error[E0405]: cannot find trait `Equivalent` in this scope\n- --> $DIR/sysroot-private.rs:26:18\n+ --> $DIR/sysroot-private.rs:27:18\n |\n LL | trait Trait2<K>: Equivalent<K> {}\n | ^^^^^^^^^^...
2025-01-28T16:07:12
nodejs/node
28ddac2ec285b950a17bc42d7c79c329c8573c9e
5a948f6f64a538dedce969b21cde454600197ded
buffer: fix indexOf for empty searches Make searches for empty subsequences do exactly what `String.prototype.indexOf()` does. Fixes: https://github.com/nodejs/node/issues/13023 PR-URL: https://github.com/nodejs/node/pull/13024 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> ...
[ { "path": "doc/api/buffer.md", "patch": "@@ -1340,6 +1340,10 @@ console.log(b.indexOf('b', null));\n console.log(b.indexOf('b', []));\n ```\n \n+If `value` is an empty string or empty `Buffer` and `byteOffset` is less\n+than `buf.length`, `byteOffset` will be returned. If `value` is empty and\n+`byteOffset`...
2017-05-14T17:57:52
vuejs/vue
46b3bcd707addd0e503cc44bf7914b0281780d5c
9931b715cdd163605e858adf8c42778cd3e34e71
fix object dot notation bug (fix #4185) (#4188) * fix object dot notation bug * add test case
[ { "path": "src/compiler/helpers.js", "patch": "@@ -116,7 +116,7 @@ export function parseModel (val: string): Object {\n len = str.length\n index = expressionPos = expressionEndPos = 0\n \n- if (val.indexOf('[') < 0) {\n+ if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {\n return {\n ...
2016-11-13T18:15:08
golang/go
68b55ab51319ec71fe3f00266f9c467f34c824b1
9d5ea44bec0e923bf2ff9c7092e1dd929865200d
doc/go1.14: fix minor typo (update release notes) Follow-up on https://golang.org/cl/216200/2/doc/go1.14.html#423 . Updates #36878. Change-Id: I693a9eb05c6f1f42721a92fda46a4f3449defa24 Reviewed-on: https://go-review.googlesource.com/c/go/+/217100 Reviewed-by: Ian Lance Taylor <iant@golang.org>
[ { "path": "doc/go1.14.html", "patch": "@@ -499,7 +499,7 @@ <h2 id=\"library\">Core library</h2>\n <dl id=\"math/big\"><dt><a href=\"/pkg/math/big\">math/big</a></dt>\n <dd>\n <p><!-- CL 164972 -->\n- The <a href=\"/pkg/math/big#GCD\"><code>GCD</code></a> function\n+ The <a href=\"/pkg/math/b...
2020-01-30T19:34:24
ggml-org/llama.cpp
0ccc1213549e39ef4c1affb1bf5f49651ef4ce48
6562e5a4d6c58326dcd79002ea396d4141f1b18e
mtmd : fix the calculation of n_tokens for smolvlm (#13381) Co-authored-by: Taichi Nishimura <Taichi.A.Nishimura@sony.com>
[ { "path": "tools/mtmd/clip.cpp", "patch": "@@ -3010,7 +3010,7 @@ int clip_n_output_tokens(const struct clip_ctx * ctx, struct clip_image_f32 * im\n int n_per_side_2d_pool = n_per_side / params.proj_scale_factor;\n n_patches = n_per_side_2d_pool * n_per_side_2d_pool;\n } else if (ctx->pro...
2025-05-08T13:03:53
huggingface/transformers
7db1ad63d9a9a8f705e13d68f90269df78a16df5
b4773273949b9360d1d38e51fc572340e0eda216
Fix AutoTokenizer docstring typo (#26117) Fix docstring typo
[ { "path": "src/transformers/models/auto/tokenization_auto.py", "patch": "@@ -783,7 +783,7 @@ def register(config_class, slow_tokenizer_class=None, fast_tokenizer_class=None,\n The configuration corresponding to the model to register.\n slow_tokenizer_class ([`PretrainedTokenizer`...
2023-09-13T10:12:27
rust-lang/rust
d417284b6a4b86f682d474fd8cd11e92651c312b
0a2221dcd6cf0f1e388f05a10e7c21514361adc5
Fix scip symbols for implicit modules
[ { "path": "src/tools/rust-analyzer/crates/ide/src/static_index.rs", "patch": "@@ -169,10 +169,10 @@ impl StaticIndex<'_> {\n .unwrap();\n // hovers\n let sema = hir::Semantics::new(self.db);\n- let tokens_or_nodes = sema.parse_guess_edition(file_id).syntax().clone();\n+ ...
2025-01-28T05:14:26