repo
stringclasses
15 values
fix_commit
stringlengths
40
40
buggy_commit
stringlengths
40
40
message
stringlengths
3
64.3k
files
listlengths
1
300
timestamp
timestamp[s]date
2013-03-13 20:45:00
2026-04-11 07:48:46
vercel/next.js
67e10a7052d735bb7171432d824346f02e4009e1
7280c3ced186bb9a7ae3d7012613ef93f20b0fa9
Ensure flight manifest is correct with app and pages dir (#38716) This fixes the failing test case on canary in the `app-dir` test suite which is caused by the flight-manifest including references to the `pages/index` chunk and it being attempted to be loaded for a page in `app` which causes a webpack error in develop...
[ { "path": "packages/next/build/webpack/plugins/flight-manifest-plugin.ts", "patch": "@@ -79,6 +79,12 @@ export class FlightManifestPlugin {\n id: string | number,\n mod: any\n ) {\n+ // if appDir is enabled we shouldn't process chunks from\n+ // the pages dir\n+ if...
2022-07-16T22:07:37
huggingface/transformers
fb66ef814779bcb04ab67a16ccb854c7c7b20100
e85d86398ac92261d3341a846990fe61103a3a9b
Update kwargs validation for `preprocess` with decorator (#32024) * BLIP preprocess * BIT preprocess * BRIDGETOWER preprocess * CHAMELEON preprocess * CHINESE_CLIP preprocess * CONVNEXT preprocess * DEIT preprocess * DONUT preprocess * DPT preprocess * FLAVA preprocess * EFFICIENTNET prep...
[ { "path": "src/transformers/models/bit/image_processing_bit.py", "patch": "@@ -36,10 +36,9 @@\n make_list_of_images,\n to_numpy_array,\n valid_images,\n- validate_kwargs,\n validate_preprocess_arguments,\n )\n-from ...utils import TensorType, is_vision_available, logging\n+from ...utils i...
2024-08-06T10:33:05
golang/go
7b144ed4f7a730f5c9375bca65010446ad9f4b73
c754f25241134eaa68c8f26ed5372cadeb49ef89
[dev.regabi] cmd/compile: rewrite concurrentFlagOk to be clearer The current implementation copies Debug, clears a bunch of flags that are meant to be considered OK, and then checks the result against the zero value. But more flags are cleared than remain: it's easier to write and to understand to just check the ones ...
[ { "path": "src/cmd/compile/internal/gc/main.go", "patch": "@@ -1418,24 +1418,18 @@ func IsAlias(sym *types.Sym) bool {\n \treturn sym.Def != nil && asNode(sym.Def).Sym != sym\n }\n \n-// By default, assume any debug flags are incompatible with concurrent\n-// compilation. A few are safe and potentially in c...
2020-11-15T16:40:25
nodejs/node
efffcc262c77a58ad3c75787497df46863d1b7a6
b2432a7f00fc2e9bd05e97c242871999b983d4f5
src: replace SetAccessor w/ SetAccessorProperty PR-URL: https://github.com/nodejs/node/pull/17665 Fixes: https://github.com/nodejs/node/issues/17636 Refs: https://github.com/nodejs/node/pull/16482 Refs: https://github.com/nodejs/node/pull/16860 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Timothy Gu <...
[ { "path": "src/node_crypto.cc", "patch": "@@ -80,7 +80,6 @@ static const int X509_NAME_FLAGS = ASN1_STRFLGS_ESC_CTRL\n namespace node {\n namespace crypto {\n \n-using v8::AccessorSignature;\n using v8::Array;\n using v8::Boolean;\n using v8::Context;\n@@ -103,8 +102,8 @@ using v8::Object;\n using v8::Objec...
2017-12-13T22:35:32
vercel/next.js
3540b18142860c31238a05ec1559ad001bdf1cc8
0814cf7faba9bb4f7f89d4bbee7f10a52251e435
fix consistency issue after updates
[ { "path": "crates/turbo-tasks-memory/src/memory_backend.rs", "patch": "@@ -109,12 +109,12 @@ impl MemoryBackend {\n id\n }\n \n- pub fn create_new_active_scope(&self) -> TaskScopeId {\n+ pub fn create_new_active_scope(&self, tasks: usize, unfinished: usize) -> TaskScopeId {\n let i...
2022-07-16T18:49:09
huggingface/transformers
e85d86398ac92261d3341a846990fe61103a3a9b
0aa83282934f470b7f538c84b836b3d92d04ea86
add the missing flash attention test marker (#32419) * add flash attention check * fix * fix * add the missing marker * bug fix * add one more * remove order * add one more
[ { "path": "tests/models/gemma/test_modeling_gemma.py", "patch": "@@ -628,9 +628,9 @@ def test_model_2b_sdpa(self):\n \n self.assertEqual(output_text, EXPECTED_TEXTS)\n \n- @pytest.mark.flash_attn_test\n @require_flash_attn\n @require_read_token\n+ @pytest.mark.flash_attn_test\n def...
2024-08-06T10:18:58
ollama/ollama
9d30f9f8b3836e8d617eadf63a71d8363ff56c7e
631cfd9e62362d6aea72da96fa67c52a1fd4e990
Always go build in CI generate steps With the recent cgo changes, bugs can sneak through if we don't make sure to `go build` all the permutations
[ { "path": ".github/workflows/test.yaml", "patch": "@@ -58,6 +58,7 @@ jobs:\n runs-on: ${{ matrix.os }}\n env:\n GOARCH: ${{ matrix.arch }}\n+ CGO_ENABLED: '1'\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-go@v5\n@@ -79,6 +80,7 @@ jobs:\n - run: go ge...
2024-07-05T19:25:53
golang/go
6965b01ea248cabb70c3749fd218b36089a21efb
7dc5d909fb465345bf1583eb978aaa56ca365f38
runtime: allow for usleep2HighRes to run without TLS setup This change adjusts usleep2HighRes so it does not crash when TLS is not configured. When g is not available, usleep2HighRes just calls usleep2 instead. Updates #8687 Change-Id: Idbb80f7b71d1da350a6a7df7c49154eb1ffe29a8 Reviewed-on: https://go-review.googleso...
[ { "path": "src/runtime/sys_windows_386.s", "patch": "@@ -415,12 +415,15 @@ TEXT runtime·usleep2(SB),NOSPLIT,$20\n \n // Runs on OS stack. duration (in 100ns units) is in BX.\n TEXT runtime·usleep2HighRes(SB),NOSPLIT,$36\n+\tget_tls(CX)\n+\tCMPL\tCX, $0\n+\tJE\tgisnotset\n+\n \t// Want negative 100ns units.\...
2020-11-21T03:56:26
nodejs/node
b2432a7f00fc2e9bd05e97c242871999b983d4f5
1fa59b4c7e575ca70fee802e4cbb599fdb59df04
doc: change eventName type annotations Change type annotations for eventName in events API doc from {any} to {string|symbol}. PR-URL: https://github.com/nodejs/node/pull/17666 Fixes: https://github.com/nodejs/node/issues/17657 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jon Moss <me@jonathanmoss.me>...
[ { "path": "doc/api/events.md", "patch": "@@ -175,7 +175,7 @@ added and `'removeListener'` when existing listeners are removed.\n added: v0.1.26\n -->\n \n-* `eventName` {any} The name of the event being listened for\n+* `eventName` {string|symbol} The name of the event being listened for\n * `listener` {Fun...
2017-12-13T22:40:12
vercel/next.js
4a774a4864f43a82cbc11452e160d3e94cbd88b3
0e6c63f26a75e93fe601676d200b846a76b2ae78
feat(examples): Use helper function in `with-sentry` example `_error.js` (#37866) This updates the `with-sentry` example to use the new helper function `captureUnderscoreErrorException` in its `_error.js` page. This new function both adds more data to sentry events and allows the code to be cleaned up quite a bit. Fi...
[ { "path": "examples/with-sentry/package.json", "patch": "@@ -6,8 +6,8 @@\n \"start\": \"next start\"\n },\n \"dependencies\": {\n- \"@sentry/nextjs\": \"^6.15.0\",\n- \"next\": \"^10.0.8 || 11.x\",\n+ \"@sentry/nextjs\": \"^7.6.0\",\n+ \"next\": \"latest\",\n \"react\": \"^17.0.2\",\...
2022-07-15T21:02:13
huggingface/transformers
0aa83282934f470b7f538c84b836b3d92d04ea86
37c5ca5eb9012a1009cf23b892828902f6a8799a
Llava: fix checkpoint_doc (#32458) fix: add new llava like model bug
[ { "path": "src/transformers/models/llava/modeling_llava.py", "patch": "@@ -39,6 +39,9 @@\n \n _CONFIG_FOR_DOC = \"LlavaConfig\"\n \n+# Base docstring\n+_CHECKPOINT_FOR_DOC = \"llava-hf/llava-1.5-7b-hf\"\n+\n \n @dataclass\n # Copied from transformers.models.idefics.modeling_idefics.IdeficsCausalLMOutputWith...
2024-08-06T09:11:59
ollama/ollama
ac7a842e550721fbc00e36e416e7cf6606993149
2c3fe1fd972b7810091120f844afc35bc98accbd
fix model reloading ensure runtime model changes (template, system prompt, messages, options) are captured on model updates without needing to reload the server
[ { "path": "llm/server.go", "patch": "@@ -679,7 +679,7 @@ type CompletionRequest struct {\n \tPrompt string\n \tFormat string\n \tImages []ImageData\n-\tOptions api.Options\n+\tOptions *api.Options\n }\n \n type CompletionResponse struct {", "additions": 1, "deletions": 1, "language": "Go" }...
2024-07-03T16:00:07
golang/go
7dc5d909fb465345bf1583eb978aaa56ca365f38
762eda346a9f4062feaa8a9fc0d17d72b11586f0
cmd/compile: set OpLoad argument type interface{} correctly CL 271906 allows loading single field of typed-interface{} OpIData, but it does not update the corresponding selector type. So the generated OpLoad has the named type instead, prevent it from being lowered by lower pass. Fixes #42784 Change-Id: Idf32e4f7117...
[ { "path": "src/cmd/compile/internal/ssa/expand_calls.go", "patch": "@@ -250,6 +250,9 @@ func expandCalls(f *Func) {\n \t\t\tif leafType != selector.Type && !selector.Type.IsEmptyInterface() { // empty interface for #42727\n \t\t\t\tf.Fatalf(\"Unexpected Load as selector, leaf=%s, selector=%s\\n\", leaf.Long...
2020-11-23T17:58:00
nodejs/node
31addac8bbcd3e0a8cefba8327cfcc7fd9bdeb68
a17f4264121bf8ed77d8fb7aee080a7339bf89ad
http: remove adapter frame from onParserExecute Remove a pointless adapter frame by fixing up the function's formal parameter count. Before: frame #0: 0x000033257ea446d5 onParserExecute(...) frame #1: 0x000033257ea3b93f <adaptor> frame #2: 0x000033257ea41959 <internal> frame #3: 0x000033257e9840ff <...
[ { "path": "lib/_http_server.js", "patch": "@@ -449,7 +449,7 @@ function socketOnData(server, socket, parser, state, d) {\n onParserExecuteCommon(server, socket, parser, state, ret, d);\n }\n \n-function onParserExecute(server, socket, parser, state, ret, d) {\n+function onParserExecute(server, socket, par...
2017-12-15T03:12:00
vercel/next.js
0e6c63f26a75e93fe601676d200b846a76b2ae78
48401ec3a1c32bbb77c879525d73f412f4df7d31
add user check in `auth-with-stytch`. (#38648) * add user check in `auth-with-stytch`. * Revert "delete auto.js in pollyfills" * lint-fix Co-authored-by: JJ Kasper <jj@jjsweb.site>
[ { "path": "examples/auth-with-stytch/pages/index.tsx", "patch": "@@ -48,13 +48,17 @@ const stytchProps: StytchProps = {\n },\n publicToken: process.env.NEXT_PUBLIC_STYTCH_PUBLIC_TOKEN || '',\n callbacks: {\n- onEvent: (data) => {\n- // TODO: check whether the user exists in your DB\n- if ...
2022-07-15T17:02:18
huggingface/transformers
37c5ca5eb9012a1009cf23b892828902f6a8799a
13dc6b0853c3cb54e79b18105c0528bc9e84881c
Cache: create docs (#32150) * draft * updates * works? * try adding python example in hidden section * another try * hwo do i render python * format as html code? * Update docs/source/en/kv_cache.md Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com> * Update docs/source/en/kv_c...
[ { "path": "docs/source/en/_toctree.yml", "patch": "@@ -99,6 +99,8 @@\n sections:\n - local: generation_strategies\n title: Customize the generation strategy\n+ - local: kv_cache\n+ title: Best Practices for Generation with Cache\n title: Generation\n - isExpanded: false\n sec...
2024-08-06T05:24:19
golang/go
a324aebb7ddc38c8d52165df4db75bf7ea63480e
8fbdacf64c982b9a7f8cb27754bb01cedffa53c7
[dev.typeparams] go/types, cmd/compile/internal/types2: fix incorrect string(int) conversion (regression) This is a 1:1 port of the go/types changes in https://golang.org/cl/272666 (master branch). Updates #42790. Change-Id: I5da372961df48129b25777ed705b84d7201393ec Reviewed-on: https://go-review.googlesource.com/c/...
[ { "path": "src/cmd/compile/internal/types2/conversions.go", "patch": "@@ -7,7 +7,10 @@\n \n package types2\n \n-import \"go/constant\"\n+import (\n+\t\"go/constant\"\n+\t\"unicode\"\n+)\n \n // Conversion type-checks the conversion T(x).\n // The result is in x.\n@@ -22,14 +25,11 @@ func (check *Checker) co...
2020-11-24T01:15:00
ollama/ollama
78fb33dd07ecbbd78de2293bc542187afa6b671b
8f8e736b131510c8707bed5886b343906cb74a24
fix typo in cgo directives in `llm.go` (#5501)
[ { "path": "llm/llm.go", "patch": "@@ -6,7 +6,7 @@ package llm\n // #cgo windows,amd64 LDFLAGS: ${SRCDIR}/build/windows/amd64_static/src/libllama.a ${SRCDIR}/build/windows/amd64_static/ggml/src/libggml.a -static -lstdc++\n // #cgo windows,arm64 LDFLAGS: ${SRCDIR}/build/windows/arm64_static/src/libllama.a ${...
2024-07-05T19:18:36
nodejs/node
19b44854773623b684a172cc972b6c3e2e7981b6
c8ac188e3f4741e146947218689dd1f9debb3f21
stream: remove `undefined` check `validChunk` allowed `undefined` as a chunk in object mode; however, this was redundant, since: - `validChunk()` is only used by `.write()` - If the `validChunk()` check passes for `undefined`, `.write()` calls `writeOrBuffer()` - If `writeOrBuffer()` does not receive a Buffer, it c...
[ { "path": "lib/_stream_writable.js", "patch": "@@ -249,9 +249,7 @@ function validChunk(stream, state, chunk, cb) {\n \n if (chunk === null) {\n er = new errors.TypeError('ERR_STREAM_NULL_VALUES');\n- } else if (typeof chunk !== 'string' &&\n- chunk !== undefined &&\n- !state.o...
2017-12-13T06:34:51
vercel/next.js
dbf94c57186f264c1871d7b1ce98273696b9630f
2da0ca21388a14ad9e56d6548d2ba95412dbe6fd
Fix check for optimistic routing and handle loading in server-patch (#38687)
[ { "path": "packages/next/client/components/reducer.ts", "patch": "@@ -154,27 +154,28 @@ const canOptimisticallyRender = (\n ): boolean => {\n const segment = segments[0]\n const isLastSegment = segments.length === 1\n-\n const [existingSegment, existingParallelRoutes, , , loadingMarker] =\n flight...
2022-07-15T15:06:27
rust-lang/rust
eab700a0aa4ad3079ad043a9cb4fb89edab3b4b7
ebf0cf75d368c035f4c7e7246d203bd469ee4a51
Fix uclibc LLVM target triples `uclibc` is not an environment understood by LLVM, it is only a concept in Clang that can be selected with `-muclibc` (it affects which dynamic linker is passed to the static linker's `-dynamic-linker` flag). In fact, using `uclibcgnueabi`/`uclibc` is actively harmful, as it prevents LL...
[ { "path": "compiler/rustc_target/src/spec/targets/armv5te_unknown_linux_uclibceabi.rs", "patch": "@@ -2,7 +2,7 @@ use crate::spec::{FloatAbi, Target, TargetMetadata, TargetOptions, base};\n \n pub(crate) fn target() -> Target {\n Target {\n- llvm_target: \"armv5te-unknown-linux-uclibcgnueabi\".in...
2025-03-12T22:37:35
huggingface/transformers
13dc6b0853c3cb54e79b18105c0528bc9e84881c
7e5d46ded433605a906fcab6be43ac85307cca9b
Fix documentation links and code reference to model llava-next (#32434)
[ { "path": "docs/source/en/model_doc/llava_next.md", "patch": "@@ -55,12 +55,12 @@ The original code can be found [here](https://github.com/haotian-liu/LLaVA/tree/\n \n - Note that each checkpoint has been trained with a specific prompt format, depending on which large language model (LLM) was used. You can ...
2024-08-05T22:14:50
golang/go
762eda346a9f4062feaa8a9fc0d17d72b11586f0
48a1a5189843571a08461a5756e5fe553f966c94
go/types: fix incorrect string(int) conversion (regression) The bug was introduced by https://golang.org/cl/220844. Fixes #42790. Change-Id: I44d619a1a4d3f2aee1c5575d5cfddcc4ba10895f Reviewed-on: https://go-review.googlesource.com/c/go/+/272666 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <g...
[ { "path": "src/go/types/conversions.go", "patch": "@@ -6,7 +6,10 @@\n \n package types\n \n-import \"go/constant\"\n+import (\n+\t\"go/constant\"\n+\t\"unicode\"\n+)\n \n // Conversion type-checks the conversion T(x).\n // The result is in x.\n@@ -21,14 +24,11 @@ func (check *Checker) conversion(x *operand,...
2020-11-23T23:48:37
ollama/ollama
d89454de805c6d9507796cf2a262986db43ed849
af28b94533ee2d7cbf2d014fc1eab96d70669dd9
Use slot with cached prompt instead of least recently used (#5492) * Use common prefix to select slot * actually report `longest`
[ { "path": "llm/ext_server/server.cpp", "patch": "@@ -1382,12 +1382,50 @@ struct llama_server_context\n }\n }\n \n+ std::string common_prefix(const std::string& str1, const std::string& str2) {\n+ auto mismatch_pair = std::mismatch(str1.begin(), str1.end(), str2.begin());\n+ retu...
2024-07-05T16:32:47
nodejs/node
fafd9fbd015ad091e1d43620e13eb2280b0cda08
a6788b407bffab3a2ba62288deb54940587c91f7
util: allow wildcards in NODE_DEBUG variable PR-URL: https://github.com/nodejs/node/pull/17609 Fixes: https://github.com/nodejs/node/issues/17605 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihri...
[ { "path": "doc/api/util.md", "patch": "@@ -104,6 +104,19 @@ FOO 3245: hello from foo [123]\n where `3245` is the process id. If it is not run with that\n environment variable set, then it will not print anything.\n \n+The `section` supports wildcard also, for example:\n+```js\n+const util = require('util')...
2017-12-15T02:39:25
rust-lang/rust
c8a6fcc3c838af8152fda0a22a8946914aaa5770
249cb84316401daf040832cdbb8a45e0f5ab6af8
fix: remove the check of lld not supporting @response-file In LLVM v9, lld has supported @response-file LLVM v9 was released on 2019-09-19. And the check was added back to 2018-03-14 (1.26.0) via 04442af18bf0. It has been more than five years, and we ship our own lld regardlessly. This should be happily removed. See ...
[ { "path": "compiler/rustc_codegen_ssa/src/back/command.rs", "patch": "@@ -143,13 +143,6 @@ impl Command {\n return false;\n }\n \n- // Right now LLD doesn't support the `@` syntax of passing an argument\n- // through files, so regardless of the platform we try to go to the ...
2025-03-12T22:36:21
huggingface/transformers
7e5d46ded433605a906fcab6be43ac85307cca9b
458b0cd2c544cdd6c700f9b0c21077c889bcee6c
Respect the config's attn_implementation if set (#32383) * Respect the config's attn if set * Update test - can override in from_config * Fix
[ { "path": "src/transformers/modeling_utils.py", "patch": "@@ -1454,7 +1454,15 @@ def _from_config(cls, config, **kwargs):\n dtype_orig = cls._set_default_torch_dtype(torch_dtype)\n \n config = copy.deepcopy(config) # We do not want to modify the config inplace in _from_config.\n- ...
2024-08-05T15:33:19
golang/go
9ea6364a5e9f776af36604c2c20501e6d07f8467
f7342596daa892400e91a407cac5843bc43dcdd0
cmd/compile: add test for 42753 This issue was already fixed at tip. Just adding the test that failed on 1.14/1.15. Update #42753 Change-Id: I00d13ade476b9c17190d762d7fdcb30cf6c83954 Reviewed-on: https://go-review.googlesource.com/c/go/+/272029 Trust: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@gol...
[ { "path": "test/fixedbugs/issue42753.go", "patch": "@@ -0,0 +1,13 @@\n+// compile -d=ssa/check/on\n+\n+// Copyright 2020 The Go Authors. All rights reserved.\n+// Use of this source code is governed by a BSD-style\n+// license that can be found in the LICENSE file.\n+\n+package main\n+\n+func f() uint32 {\n...
2020-11-20T21:59:29
ollama/ollama
e9188e971a998faff7aabd867ebc0ef1dc7f672b
78eddfc0683cd402dadb9c762d27efeef20c98f0
Fix assert on small embedding inputs (#5491) * Fix assert on small embedding inputs * Update llm/patches/09-pooling.diff
[ { "path": "llm/patches/09-pooling.diff", "patch": "@@ -0,0 +1,60 @@\n+diff --git a/llama.cpp b/llama.cpp\n+index 61948751..61fe7b57 100644\n+--- a/llama.cpp\n++++ b/llama.cpp\n+@@ -7591,14 +7591,14 @@ struct llm_build_context {\n+ }\n+ \n+ struct ggml_tensor * build_inp_mean() {\n+- lctx.inp_...
2024-07-05T15:20:57
rust-lang/rust
65bd61d2fbef50d28caed626ce601a908d5be77f
ebf0cf75d368c035f4c7e7246d203bd469ee4a51
Fix armv7-sony-vita-newlibeabihf LLVM target triple It was previously normalized by LLVM to `thumbv7a-vita-unknown-eabihf`, which is probably wrong, as Vita is the OS.
[ { "path": "compiler/rustc_target/src/spec/targets/armv7_sony_vita_newlibeabihf.rs", "patch": "@@ -15,7 +15,7 @@ pub(crate) fn target() -> Target {\n );\n \n Target {\n- llvm_target: \"thumbv7a-vita-eabihf\".into(),\n+ llvm_target: \"thumbv7a-sony-vita-eabihf\".into(),\n metadat...
2025-03-12T08:47:11
nodejs/node
a6788b407bffab3a2ba62288deb54940587c91f7
897f457f5dcf0a5528efd27de10250b2a975ed16
assert: fix .throws operator assert.throws and assert.doesNotThrow set the operator to a internal function. That was by accident and originally the operator was undefined. This changes it to show "throws" or "doesNotThrow". PR-URL: https://github.com/nodejs/node/pull/17575 Reviewed-By: Rich Trott <rtrott@gmail.com> R...
[ { "path": "lib/assert.js", "patch": "@@ -180,7 +180,7 @@ function innerThrows(shouldThrow, block, expected, message) {\n details += ` (${expected.name})`;\n }\n details += message ? `: ${message}` : '.';\n- fail(actual, expected, `Missing expected exception${details}`, fail);\n+ ...
2017-12-09T16:05:20
huggingface/transformers
458b0cd2c544cdd6c700f9b0c21077c889bcee6c
baf7e5c927744122c89ab1270c6c312541c7eb41
fix: Updated `test_embeded_special_tokens` for luke and mluke models (#32413) Fixed tokenizertests for luke, mluke models.
[ { "path": "tests/models/luke/test_tokenization_luke.py", "patch": "@@ -146,11 +146,9 @@ def test_embeded_special_tokens(self):\n # token_type_ids should put 0 everywhere\n self.assertEqual(sum(tokens_r[\"token_type_ids\"]), sum(tokens_p[\"token_type_ids\"]))\n \n- ...
2024-08-05T14:19:42
vercel/next.js
ad02a9419d097a8ea9246f0ae482ef4430e2037e
6524dd0a59a7c48f0028cc3cc3a1e2560671bba5
fix benches
[ { "path": "crates/turbo-malloc/Cargo.toml", "patch": "@@ -2,6 +2,10 @@\n name = \"turbo-malloc\"\n version = \"0.1.0\"\n edition = \"2021\"\n+autobenches = false\n+\n+[lib]\n+bench = false\n \n # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html\n ", "additio...
2022-07-14T15:15:45
golang/go
f7342596daa892400e91a407cac5843bc43dcdd0
f93ef07b1143abf3003555c4afcadc0e9842cbf8
syscall: add DLLError.Unwrap function Because we're expecting for future functions to be unavailable, we should add an Unwrap() function to the DLLError struct, so that people can test for this situation easily via: if errors.Is(err, syscall.ERROR_PROC_NOT_FOUND) { ... } DLLError already was wrapping the underly...
[ { "path": "doc/go1.16.html", "patch": "@@ -501,6 +501,10 @@ <h3 id=\"minor_library_changes\">Minor changes to the library</h3>\n <p><!-- CL 261917 -->\n <a href=\"/pkg/syscall/#SysProcAttr\"><code>SysProcAttr</code></a> on Windows has a new NoInheritHandles field that disables inheriting handles w...
2020-11-13T14:48:05
rust-lang/rust
0434013a6ea19eb1937d65105623c41e1b52e3f1
ebf0cf75d368c035f4c7e7246d203bd469ee4a51
Fix RISC-V VxWorks LLVM target triples The targets used the plain `$ARCH` triple, which LLVM normalizes to `$ARCH-unknown-unknown`, which is inconsistent with the the other VxWorks targets which all use `$ARCH-unknown-linux-gnu$ABI`.
[ { "path": "compiler/rustc_target/src/spec/targets/riscv32_wrs_vxworks.rs", "patch": "@@ -2,7 +2,7 @@ use crate::spec::{StackProbeType, Target, TargetMetadata, TargetOptions, base};\n \n pub(crate) fn target() -> Target {\n Target {\n- llvm_target: \"riscv32\".into(),\n+ llvm_target: \"risc...
2025-03-12T21:42:17
huggingface/transformers
baf7e5c927744122c89ab1270c6c312541c7eb41
f5f1e52f6cf13cdf63ff25c311d33e2f2a842911
Persist embedding type of BART and mBART models after resize (#32242) * fix: persist embedding type of MBartConditonalGeneration after resize * fix: persist embedding type of BartConditonalGeneration after resize
[ { "path": "src/transformers/models/bart/modeling_bart.py", "patch": "@@ -1431,7 +1431,8 @@ def __init__(self, config: BartConfig):\n super().__init__(config)\n \n padding_idx, vocab_size = config.pad_token_id, config.vocab_size\n- self.shared = nn.Embedding(vocab_size, config.d_model,...
2024-08-05T13:15:36
nodejs/node
897f457f5dcf0a5528efd27de10250b2a975ed16
203ce5f9e0a9bdacf31214ed4b5cda00686353e7
url: added url fragment lookup table Percent-encoded additional characters in fragment state with new FRAGMENT_ENCODE_SET lookup table. The fragment percent-encode set includes the C0 control percent-encode set and code points U+0020, U+0022, U+003C, U+003E, and U+0060. PR-URL: https://github.com/nodejs/node/pull/176...
[ { "path": "doc/api/url.md", "patch": "@@ -1107,12 +1107,15 @@ forward slash (`/`) character is encoded as `%3C`.\n The [WHATWG URL Standard][] uses a more selective and fine grained approach to\n selecting encoded characters than that used by the Legacy API.\n \n-The WHATWG algorithm defines three \"percent...
2017-12-08T22:07:14
golang/go
3fd491747247e95d00e24feccd1568b9e7eb37b4
676f0a45edd6b9be824f21530a13a695466880bf
doc: fix misspelling of “initialization” in diagnostics.html initilization -> initialization Change-Id: Ie5edd30559941f2d044280d8d586c2c2692d5b69 GitHub-Last-Rev: 7495a8c7227bc9c574c93861e5fedc1bada0397c GitHub-Pull-Request: golang/go#42749 Reviewed-on: https://go-review.googlesource.com/c/go/+/272026 Reviewed-by: Em...
[ { "path": "doc/diagnostics.html", "patch": "@@ -455,7 +455,7 @@ <h3 id=\"godebug\">GODEBUG</h3>\n each collection, summarizing the amount of memory collected\n and the length of the pause.</li>\n <li>GODEBUG=inittrace=1 prints a summary of execution time and memory allocation\n-information for completed pac...
2020-11-20T16:44:15
rust-lang/rust
f31ddcf52406c28dad8c35c7d5bbbe496e9cf2fb
f335d00263fd429d12fd844134df54657357de56
Emit an error when RTN is used in an incorrect place We miss one place: associated type bindings aka. `impl Trait<Type(..): Send>`, but we also miss it for Fn-style parenthesizes error so I left it out for now.
[ { "path": "src/tools/rust-analyzer/crates/hir-ty/src/lower/path.rs", "patch": "@@ -607,8 +607,14 @@ impl<'a, 'b> PathLoweringContext<'a, 'b> {\n ) -> Substitution {\n let prohibit_parens = match def {\n GenericDefId::TraitId(trait_) => {\n- let trait_data = self.ctx.db...
2025-03-08T18:56:54
huggingface/transformers
f5f1e52f6cf13cdf63ff25c311d33e2f2a842911
ea5da52ebc062ff56f0e3aa05b0e3cc981731e14
Fix documentation references to google/bit-50 model (#32407)
[ { "path": "src/transformers/models/bit/modeling_bit.py", "patch": "@@ -870,8 +870,8 @@ def forward(\n >>> url = \"http://images.cocodataset.org/val2017/000000039769.jpg\"\n >>> image = Image.open(requests.get(url, stream=True).raw)\n \n- >>> processor = AutoImageProcessor.from_pretrai...
2024-08-05T08:18:28
vercel/next.js
3430ac150565f67daffe62433767d02b7a887bd4
c1ce6bfe1b32ba260c250052176fb5b2cf31dab6
New Router Tests (#38390) * test: added some test cases for new client side router * tests: added additional test cases * test: improved test support * feat: added support for `<Link soft />` * tests: improved test reliability * tests: added more cases for catch-all routes * tests: added app -> pages...
[ { "path": "packages/next/client/link.tsx", "patch": "@@ -8,7 +8,10 @@ import {\n } from '../shared/lib/router/router'\n import { addLocale } from './add-locale'\n import { RouterContext } from '../shared/lib/router-context'\n-import { AppRouterContext } from '../shared/lib/app-router-context'\n+import {\n+ ...
2022-07-14T16:51:57
nodejs/node
eecea2e0e51db58dba00ccf36554c42cb814bae9
b021169a114cdee028bab2d812c88ad6dfa23e78
test: fix flaky test-benchmark-misc Allow zero results for short benchmark test. PR-URL: https://github.com/nodejs/node/pull/17686 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "test/parallel/test-benchmark-misc.js", "patch": "@@ -11,4 +11,4 @@ runBenchmark('misc', [\n 'n=1',\n 'type=extend',\n 'val=magyarország.icom.museum'\n-]);\n+], { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });", "additions": 1, "deletions": 1, "language": "JavaScript" } ]
2017-12-14T18:58:19
ollama/ollama
4d71c559b21ec9207a328b824ce534bdbaf59f2d
0d16eb310ed26e5a438f482dbffe7687e106346e
fix error detection by limiting model loading error parsing (#5472)
[ { "path": "llm/status.go", "patch": "@@ -25,7 +25,7 @@ var errorPrefixes = []string{\n \t\"CUDA error\",\n \t\"cudaMalloc failed\",\n \t\"\\\"ERR\\\"\",\n-\t\"architecture\",\n+\t\"error loading model\",\n }\n \n func (w *StatusWriter) Write(b []byte) (int, error) {", "additions": 1, "deletions": 1,...
2024-07-04T00:04:30
rust-lang/rust
5ec462e8e72ce110ec87d334758ea76a32767e9a
0998d4095b0f11061f78a3f9c77a87838a4c1cb7
Don't emit error within cast function, propagate it as a CastError
[ { "path": "compiler/rustc_hir_typeck/src/cast.rs", "patch": "@@ -32,6 +32,7 @@ use rustc_ast::util::parser::ExprPrecedence;\n use rustc_data_structures::fx::FxHashSet;\n use rustc_errors::codes::*;\n use rustc_errors::{Applicability, Diag, ErrorGuaranteed};\n+use rustc_hir::def_id::DefId;\n use rustc_hir::{...
2025-03-12T19:33:27
huggingface/transformers
3bb646a54f42030e9bafa47cd3f64367691a3bc5
05ae3a300d6f3534eeb99a08828a5bae6dd973db
Phi3 tests: fix typing for Python 3.8 (#32388) fix phi
[ { "path": "tests/models/phi3/test_modeling_phi3.py", "patch": "@@ -16,6 +16,7 @@\n \"\"\"Testing suite for the PyTorch Phi-3 model.\"\"\"\n \n import unittest\n+from typing import List\n \n from parameterized import parameterized\n \n@@ -69,7 +70,7 @@ def forward(\n ).logits\n \n @static...
2024-08-05T06:58:42
golang/go
c306fd6d0b208f67208fb4a1b5bb82e0338a080c
5e58ae43bedeae5964e668755049088938320740
cmd/compile: allow loading single field of typed-interface{} OpIData Same reason as CL 270057, but for OpLoad. Fixes #42727 Change-Id: Iebb1a8110f29427a0aed3b5e3e84f0540de3d1b7 Reviewed-on: https://go-review.googlesource.com/c/go/+/271906 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Cuong Manh Le <cu...
[ { "path": "src/cmd/compile/internal/ssa/expand_calls.go", "patch": "@@ -247,7 +247,7 @@ func expandCalls(f *Func) {\n \t\t\t// i.e., the struct select is generated and remains in because it is not applied to an actual structure.\n \t\t\t// The OpLoad was created to load the single field of the IData\n \t\t\...
2020-11-20T07:09:01
vercel/next.js
a0a40325c8bcbb89738b82fd51390d95c5a59802
7ae820b5b5b33e1a1acfaf6d622d4a4809438173
fix paths
[ { "path": "crates/turbopack-ecmascript/src/analyzer/graph.rs", "patch": "@@ -690,27 +690,30 @@ impl VisitAstPath for Analyzer<'_> {\n ) {\n ast_path.with(\n AstParentNodeRef::AssignExpr(n, AssignExprField::Left),\n- |ast_path| {\n- match &n.left {\n- ...
2022-07-14T14:03:37
nodejs/node
b021169a114cdee028bab2d812c88ad6dfa23e78
98a6f63e457859be44bb76a051fc17ccf296edbf
win, build: fix without-intl option Fixes --with-intl option passed to configure script when without-intl is used PR-URL: https://github.com/nodejs/node/pull/17614 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: ...
[ { "path": "vcbuild.bat", "patch": "@@ -103,7 +103,7 @@ if /i \"%1\"==\"upload\" set upload=1&goto arg-ok\n if /i \"%1\"==\"small-icu\" set i18n_arg=%1&goto arg-ok\n if /i \"%1\"==\"full-icu\" set i18n_arg=%1&goto arg-ok\n if /i \"%1\"==\"intl-none\" set i18n_arg=%1&goto arg-ok\n-if /i \"...
2017-12-11T17:08:20
ollama/ollama
0d16eb310ed26e5a438f482dbffe7687e106346e
8072e205ff9044a62df39d14216fb7d9d7a51597
fix: use `envconfig.ModelsDir` directly (#4821) * Co-authored-by: Anatoli Babenia <anatoli@rainforce.org> Co-authored-by: Maas Lalani <maas@lalani.dev>
[ { "path": "envconfig/config.go", "patch": "@@ -43,10 +43,10 @@ var (\n \tMaxRunners int\n \t// Set via OLLAMA_MAX_QUEUE in the environment\n \tMaxQueuedRequests int\n-\t// Set via OLLAMA_MODELS in the environment\n-\tModelsDir string\n \t// Set via OLLAMA_MAX_VRAM in the environment\n \tMaxVRAM uint64\n+\t/...
2024-07-03T22:36:11
huggingface/transformers
05ae3a300d6f3534eeb99a08828a5bae6dd973db
847bb856d55e3664150e408448fa59d0705b4d60
fix: SeamlessM4TFeatureExtractor stride remainder (#32088) * fix: SeamlessM4TFeatureExtractor stride remainder * Added attention mask size test * Reran ruff for style correction
[ { "path": "src/transformers/models/seamless_m4t/feature_extraction_seamless_m4t.py", "patch": "@@ -286,14 +286,14 @@ def __call__(\n \n remainder = num_frames % self.stride\n if remainder != 0:\n- input_features = input_features[:, :num_frames, :]\n- attention_mask = at...
2024-08-05T06:40:58
golang/go
5e58ae43bedeae5964e668755049088938320740
012efc67f280d7a68dd30a3150acd50cfa12985b
cmd/go: report changes and resolved versions in 'go get' Fixes #33284 Change-Id: I33daa5eb518985bc7308f29655e04c57e244b479 Reviewed-on: https://go-review.googlesource.com/c/go/+/269018 Run-TryBot: Jay Conrod <jayconrod@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Jay Conrod <jayconrod@google.com> Revie...
[ { "path": "src/cmd/go/internal/modget/get.go", "patch": "@@ -45,7 +45,9 @@ import (\n \t\"cmd/go/internal/search\"\n \t\"cmd/go/internal/work\"\n \n+\t\"golang.org/x/mod/modfile\"\n \t\"golang.org/x/mod/module\"\n+\t\"golang.org/x/mod/semver\"\n )\n \n var CmdGet = &base.Command{\n@@ -462,10 +464,19 @@ func...
2020-11-18T22:07:30
vercel/next.js
8a2bb49d6da6e59156c255ca8503dad103029ba5
2473280f41cd355b46e089f2f1116e2d075a4a16
Fix failed to hydrate error with global CSS (#38626) Temporarily we need to ensure that `<link>` tags are injected to `<head>` in the stream. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implem...
[ { "path": "packages/next/client/components/layout-router.client.tsx", "patch": "@@ -235,7 +235,7 @@ export default function OuterLayoutRouter({\n childProp: ChildProp\n loading: React.ReactNode | undefined\n }) {\n- const { childNodes, tree, url, stylesheets } = useContext(AppTreeContext)\n+ const { c...
2022-07-14T10:26:25
nodejs/node
98a6f63e457859be44bb76a051fc17ccf296edbf
e989cd1faf32f0123d176a54b153219cc10e3bc7
src: fix -Wundefined-inline warnings Fix compiler warnings introduced in commit 47edfd9c3c ("crypto: move node_crypto_clienthello-inl.h to cc") by moving constructors around. They were defined inline but depended on definitions from `node_crypto_clienthello-inl.h`. PR-URL: https://github.com/nodejs/node/pull/17649 R...
[ { "path": "src/node_crypto.cc", "patch": "@@ -2849,6 +2849,24 @@ int SSLWrap<Base>::SetCACerts(SecureContext* sc) {\n }\n \n \n+Connection::Connection(Environment* env,\n+ v8::Local<v8::Object> wrap,\n+ SecureContext* sc,\n+ SSLWrap<Connectio...
2017-12-13T13:51:33
huggingface/transformers
621fb3c0edddf98f3272f3b197e772af4fa30b6c
7c31d05b59a9dce24b8ddc4b2bb8c8cf6bb5fd77
MixtralFlashAttention2: put "plus 1" inside parentheses when calculating rotary_seq_len, allowing None position_ids input. (#31500) * Mixtral: remove unnecessary plus 1 when calculating rotary_seq_len, allowing position_ids=None (no auto position_ids generation could be unsafe) * fix typo [:-1] to [:, -1] * to m...
[ { "path": "src/transformers/models/mixtral/modeling_mixtral.py", "patch": "@@ -469,7 +469,10 @@ def forward(\n kv_seq_len += past_key_value.get_usable_length(kv_seq_len, self.layer_idx)\n \n # Because the input can be padded, the absolute sequence length depends on the max position id.\n...
2024-08-03T18:07:55
golang/go
012efc67f280d7a68dd30a3150acd50cfa12985b
9264067a41d98d0500036c2279dea252d1f9adac
cmd/go/internal/modload: ignore selected version in checkRetractions Fixes #42601 Change-Id: I58d817ed34ccbd39591326c4bc23569f94028412 Reviewed-on: https://go-review.googlesource.com/c/go/+/272006 Run-TryBot: Jay Conrod <jayconrod@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gob...
[ { "path": "src/cmd/go/internal/modload/modfile.go", "patch": "@@ -114,9 +114,9 @@ func CheckRetractions(ctx context.Context, m module.Version) error {\n \n \t\t// Find the latest version of the module.\n \t\t// Ignore exclusions from the main module's go.mod.\n-\t\t// We may need to account for the current ...
2020-11-13T22:14:46
nodejs/node
e989cd1faf32f0123d176a54b153219cc10e3bc7
246aeaca1ed47e245ee4c92084b59f5ddb31163c
src: fix compile warnings introduced in 73ad3f9bea Fix warnings introduced in commit 73ad3f9bea ("inspector: Fix crash for WS connection"): * add missing `override` keywords * remove unused fields and functions PR-URL: https://github.com/nodejs/node/pull/17649 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By...
[ { "path": "src/inspector_socket.cc", "patch": "@@ -328,7 +328,7 @@ class WsHandler : public ProtocolHandler {\n } while (processed > 0 && !data->empty());\n }\n \n- void Write(const std::vector<char> data) {\n+ void Write(const std::vector<char> data) override {\n std::vector<char> output = enco...
2017-12-13T13:51:33
vercel/next.js
2473280f41cd355b46e089f2f1116e2d075a4a16
ff148a0fb4612b483fbb736733ec847a0a9cabad
Fix reloading Client Component require.cache (#38633) @delbaoliveira caught an issue where if you edit a client component multiple times it would cause a hydration error when reloading. Root cause of this was that the `require.cache` entry for `.__sc_client__` did not get removed, which this PR fixes. ## Bug - [ ]...
[ { "path": "packages/next/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts", "patch": "@@ -3,7 +3,6 @@ import { clearModuleContext } from '../../../server/web/sandbox'\n import { realpathSync } from 'fs'\n import path from 'path'\n import isError from '../../../lib/is-error'\n-import { NEXT_CLIENT_...
2022-07-14T10:01:29
ollama/ollama
955f2a4e035044866277e26abe74343117250f1a
ccd7785859172bfabaeb73d70b7162263a8351d8
Only set default keep_alive on initial model load This change fixes the handling of keep_alive so that if client request omits the setting, we only set this on initial load. Once the model is loaded, if new requests leave this unset, we'll keep whatever keep_alive was there.
[ { "path": "envconfig/config.go", "patch": "@@ -4,12 +4,14 @@ import (\n \t\"errors\"\n \t\"fmt\"\n \t\"log/slog\"\n+\t\"math\"\n \t\"net\"\n \t\"os\"\n \t\"path/filepath\"\n \t\"runtime\"\n \t\"strconv\"\n \t\"strings\"\n+\t\"time\"\n )\n \n type OllamaHost struct {\n@@ -34,7 +36,7 @@ var (\n \t// Set via O...
2024-07-02T22:12:43
huggingface/transformers
7c31d05b59a9dce24b8ddc4b2bb8c8cf6bb5fd77
c1aa0edb48217f416f4bbe6e3a9db1500284513b
fix: (issue #32124) Exception raised when running `transformers/examples/flax/language-modeling/t5_tokenizer_model.py`. (#32157) fix: Exception raised when running .
[ { "path": "examples/flax/language-modeling/t5_tokenizer_model.py", "patch": "@@ -47,14 +47,14 @@ def __init__(\n tokenizer.pre_tokenizer = pre_tokenizers.Sequence(\n [\n pre_tokenizers.Metaspace(\n- replacement=replacement, add_prefix_space=\"always\" i...
2024-08-03T16:24:11
golang/go
9264067a41d98d0500036c2279dea252d1f9adac
cb3f84ad25abaea28dad905ceddd81a5a334e806
cmd/go: remove ListModules call in runGet ListModules was used to download .info files so that 'go list -m all' would succeed later when offline. However, 'go list -m all' may already fail when offline after 'go mod tidy', so it doesn't make sense to add complexity to 'go get'. Instead, remove the ListModules call an...
[ { "path": "src/cmd/go/internal/modget/get.go", "patch": "@@ -466,21 +466,6 @@ func runGet(ctx context.Context, cmd *base.Command, args []string) {\n \tmodload.AllowWriteGoMod()\n \tmodload.WriteGoMod()\n \tmodload.DisallowWriteGoMod()\n-\n-\t// Ensure .info files are cached for each module in the build list...
2020-11-19T15:56:35
nodejs/node
f86427eae844477b70c256e3c9cbd36970c4b5b0
decab712ba14b8ec577025a57b8ab460fd3b8ec5
test: improve coverage for util.promisify Add a test that confirms that non-function arguments passed to util.promisify throw an ERR_INVALID_ARG_TYPE error. PR-URL: https://github.com/nodejs/node/pull/17591 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rube...
[ { "path": "test/parallel/test-util-promisify.js", "patch": "@@ -184,3 +184,13 @@ const stat = promisify(fs.stat);\n })\n ]);\n }\n+\n+[undefined, null, true, 0, 'str', {}, [], Symbol()].forEach((input) => {\n+ common.expectsError(\n+ () => promisify(input),\n+ {\n+ code: 'ERR_INVALID_ARG_T...
2017-12-14T16:14:08
vercel/next.js
ff148a0fb4612b483fbb736733ec847a0a9cabad
0ac8ad07cb4262af167816a9a941c439f58b3486
Update to latest version of turbo (#38629) Updates to latest turbo which includes patches for cached files. x-ref: [slack thread](https://vercel.slack.com/archives/C02CDC2ALJH/p1657767763630359?thread_ts=1657757803.039099&cid=C02CDC2ALJH) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration t...
[ { "path": ".github/workflows/build_test_deploy.yml", "patch": "@@ -8,7 +8,7 @@ name: Build, test, and deploy\n \n env:\n NAPI_CLI_VERSION: 2.7.0\n- TURBO_VERSION: 1.3.1\n+ TURBO_VERSION: 1.3.2-canary.1\n RUST_TOOLCHAIN: nightly-2022-02-23\n PNPM_VERSION: 7.2.1\n ", "additions": 1, "deletions...
2022-07-14T09:03:35
huggingface/transformers
51ab25e2932da15511ced35bcbdfa92d25c4794c
e3d8285a84f803e962050e2c2283f3362e36bfbc
Fixed Hybrid Cache Shape Initialization. (#32163) * fixed hybrid cache init, added test * Fix Test Typo --------- Co-authored-by: Aaron Haag <aaron.haag@siemens.com>
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -1813,7 +1813,9 @@ def generate(\n )\n model_kwargs[cache_name] = self._get_cache(\n generation_config.cache_implementation,\n- getattr(generation_config, \"num_beams\", ...
2024-08-01T12:57:42
ollama/ollama
3c75113e37cc2b5d9ad8cb5c21841437aab482cc
3b5a4a77f3a191e368af3412e5de9b38b4f80771
Prevent loading models larger than total memory Users may not realize the siny new model they're trying to load fits on their disk, but can't load into system+GPU memory. Today we crash, but with this fix, we'll give them a better error message before even trying to load it.
[ { "path": "server/sched.go", "patch": "@@ -139,6 +139,11 @@ func (s *Scheduler) processPending(ctx context.Context) {\n \t\t\t}\n \n \t\t\tfor {\n+\t\t\t\tcpus := s.getCpuFn()\n+\t\t\t\tvar systemMem gpu.GpuInfo\n+\t\t\t\tif len(cpus) > 0 {\n+\t\t\t\t\tsystemMem = cpus[0]\n+\t\t\t\t}\n \t\t\t\tvar runnerToE...
2024-07-03T21:47:42
golang/go
66c02645062561ac29d00297e8d8c49698b2e4da
0dcc7d6ea868551e70323e2ca0b63a79ad2217fd
net, internal/poll: reset value before adding in minor kernel version Fixes #42733 Change-Id: I5446aeb5de13cd70212755fb12c9bc484f343c74 Reviewed-on: https://go-review.googlesource.com/c/go/+/271846 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Dmitri Shuralyov <...
[ { "path": "src/internal/poll/copy_file_range_linux.go", "patch": "@@ -35,6 +35,7 @@ func kernelVersion() (major int, minor int) {\n \t\t\tif vi >= len(values) {\n \t\t\t\tbreak\n \t\t\t}\n+\t\t\tvalue = 0\n \t\t}\n \t}\n \tswitch vi {", "additions": 1, "deletions": 0, "language": "Go" }, { ...
2020-11-20T03:15:57
huggingface/transformers
ca59d6f77c9fda197222f9aa9205d8c7b5dff34e
b4727a1216bb21df2795e973063ed07202235d7e
Offloaded KV Cache (#31325) * Initial implementation of OffloadedCache * enable usage via cache_implementation * Address feedback, add tests, remove legacy methods. * Remove flash-attn, discover synchronization bugs, fix bugs * Prevent usage in CPU only mode * Add a section about offloaded KV cache to t...
[ { "path": "docs/source/en/generation_strategies.md", "patch": "@@ -211,6 +211,80 @@ I like rock music because it's loud and energetic. It's a great way to express m\n I like rock music because it's loud and energetic. I like to listen to it when I'm feeling\n ```\n \n+## KV Cache Offloading\n+\n+Similarly t...
2024-08-01T12:42:07
nodejs/node
9f61c7038557de30d1d3618aa94d356c6a64b6cc
6c1a04b381fa97a38ae1faf8763cfa82a20a89db
process: fix coverage generation e8a26e783e2e33514d44d8b2725d5f048e1314ce added `process` to the internal module wrapper. This broke the utility used to write coverage information due to a SyntaxError that `process` had already been declared. PR-URL: https://github.com/nodejs/node/pull/17651 Reviewed-By: Colin Ihrig ...
[ { "path": "lib/internal/process/write-coverage.js", "patch": "@@ -1,5 +1,4 @@\n 'use strict';\n-const process = require('process');\n const path = require('path');\n const { mkdirSync, writeFileSync } = require('fs');\n ", "additions": 0, "deletions": 1, "language": "JavaScript" } ]
2017-12-13T14:17:21
vercel/next.js
0ac8ad07cb4262af167816a9a941c439f58b3486
5841aac8f5c47b246b3f79560ad9562f0c344050
chore: tweak issue validator (#38600) - Do not comment/label if `next info` wasn't used, as we might not be able to detect the versions reliably. - Ignore all issues that do not have the `template: bug` label or weren't labeled manually. (This might slip through a few issues that did not follow our template like [Refe...
[ { "path": ".github/actions/issue-validator/index.js", "patch": "@@ -8699,57 +8699,90 @@\n const t = 'please verify canary'\n const r = 'template: bug'\n const s = 'please add a complete reproduction'\n+ const i = !!process.env.DEBUG\n async function run() {\n try {\n const {...
2022-07-13T23:15:25
golang/go
8fbdacf64c982b9a7f8cb27754bb01cedffa53c7
b1ae0a0646d062559249675e6bf6883b44094046
[dev.typeparams] cmd/compile/internal/types2: report constant overflow in binary ops This is the go.types changes of https://golang.org/cl/271706 ported to types2. Also: Fixed a bug in the go/types version (was using the wrong position in the error message). Change-Id: I798b80243a66f0be5b943a6951d7a1ff769abca2 Revie...
[ { "path": "src/cmd/compile/internal/types2/expr.go", "patch": "@@ -897,7 +897,7 @@ var binaryOpPredicates = opPredicates{\n }\n \n // The binary expression e may be nil. It's passed in for better error messages only.\n-func (check *Checker) binary(x *operand, e *syntax.Operation, lhs, rhs syntax.Expr, op sy...
2020-11-20T01:49:05
huggingface/transformers
b4727a1216bb21df2795e973063ed07202235d7e
db8c7caeb6b3969a2153b36ba3e5fdef6534c1d6
Fix conflicting key in init kwargs in PreTrainedTokenizerBase (#31233) * Fix conflicting key in init kwargs in PreTrainedTokenizerBase * Update code to check for callable key in save_pretrained * Apply PR suggestions * Invoke CI * Updates based on PR suggestion
[ { "path": "src/transformers/tokenization_utils_base.py", "patch": "@@ -1569,6 +1569,10 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin):\n def __init__(self, **kwargs):\n # inputs and kwargs for saving and re-loading (see ``from_pretrained`` and ``save_pretrained``)\n ...
2024-08-01T12:32:13
nodejs/node
04ae4862e670a8849454e6d8db4d8f73d0492190
47edfd9c3c80ba70e0633d755c6aed111a3569d6
domain: fix error emit handling Fix an issue where error is never emitted on the original EventEmitter in situations where a listener for error does exist. Refactor to eliminate unnecessary try/catch/finally block. PR-URL: https://github.com/nodejs/node/pull/17588 Refs: https://github.com/nodejs/node/pull/17403 Revi...
[ { "path": "lib/domain.js", "patch": "@@ -399,32 +399,35 @@ EventEmitter.init = function() {\n const eventEmit = EventEmitter.prototype.emit;\n EventEmitter.prototype.emit = function emit(...args) {\n const domain = this.domain;\n- if (domain === null || domain === undefined || this === process) {\n- r...
2017-12-10T18:11:18
vercel/next.js
8b46521f601d4b52d53cb7f7b3d6d0735f0d8ae7
983512b773dfb228eb5af45b5c6583793bdb2978
fix test case
[ { "path": "crates/turbopack-ecmascript/src/references/mod.rs", "patch": "@@ -1240,7 +1240,7 @@ fn for_each_ident_in_decl(decl: &Decl, f: &mut impl FnMut(String)) {\n .for_each(|VarDeclarator { name, .. }| for_each_ident_in_pat(name, f));\n }\n Decl::TsInterface(_) | Decl::TsT...
2022-07-13T22:34:44
golang/go
0dcc7d6ea868551e70323e2ca0b63a79ad2217fd
c72a44888174947dfb010a636d89dc8bdd61183c
go/types: use correct error position Follow-up on https://golang.org/cl/271706 . Change-Id: I90339987aed88b0de3ee7ebe7d413282055c260c Reviewed-on: https://go-review.googlesource.com/c/go/+/271789 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindl...
[ { "path": "src/go/types/expr.go", "patch": "@@ -890,7 +890,7 @@ func (check *Checker) binary(x *operand, e *ast.BinaryExpr, lhs, rhs ast.Expr, o\n \t\t\t// TODO(gri) We should report exactly what went wrong. At the\n \t\t\t// moment we don't have the (go/constant) API for that.\n \t\t\t// ...
2020-11-20T02:00:13
nodejs/node
486290b1fefe31e5dc3d77aa51cfeae208d0e0fd
f96a86cac583675d10f601316c6ec4803bb851cc
url: added space to class string of iterator objects PR-URL: https://github.com/nodejs/node/pull/17558 Fixes: https://github.com/nodejs/node/issues/17540 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "lib/internal/url.js", "patch": "@@ -1198,7 +1198,7 @@ function createSearchParamsIterator(target, kind) {\n // https://heycam.github.io/webidl/#dfn-iterator-prototype-object\n const URLSearchParamsIteratorPrototype = Object.create(IteratorPrototype);\n \n-defineIDLClass(URLSearchParamsIteratorPro...
2017-12-09T02:23:45
vercel/next.js
5841aac8f5c47b246b3f79560ad9562f0c344050
102cef0f7b4c7108ea000b57d5e47ea68034529d
Remove the hide-fouc tag earlier (#38614) fix: remove hide-fouc tag earlier
[ { "path": "packages/next/client/app-index.tsx", "patch": "@@ -164,11 +164,14 @@ async function loadCss(cssChunkInfoJson: string) {\n return Promise.resolve()\n }\n \n-function createLoadFlightCssStream() {\n+function createLoadFlightCssStream(onFlightCssLoaded: () => void) {\n+ const promises: Promise<an...
2022-07-13T21:57:03
ollama/ollama
0e982bc1f47cfc7c36f49f925419f9039304925e
e5352297d97b96101a7bd6944de420ed17ae62d3
Fix corner cases on tmp cleaner on mac When ollama is running a long time, tmp cleaners can remove the runners. This tightens up a few corner cases on arm macs where we failed with "server cpu not listed in available servers map[]"
[ { "path": "llm/payload.go", "patch": "@@ -38,7 +38,7 @@ func Init() error {\n \t}\n \n \tvar variants []string\n-\tfor v := range availableServers() {\n+\tfor v := range getAvailableServers() {\n \t\tvariants = append(variants, v)\n \t}\n \tslog.Info(fmt.Sprintf(\"Dynamic LLM libraries %v\", variants))\n@@ ...
2024-07-03T20:10:14
huggingface/transformers
05c1f9af9a5ebd213dd923e97f6fbed4c115f3c6
9e2828403218da16d9759c9be020b70f51df373d
Check device map for saving tokenizer config on TPU (fix for issue #31971) (#32043) * Remove TPU device map for saving tokenizer config * Update tokenization_utils_base.py * Fix error msg when passing non-string device into tokenizer * Fix error message for non-string tokenizer device * Print out tokenizer...
[ { "path": "src/transformers/tokenization_utils_base.py", "patch": "@@ -2663,6 +2663,8 @@ def save_pretrained(\n tokenizer_config.pop(\"name_or_path\")\n tokenizer_config.pop(\"special_tokens_map_file\", None)\n tokenizer_config.pop(\"tokenizer_file\", None)\n+ if \...
2024-08-01T11:52:05
golang/go
c72a44888174947dfb010a636d89dc8bdd61183c
7eed73f36f14cfb2f49b0ef95beb2ae94a64f66e
go/types: fix error message for consistency Follow-up on https://golang.org/cl/271706 . (Missed a review comment.) Change-Id: Ibff542f43d721600a2452907c0a20941961e793f Reviewed-on: https://go-review.googlesource.com/c/go/+/271766 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> R...
[ { "path": "src/go/types/expr.go", "patch": "@@ -890,7 +890,7 @@ func (check *Checker) binary(x *operand, e *ast.BinaryExpr, lhs, rhs ast.Expr, o\n \t\t\t// TODO(gri) We should report exactly what went wrong. At the\n \t\t\t// moment we don't have the (go/constant) API for that.\n \t\t\t// ...
2020-11-20T00:38:11
nodejs/node
f96a86cac583675d10f601316c6ec4803bb851cc
cd71fc1545db30ca8589ddf1933167286308ad8f
tls: unconsume stream on destroy When the TLS stream is destroyed for whatever reason, we should unset all callbacks on the underlying transport stream. PR-URL: https://github.com/nodejs/node/pull/17478 Fixes: https://github.com/nodejs/node/issues/17475 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By...
[ { "path": "src/tls_wrap.cc", "patch": "@@ -101,6 +101,19 @@ TLSWrap::~TLSWrap() {\n #ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB\n sni_context_.Reset();\n #endif // SSL_CTRL_SET_TLSEXT_SERVERNAME_CB\n+\n+ // See test/parallel/test-tls-transport-destroy-after-own-gc.js:\n+ // If this TLSWrap is garbage coll...
2017-12-06T04:29:29
vercel/next.js
102cef0f7b4c7108ea000b57d5e47ea68034529d
53bc5b3dd326d70da5b8b3d5cd48355b649ffe75
refactor(next/telemetry): use basename for the absolute plugin path (#38473) Minor changes to SWC plugin telemetry payload. SWC's plugin can be either resolvable npm pkg, or absolute path. If it's an absolute path, try to grab actual plugin name only as we do not need any paths. ## Bug - [ ] Related issues linked ...
[ { "path": "packages/next/telemetry/events/swc-plugins.ts", "patch": "@@ -1,4 +1,6 @@\n import findUp from 'next/dist/compiled/find-up'\n+import path from 'path'\n+import { fileExists } from '../../lib/file-exists'\n import type { NextConfig } from '../../server/config-shared'\n \n const EVENT_SWC_PLUGIN_PRE...
2022-07-13T21:24:12
huggingface/transformers
e234061cddd28bb8b82144833241883816289e40
9451a385261b30e7319a2c93285ab76161e8c003
[whisper] compile compatibility with long-form decoding (#31772) * [whisper] compile compatibility with long-form decoding * clarify comment * fix after rebase * finalise * fix bsz * fix cache split * remove contiguous * style * finish * update doc * prevent cuda graph trace
[ { "path": "docs/source/en/model_doc/whisper.md", "patch": "@@ -72,7 +72,7 @@ Here is a step-by-step guide to transcribing an audio sample using a pre-trained\n ' Mr. Quilter is the apostle of the middle classes, and we are glad to welcome his gospel.'\n ```\n \n-Whisper is compatible with the following opti...
2024-08-01T10:10:56
ollama/ollama
6298f49816c2264f9bb77206ad1b015aa357e381
e5352297d97b96101a7bd6944de420ed17ae62d3
Fix clip model loading with unicode paths On windows, if the model dir contained unicode characters clip models would fail to load. This fixes the file name handling in clip.cpp to support utf16 on windows.
[ { "path": "llm/patches/08-clip-unicode.diff", "patch": "@@ -0,0 +1,42 @@\n+diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp\n+index 95fbe3d0..5a02a6ec 100644\n+--- a/examples/llava/clip.cpp\n++++ b/examples/llava/clip.cpp\n+@@ -32,6 +33,14 @@\n+ #include <cinttypes>\n+ #include <limits>\n+ \n+...
2024-07-03T19:37:40
golang/go
7eed73f36f14cfb2f49b0ef95beb2ae94a64f66e
f3ce010b331513b4dca26a12dc0fd12dc4385d9c
go/types, go/constant: handle infinities as unknown values With this change, constant literals (and results of constant operations) that internally become infinities are represented externally (to go/constant) as "unknown" values. The language has no provisions to deal with infinite constants, and producing unknown v...
[ { "path": "src/go/constant/value.go", "patch": "@@ -66,6 +66,11 @@ type Value interface {\n // The spec requires at least 256 bits; typical implementations use 512 bits.\n const prec = 512\n \n+// TODO(gri) Consider storing \"error\" information in an unknownVal so clients\n+// can provide better ...
2020-11-19T20:40:19
huggingface/transformers
9451a385261b30e7319a2c93285ab76161e8c003
453e74884fb7e2613e7b45033fbb3c1cadb638b4
[enc-dec cache] fix bug in indexing (#32370)
[ { "path": "src/transformers/cache_utils.py", "patch": "@@ -1034,7 +1034,7 @@ def __getitem__(self, layer_idx: int) -> List[Tuple[torch.Tensor]]:\n self.self_attention_cache.key_cache[layer_idx],\n self.self_attention_cache.value_cache[layer_idx],\n self.cross_...
2024-08-01T08:05:27
nodejs/node
cd71fc1545db30ca8589ddf1933167286308ad8f
11ebaff15c39e87aa2850b43847627aff8e6f62e
src: make FSEventWrap/StatWatcher::Start more robust PR-URL: https://github.com/nodejs/node/pull/17432 Fixes: https://github.com/nodejs/node/issues/17430 Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "src/fs_event_wrap.cc", "patch": "@@ -111,7 +111,8 @@ void FSEventWrap::Start(const FunctionCallbackInfo<Value>& args) {\n \n FSEventWrap* wrap;\n ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());\n- CHECK_EQ(wrap->initialized_, false);\n+ if (wrap->initialized_)\n+ return args.GetReturnValu...
2017-12-03T02:37:56
vercel/next.js
53bc5b3dd326d70da5b8b3d5cd48355b649ffe75
62f3f87891f71c4ef6d057880d760f318b131191
Fix `next/jest` when testing `next/future/image` (#38569) - Fixes #38383 - Similar to a previous fix in #26502
[ { "path": "packages/next/client/future/image.tsx", "patch": "@@ -301,7 +301,7 @@ export default function Image({\n blurDataURL,\n ...all\n }: ImageProps) {\n- if (!experimentalFuture) {\n+ if (!experimentalFuture && process.env.NODE_ENV !== 'test') {\n throw new Error(\n `The \"next/future/i...
2022-07-13T19:45:09
ollama/ollama
ef757da2c90ad52f35c95688095dfd84655cceb7
e5352297d97b96101a7bd6944de420ed17ae62d3
Better nvidia GPU discovery logging Refine the way we log GPU discovery to improve the non-debug output, and report more actionable log messages when possible to help users troubleshoot on their own.
[ { "path": "docs/troubleshooting.md", "patch": "@@ -70,14 +70,18 @@ curl -fsSL https://ollama.com/install.sh | OLLAMA_VERSION=\"0.1.29\" sh\n \n If your system is configured with the \"noexec\" flag where Ollama stores its temporary executable files, you can specify an alternate location by setting OLLAMA_TM...
2024-07-03T17:30:07
golang/go
e73697b710b2fd41b14336837ac6fd2585ad2a04
cb674b5c13d331fd5cef5bae7a2a67e5e0d41f7d
cmd/go: fix failing gccgo cases in TestScript/build_overlay The 'go install' command does not support the -gccgo flag. (I'm not sure why, but it doesn't.) gccgo also uses system-native assembly syntax instead of cmd/compile's Plan 9 derivative. I've added an assembly file that seems to work on Linux, but I haven't te...
[ { "path": "src/cmd/go/testdata/script/build_overlay.txt", "patch": "@@ -95,12 +95,6 @@ go build -compiler=gccgo -overlay overlay.json -o main_call_asm_gccgo$GOEXE ./ca\n exec ./main_call_asm_gccgo$GOEXE\n ! stdout .\n \n-go install -gccgo -overlay overlay.json ./test_cache\n-go list -gccgo -overlay overlay....
2020-11-18T03:54:13
huggingface/transformers
14ee2326e51cb210cec72f31b248cb722e9d5d1f
53f0c9c2906e0b0f1623bfdfb420fca1e655098d
fix: warmup_steps check for training_args (#32236)
[ { "path": "src/transformers/training_args.py", "patch": "@@ -1816,8 +1816,8 @@ def __post_init__(self):\n \" during training\"\n )\n \n- if not isinstance(self.warmup_steps, int) or self.warmup_steps < 0 or 0 < self.warmup_steps <= 1:\n- raise ValueError(\"warmu...
2024-07-31T22:34:22
nodejs/node
a2bdcbab5fea61b67f0614a0573e5ac5c2ffe004
284871862ed0fc08ed2946be9ee005c16877d05d
tools: add lowercase-name-for-primitive eslint rule Primitives should use lowercase in error message. Refs: https://github.com/nodejs/node/pull/16401 PR-URL: https://github.com/nodejs/node/pull/17568 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben...
[ { "path": "lib/.eslintrc.yaml", "patch": "@@ -3,3 +3,4 @@ rules:\n require-buffer: error\n buffer-constructor: error\n no-let-in-for-declaration: error\n+ lowercase-name-for-primitive: error", "additions": 1, "deletions": 0, "language": "YAML" }, { "path": "test/parallel/test-esli...
2017-12-09T14:22:39
vercel/next.js
b507e75e0022300d6d49b46e10b2cb60ccc320c6
7cb92a6e95e3536791def6fc3a89a4688a734539
Remove implemented todos (#38610) Went through the todos I had added while implementing the new router and removes everything that is now covered. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] ...
[ { "path": "packages/next/client/components/reducer.ts", "patch": "@@ -12,7 +12,6 @@ const fillCacheWithNewSubTreeData = (\n existingCache: CacheNode,\n flightDataPath: FlightDataPath\n ) => {\n- // TODO-APP: handle case of / (root of the tree) refetch\n const isLastEntry = flightDataPath.length <= 4\...
2022-07-13T16:51:55
huggingface/transformers
53f0c9c2906e0b0f1623bfdfb420fca1e655098d
92abe6033491dcaa958235e551f40f6b417d3771
fix: Removed unnecessary `@staticmethod` decorator (#32361) * Fixed staticmethods with self as first argument. * Fixed staticmethods with self as first argument. * Fixed staticmethods with self as first argument. * Fixed staticmethods with self as first argument.
[ { "path": "src/transformers/models/deberta/modeling_deberta.py", "patch": "@@ -104,20 +104,20 @@ class XSoftmax(torch.autograd.Function):\n ```\"\"\"\n \n @staticmethod\n- def forward(self, input, mask, dim):\n- self.dim = dim\n+ def forward(ctx, input, mask, dim):\n+ ctx.dim = d...
2024-07-31T19:56:50
golang/go
0123c9b32165302deb200683b4f855d572a934b6
21400491728520e648d8f1634605ea2b704a8fc2
[dev.typeparams] cmd/compile/internal/types2: report an error for invalid constant values This is https://golang.org/cl/271377 ported to types2. Updates #42695. Change-Id: I475bdcaeace5b0e87d4476a6d660996534289666 Reviewed-on: https://go-review.googlesource.com/c/go/+/271520 Trust: Robert Griesemer <gri@golang.org> ...
[ { "path": "src/cmd/compile/internal/types2/expr.go", "patch": "@@ -1168,7 +1168,11 @@ func (check *Checker) exprInternal(x *operand, e syntax.Expr, hint Type) exprKin\n \tcase *syntax.BasicLit:\n \t\tx.setConst(e.Kind, e.Value)\n \t\tif x.mode == invalid {\n-\t\t\tcheck.invalidASTf(e, \"invalid literal %v\"...
2020-11-19T17:09:15
nodejs/node
d64b0a85e606b2c737c27e44bbe16c8eaba85d00
560c18238b5d692feeb472192c0d5f7cfb2c2075
test: fix flaky test-child-process-pass-fd test-child-process-pass-fd needs to launch many processes simultaneously. On Fedora 24, this can result in EAGAIN "Resource temporarily unavailable" errors. When this occurs, simply try to launch a worker again. PR-URL: https://github.com/nodejs/node/pull/17598 Fixes: https:...
[ { "path": "test/sequential/test-child-process-pass-fd.js", "patch": "@@ -18,26 +18,42 @@ const { fork } = require('child_process');\n const net = require('net');\n \n const N = 80;\n+let messageCallbackCount = 0;\n \n-if (process.argv[2] !== 'child') {\n- for (let i = 0; i < N; ++i) {\n- const worker = ...
2017-12-11T02:47:48
vercel/next.js
b9ad4aa5791632c003a796075f1e08377160d830
b0d64d647aae2d896740b28c59178cab6544deff
Update Fauna examples to support new FAUNA_DB_DOMAIN environment variable (#38434) * Update Fauna examples to support new FAUNA_DB_DOMAIN environment variable. * Address PR feedback. Reduce interface refactoring * lint-fix Co-authored-by: JJ Kasper <jj@jjsweb.site>
[ { "path": "examples/with-cookie-auth-fauna/utils/fauna-auth.js", "patch": "@@ -10,7 +10,8 @@ export const serverClient = new faunadb.Client({\n // Used for any authed requests.\n export const faunaClient = (secret) =>\n new faunadb.Client({\n- secret,\n+ secret: secret,\n+ domain: process.env.FAU...
2022-07-13T15:26:12
ollama/ollama
65a5040e09d34b4e4237a4ac1996e2fb2a112bb3
d626b99b547c43e57390cec90ba2ae01adf0f429
fix generate template
[ { "path": "server/routes.go", "patch": "@@ -176,11 +176,7 @@ func (s *Server) GenerateHandler(c *gin.Context) {\n \t\tprompt = req.Prompt\n \tcase req.Prompt != \"\":\n \t\tif req.Template == \"\" {\n-\t\t\tmodel.Template, err = template.Parse(req.Template)\n-\t\t\tif err != nil {\n-\t\t\t\tc.JSON(http.Stat...
2024-07-02T23:42:17
huggingface/transformers
92abe6033491dcaa958235e551f40f6b417d3771
b46bd8b9d2ac991c0c04674957ebc0a65fb3f42b
>3-5x faster torch.compile forward compilation for autoregressive decoder models (#32227) * draft * apply changes to all relevant archs * rerun ci - check_docstrings.py failing? * fix docstring * move 2D->4D mask creation to modeling file * repo consistency * fix the batch size = 1 case - calling con...
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -13,7 +13,6 @@\n # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n # See the License for the specific language governing permissions and\n # limitations under the License.\n-\n import copy\n import inspect\n import war...
2024-07-31T18:03:07
vercel/next.js
658a2872e730bcd3c9ee6238c7b0494dd5948364
dd6ea11e2145b4f7761aa8c87a5887ffa9108311
Fix tests
[ { "path": "crates/turbopack/tests/node-file-trace.rs", "patch": "@@ -274,6 +274,9 @@ fn node_file_trace<B: Backend + 'static>(\n let input = FileSystemPathVc::new(input_fs, &input_string);\n let input_dir = FileSystemPathVc::new(input_fs, \"node-file-trace\");\n \n+ ...
2022-07-13T14:53:52
golang/go
cb674b5c13d331fd5cef5bae7a2a67e5e0d41f7d
c31540364c2bc3bdb7800cfc344d85c2c9df3893
cmd/compile,cmd/asm: fix function pointer call perf regression on ppc64 by inserting hint when using bclrl. Using this instruction as subroutine call is not the expected default behavior, and as a result confuses the branch predictor. The default expected behavior is a conditional return from a subroutine. We can c...
[ { "path": "src/cmd/compile/internal/ppc64/ssa.go", "patch": "@@ -1781,6 +1781,9 @@ func ssaGenValue(s *gc.SSAGenState, v *ssa.Value) {\n \t\tpp := s.Call(v)\n \t\tpp.To.Reg = ppc64.REG_LR\n \n+\t\t// Insert a hint this is not a subroutine return.\n+\t\tpp.SetFrom3(obj.Addr{Type: obj.TYPE_CONST, Offset: 1})\...
2020-11-13T20:44:25
nodejs/node
a893e79a69dd92a979d8a3a9282e59120cb27a69
f3cd53751ba3f917a0996a8f38c991242a8fbc76
2017-12-12 Version 9.3.0 (Current) Notable changes: * async\_hooks: - add trace events to async_hooks (Andreas Madsen) https://github.com/nodejs/node/pull/15538 - add provider types for net server (Andreas Madsen) https://github.com/nodejs/node/pull/17157 * console: - console.debug can now be used outsi...
[ { "path": "CHANGELOG.md", "patch": "@@ -29,7 +29,8 @@ release.\n </tr>\n <tr>\n <td valign=\"top\">\n-<b><a href=\"doc/changelogs/CHANGELOG_V9.md#9.2.1\">9.2.1</a></b><br/>\n+<b><a href=\"doc/changelogs/CHANGELOG_V9.md#9.3.0\">9.3.0</a></b><br/>\n+<a href=\"doc/changelogs/CHANGELOG_V9.md#9.2.1\">9.2.1</...
2017-12-12T08:09:37