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
ollama/ollama
28c3f288e2fedbeaabc8b67f04371b743cb74f62
deeac961bb78e53102d33497c210953123497bc4
client: fix trailing slash
[ { "path": "api/client.go", "patch": "@@ -44,14 +44,24 @@ func checkError(resp *http.Response, body []byte) error {\n }\n \n func ClientFromEnvironment() (*Client, error) {\n+\tdefaultPort := \"11434\"\n+\n \tscheme, hostport, ok := strings.Cut(os.Getenv(\"OLLAMA_HOST\"), \"://\")\n-\tif !ok {\n+\tswitch {\n...
2023-10-26T17:47:41
nodejs/node
e647c5d7de54e4866fbf272edbfceb8dc68e5445
a0785845bf55685d9691ea09f009bc2257e9c093
timers: fix eventloop block When there are at least 2 timers set by setInterval whose callback execution are longer than interval, the eventloop will be blocked. This commit fix the above bug. PR-URL: https://github.com/nodejs/node/pull/15072 Fixes: https://github.com/nodejs/node/issues/15068 Reviewed-By: Anna Henni...
[ { "path": "lib/timers.js", "patch": "@@ -233,7 +233,7 @@ function listOnTimeout() {\n if (diff < msecs) {\n var timeRemaining = msecs - (TimerWrap.now() - timer._idleStart);\n if (timeRemaining < 0) {\n- timeRemaining = 0;\n+ timeRemaining = 1;\n }\n this.start(time...
2017-08-29T09:35:56
ggml-org/llama.cpp
b1377188784f9aea26b8abde56d4aee8c733eec7
d2ff4e23acd0724b44e0af72fd7e37fed4c1a6a6
test-backend-ops: fix mxfp4 tests on blackwell (#18736)
[ { "path": "tests/test-backend-ops.cpp", "patch": "@@ -454,6 +454,28 @@ static bool ggml_is_view_op(enum ggml_op op) {\n return op == GGML_OP_VIEW || op == GGML_OP_RESHAPE || op == GGML_OP_PERMUTE || op == GGML_OP_TRANSPOSE;\n }\n \n+static bool backend_has_feature(ggml_backend_t backend, const char * fe...
2026-01-10T17:12:57
golang/go
b3ef90ec7304a28b89f616ced20b09f56be30cc4
92b2b8860dcc28461198c6125fbae2383161d2e5
encoding/json: implement Is on SyntaxError Allows users to check: errors.Is(err, &json.SyntaxError{}) which is the recommended way of checking for kinds of errors. Change-Id: I20dc805f20212765e9936a82d9cb7822e73ec4ef GitHub-Last-Rev: e2627ccf8e2a00cc3459bb9fee86c3c8675a33af GitHub-Pull-Request: golang/go#4121...
[ { "path": "src/encoding/json/scanner.go", "patch": "@@ -49,6 +49,12 @@ type SyntaxError struct {\n \n func (e *SyntaxError) Error() string { return e.msg }\n \n+// Is returns true if target is a SyntaxError.\n+func (e *SyntaxError) Is(target error) bool {\n+\t_, ok := target.(*SyntaxError)\n+\treturn ok\n+}...
2020-09-11T22:16:47
ollama/ollama
49443e7da5138fe9d7fc6790b94119a6e1d1f971
bb8464c0d2ad3221dd8586212b9c8f2f1b2a8a52
fix typo in `README.md`
[ { "path": "README.md", "patch": "@@ -88,7 +88,7 @@ See the [guide](docs/import.md) on importing models for more information.\n \n ### Customize a prompt\n \n-Models from the Ollama library can be customized with a prompt. The example\n+Models from the Ollama library can be customized with a prompt. For exam...
2023-10-25T23:19:21
huggingface/transformers
c9693db2fcd6876bfc4b00dd9088808896fff94c
42fed15c81bbba2af8e4dd9f03930ce011eafa7e
Phi-3 (#30423) * chore(root): Initial commit of Phi-3 files. * fix(root): Fixes Phi-3 missing on readme. * fix(root): Ensures files are consistent. * fix(phi3): Fixes unit tests. * fix(tests): Fixes style of phi-3 test file. * chore(tests): Adds integration tests for Phi-3. * fix(phi3): Removes addit...
[ { "path": "docs/source/en/_toctree.yml", "patch": "@@ -460,6 +460,8 @@\n title: Persimmon\n - local: model_doc/phi\n title: Phi\n+ - local: model_doc/phi3\n+ title: Phi-3\n - local: model_doc/phobert\n title: PhoBERT\n - local: model_doc/plbart", "ad...
2024-04-24T15:32:09
nodejs/node
70832bc3538d8b4e1c67ce8c49617c6e06fe3187
acb9b8f73ce17292fce43a1bc376311accd0e937
build: add V8 embedder version string After this commit, `process.versions.v8` will look like: "6.0.287.53-node.0". The goal is that everytime we apply a non-official patch to `deps/v8`, we increment our own number instead of V8's patch level. This number must be set back to 0 after major V8 updates. Fixes: https://g...
[ { "path": "common.gypi", "patch": "@@ -25,6 +25,10 @@\n # Default to -O0 for debug builds.\n 'v8_optimized_debug%': 0,\n \n+ # Reset this number to 0 on major V8 upgrades.\n+ # Increment by one for each non-official patch applied to deps/v8.\n+ 'v8_embedder_string': '-node.0',\n+\n # En...
2017-09-29T11:39:26
ggml-org/llama.cpp
23f82f242072ba56db8335484f8fe8bcb9208feb
2656c0d2652964a66012426f5ec47b283a094cc5
preset: allow named remote preset (#18728) * preset: allow named remote preset * nits: fix docs * cont docs
[ { "path": "common/arg.cpp", "patch": "@@ -281,12 +281,20 @@ static std::string clean_file_name(const std::string & fname) {\n static bool common_params_handle_remote_preset(common_params & params, llama_example ex) {\n GGML_ASSERT(!params.model.hf_repo.empty());\n \n+ // the returned hf_repo is witho...
2026-01-10T14:12:29
golang/go
92b2b8860dcc28461198c6125fbae2383161d2e5
806f478499b57c5167fb5301101961b7563903d2
cmd/go: avoid flag.FlagSet.VisitAll at init time We want to error early if GOFLAGS contains any flag that isn't known to any cmd/go command. Thus, at init time we would recursively use VisitAll on each of the flagsets to populate a map of all registered flags. This was unfortunate, as populating said map constituted ...
[ { "path": "src/cmd/go/init_test.go", "patch": "@@ -7,6 +7,7 @@ package main_test\n import (\n \t\"internal/testenv\"\n \t\"os/exec\"\n+\t\"sync/atomic\"\n \t\"testing\"\n )\n \n@@ -15,20 +16,27 @@ import (\n // the benchmark if any changes were done.\n func BenchmarkExecGoEnv(b *testing.B) {\n \ttestenv.Mus...
2020-08-15T14:20:50
ollama/ollama
bb8464c0d2ad3221dd8586212b9c8f2f1b2a8a52
daa5bb4473daf5f0b4a8cc60158bf80d1394d662
update golang.org/x/net fixes CVE-2023-3978,CVE-2023-39325,CVE-2023-44487 (#855)
[ { "path": "go.mod", "patch": "@@ -39,12 +39,12 @@ require (\n \tgithub.com/twitchyliquid64/golang-asm v0.15.1 // indirect\n \tgithub.com/ugorji/go/codec v1.2.11 // indirect\n \tgolang.org/x/arch v0.3.0 // indirect\n-\tgolang.org/x/crypto v0.10.0\n+\tgolang.org/x/crypto v0.14.0\n \tgolang.org/x/exp v0.0.0-20...
2023-10-25T23:17:24
huggingface/transformers
d26c14139c373b2265a4759775687b67e9fb03eb
37fa1f654f17b68bbe30440c64e611f1a4d55bc7
[SegGPT] Fix loss calculation (#30421) * Fixed main train issues * Added loss test * Update src/transformers/models/seggpt/modeling_seggpt.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> * Added missing labels arg in SegGptModel forward * Fixed typo * Added slow test to...
[ { "path": "src/transformers/models/seggpt/modeling_seggpt.py", "patch": "@@ -753,11 +753,15 @@ def forward(\n bool_masked_pos: Optional[torch.BoolTensor] = None,\n feature_ensemble: Optional[bool] = None,\n embedding_type: Optional[str] = None,\n+ labels: Optional[torch.FloatT...
2024-04-24T14:24:34
nodejs/node
acb9b8f73ce17292fce43a1bc376311accd0e937
9960e53c5490c5ec678ea8e5095cb8ca76b641fc
deps: backport b096c44 from upstream V8 Original commit message: [build] Introduce an embedder version string Sometimes, the embedder might want to merge a fix to an abandoned branch or to a supported branch but the fix is not relevant to Chromium. This adds a new version string that the embedder can...
[ { "path": "deps/v8/BUILD.gn", "patch": "@@ -39,6 +39,9 @@ declare_args() {\n # Embeds the given script into the snapshot.\n v8_embed_script = \"\"\n \n+ # Allows the embedder to add a custom suffix to the version string.\n+ v8_embedder_string = \"\"\n+\n # Sets -dENABLE_DISASSEMBLER.\n v8_enable_d...
2017-09-29T11:28:22
golang/go
806f478499b57c5167fb5301101961b7563903d2
2c95e3a6a8377ca9c72608c25b4cf2506baf782f
cmd/compile: don't report not enough args error if call is undefined Fixes #38745 Change-Id: I2fbd8b512a8cf911b81a087162c74416116efea5 Reviewed-on: https://go-review.googlesource.com/c/go/+/253678 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew ...
[ { "path": "src/cmd/compile/internal/gc/typecheck.go", "patch": "@@ -2667,7 +2667,7 @@ func typecheckaste(op Op, call *Node, isddd bool, tstruct *types.Type, nl Nodes,\n \treturn\n \n notenough:\n-\tif n == nil || !n.Diag() {\n+\tif n == nil || (!n.Diag() && n.Type != nil) {\n \t\tdetails := errorDetails(nl,...
2020-09-09T09:25:48
rust-lang/rust
059c0abeee26f6f38eb24190ae00aa8d5848a778
96cfc75584359ae7ad11cc45968059f29e7b44b7
Fix method name in `TyCtxt::hir_crate()` documentation
[ { "path": "compiler/rustc_middle/src/query/mod.rs", "patch": "@@ -143,11 +143,11 @@ rustc_queries! {\n \n /// Represents crate as a whole (as distinct from the top-level crate module).\n ///\n- /// If you call `hir_crate` (e.g., indirectly by calling `tcx.hir().krate()`),\n+ /// If you call `h...
2025-02-27T19:23:54
huggingface/transformers
37fa1f654f17b68bbe30440c64e611f1a4d55bc7
5d64ae9d75690e93e9bd455ce6fa47027e294654
fix jamba slow foward for multi-gpu (#30418) * fix jamba slow foward for multi-gpu * remove comm * oups * style
[ { "path": "src/transformers/models/jamba/modeling_jamba.py", "patch": "@@ -919,6 +919,8 @@ def slow_forward(self, input_states, cache_params: HybridMambaAttentionDynamicCa\n else:\n ssm_state = cache_params.ssm_states[self.layer_idx]\n \n+ ssm_state = ssm_state.to(hidd...
2024-04-24T12:19:08
ollama/ollama
b0c9cd0f3bc6b41b4053fe122192237fa8b68eae
77f61c630135d90aff31b294fdb042ea1e4e9395
fix metal assertion errors
[ { "path": "llm/llama.cpp/generate_darwin_amd64.go", "patch": "@@ -13,6 +13,7 @@ package llm\n \n //go:generate git submodule update --force gguf\n //go:generate git -C gguf apply ../patches/0001-update-default-log-target.patch\n+//go:generate git -C gguf apply ../patches/0001-metal-handle-ggml_scale-for-n-4...
2023-10-24T07:32:36
ggml-org/llama.cpp
9ac2693a302adab4b5b44fb1fef52c9e6d14a770
a61c8bc3bfae4f86b8205535bcea73f476b28c2c
server: fix n_cmpl not skipping processing prompt (#18663) * server: fix n_cmpl not skipping processing * fix infinite loop on empty batch * cont : init child samplers + modify child logic * cont : cleanup * cont : improve n_cmpl logic - launch the parent task first so it finds the slot with best cache - parent t...
[ { "path": "tools/server/server-context.cpp", "patch": "@@ -79,6 +79,8 @@ struct server_slot {\n \n common_speculative * spec = nullptr;\n \n+ // TODO: move members that belong to the task (such as `generated_text`, `has_new_line`) to task_results_state\n+ // see https://github.com/ggml-org/l...
2026-01-09T23:00:41
nodejs/node
5d99a9bf65258406c5ad0566842c62d421fab09a
df5dc2da39f8cd043e51ebdf4f81ee243ba8bb45
http: emit close as the last event in the client Emit close event after all other events in the client, e.g. error will be emitted before close. PR-URL: https://github.com/nodejs/node/pull/15588 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pi...
[ { "path": "lib/_http_client.js", "patch": "@@ -346,7 +346,6 @@ function socketCloseListener() {\n // NOTE: It's important to get parser here, because it could be freed by\n // the `socketOnData`.\n var parser = socket.parser;\n- req.emit('close');\n if (req.res && req.res.readable) {\n // Socke...
2017-09-24T18:27:44
huggingface/transformers
5d64ae9d75690e93e9bd455ce6fa47027e294654
16c8e176f9a9f813654f8b3ec1f60b750ab2cf45
fix uncaught init of linear layer in clip's/siglip's for image classification models (#30435) * fix clip's/siglip's _init_weights to reflect linear layers in "for image classification" * trigger slow tests
[ { "path": "src/transformers/models/clip/modeling_clip.py", "patch": "@@ -450,6 +450,11 @@ def _init_weights(self, module):\n module.text_projection.weight,\n std=self.config.hidden_size**-0.5 * self.config.initializer_factor,\n )\n+ elif isinstance(module, ...
2024-04-24T12:03:30
rust-lang/rust
ef1114a964bcb15ba5c60551f925d287eb153bb9
00f245915b0c7839d42c26f9628220c4f1b93bf6
Remove `NtPat`. The one notable test change is `tests/ui/macros/trace_faulty_macros.rs`. This commit removes the complicated `Interpolated` handling in `expected_expression_found` that results in a longer error message. But I think the new, shorter message is actually an improvement. The original complaint was in #71...
[ { "path": "compiler/rustc_ast/src/ast_traits.rs", "patch": "@@ -202,7 +202,6 @@ impl HasTokens for Nonterminal {\n Nonterminal::NtItem(item) => item.tokens(),\n Nonterminal::NtStmt(stmt) => stmt.tokens(),\n Nonterminal::NtExpr(expr) | Nonterminal::NtLiteral(expr) => expr....
2024-04-18T02:44:11
golang/go
2c95e3a6a8377ca9c72608c25b4cf2506baf782f
d7384f36121d52191097af50d6dc12c0eb08fd75
cmd/compile: use clearer error message for stuct literal This CL changes "T literal.M" error message to "T{...}.M". It's clearer expression and focusing user on actual issue. Updates #38745 Change-Id: I84b455a86742f37e0bde5bf390aa02984eecc3c9 Reviewed-on: https://go-review.googlesource.com/c/go/+/253677 Run-TryBot: ...
[ { "path": "src/cmd/compile/internal/gc/fmt.go", "patch": "@@ -1407,7 +1407,7 @@ func (n *Node) exprfmt(s fmt.State, prec int, mode fmtMode) {\n \t\t\t\treturn\n \t\t\t}\n \t\t\tif n.Right != nil {\n-\t\t\t\tmode.Fprintf(s, \"%v literal\", n.Right)\n+\t\t\t\tmode.Fprintf(s, \"%v{%s}\", n.Right, ellipsisIf(n....
2020-09-09T04:09:01
nodejs/node
df5dc2da39f8cd043e51ebdf4f81ee243ba8bb45
a5262f1a3b89abe2eca20fcc498d7d57612ad037
test: test make doc and verify toc PR-URL: https://github.com/nodejs/node/pull/16208 Fixes: https://github.com/nodejs/build/issues/887 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
[ { "path": "Makefile", "patch": "@@ -200,6 +200,7 @@ else\n test: all\n \t$(MAKE) build-addons\n \t$(MAKE) build-addons-napi\n+\t$(MAKE) doc\n \t$(MAKE) cctest\n \t$(PYTHON) tools/test.py --mode=release -J \\\n \t\t$(CI_ASYNC_HOOKS) \\\n@@ -379,7 +380,7 @@ test-ci-js: | clear-stalled\n \tfi\n \n test-ci: LOG...
2017-10-15T00:57:10
ggml-org/llama.cpp
a61c8bc3bfae4f86b8205535bcea73f476b28c2c
593da7fa49503b68f9f01700be9f508f1e528992
mtmd: Add Gemma3n multimodal support with MobileNetV5 vision encoder (#18256) * Add Gemma3nVisionModel - MobileNetV5 vision encoder convertor to convert_hf_to_gguf.py. Add gemma3n to vision projectors in gguf-py/gguf/constants.py. * Add mobilenetv5 impl * Fix comments, remove unused vars * Fix permute and remove tr...
[ { "path": "convert_hf_to_gguf.py", "patch": "@@ -528,7 +528,11 @@ def generate_extra_tensors(self) -> Iterable[tuple[str, Tensor]]:\n return ()\n \n def prepare_tensors(self):\n- max_name_len = max(len(s) for _, s in self.tensor_map.mapping.values()) + len(\".weight,\")\n+ # Handle...
2026-01-09T22:42:38
huggingface/transformers
9a4a119c10bde6a19e45f0a2cf01e9a860c75450
767e3518403c9e9eeb84cbbaaad168bf2a64c548
[`Llava`] + CIs fix red cis and llava integration tests (#30440) * nit * nit and fmt skip * fixup * Update src/transformers/convert_slow_tokenizer.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> * set to true --------- Co-authored-by: amyeroberts <22614925+amyerobert...
[ { "path": "src/transformers/convert_slow_tokenizer.py", "patch": "@@ -46,7 +46,7 @@ def import_protobuf(error_message=\"\"):\n def _get_prepend_scheme(add_prefix_space: bool, original_tokenizer) -> str:\n if add_prefix_space:\n prepend_scheme = \"always\"\n- if hasattr(original_tokenizer,...
2024-04-24T08:51:35
rust-lang/rust
28555d1231beb1546b6ac5e1f81780db00aa46aa
53a1ff70e87ba92caddfbcc9feee8bc89e4a02fc
Split must_use_unit test into an unfixable part With the attribute refactor in rustc, making this case machine applicable is not easily possible anymore. This splits up the tests properly.
[ { "path": "tests/ui/must_use_unit.fixed", "patch": "@@ -26,11 +26,3 @@ fn main() {\n fn foo() {}\n );\n }\n-\n-#[cfg_attr(all(), deprecated)]\n-fn issue_12320() {}\n-//~^ must_use_unit\n-\n-#[cfg_attr(all(), deprecated, doc = \"foo\")]\n-fn issue_12320_2() {}\n-//~^ must_use_unit", "addition...
2025-02-26T18:47:30
golang/go
d7384f36121d52191097af50d6dc12c0eb08fd75
07c1788357cfe6a4ee5f6f6a54d4fe9f579fa844
os: implement File.Chmod on Windows Fixes: #39606 Change-Id: I4def67ef18bd3ff866b140f6e76cdabe5d51a1c5 Reviewed-on: https://go-review.googlesource.com/c/go/+/250077 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
[ { "path": "src/internal/poll/fd_posix.go", "patch": "@@ -29,17 +29,6 @@ func (fd *FD) Shutdown(how int) error {\n \treturn syscall.Shutdown(fd.Sysfd, how)\n }\n \n-// Fchmod wraps syscall.Fchmod.\n-func (fd *FD) Fchmod(mode uint32) error {\n-\tif err := fd.incref(); err != nil {\n-\t\treturn err\n-\t}\n-\td...
2020-08-16T11:48:09
nodejs/node
a5262f1a3b89abe2eca20fcc498d7d57612ad037
e6dfd59be02c329228c050ad904e1eb046ff379f
test: add common.projectDir Implement common.projectDir which points to the project directory. PR-URL: https://github.com/nodejs/node/pull/16208 Fixes: https://github.com/nodejs/build/issues/887 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Acker...
[ { "path": "test/common/README.md", "patch": "@@ -337,6 +337,11 @@ original state after calling [`common.hijackStdOut()`][].\n \n Path to the 'root' directory. either `/` or `c:\\\\` (windows)\n \n+### projectDir\n+* return [&lt;String>]\n+\n+Path to the project directory.\n+\n ### skip(msg)\n * `msg` [&lt;S...
2017-10-15T00:56:05
ggml-org/llama.cpp
ec8fd7876b6195bd8582eba4f1debb23d13fde81
a180ba78c710f52af7c7edee562fbe98c36d6ddd
Webui/file upload (#18694) * webui: fix restrictive file type validation * webui: simplify file processing logic * chore: update webui build output * webui: remove file picker extension whitelist (1/2) * webui: remove file picker extension whitelist (2/2) * chore: update webui build output * refactor: Cleanup *...
[ { "path": "tools/server/webui/src/lib/components/app/chat/ChatForm/ChatForm.svelte", "patch": "@@ -10,21 +10,11 @@\n \timport { INPUT_CLASSES } from '$lib/constants/input-classes';\n \timport { SETTING_CONFIG_DEFAULT } from '$lib/constants/settings-config';\n \timport { config } from '$lib/stores/settings.s...
2026-01-09T15:45:32
huggingface/transformers
767e3518403c9e9eeb84cbbaaad168bf2a64c548
89c510d842a58e5d45e27129bec5c35c97951e1f
Fix YOLOS image processor resizing (#30436) * Add test for square image that fails * Fix for square images * Extend test cases * Fix resizing in tests * Style fixup
[ { "path": "src/transformers/models/yolos/image_processing_yolos.py", "patch": "@@ -120,7 +120,7 @@ def get_size_with_aspect_ratio(image_size, size, max_size=None) -> Tuple[int, in\n if max_original_size / min_original_size * size > max_size:\n size = int(round(max_size * min_original_siz...
2024-04-24T08:50:17
golang/go
b459bc8152210c14b66e23351690ff774cd68d2c
1ed4f12f4a6b9d783cf9a6fc3a292a433b8539c6
cmd/go: make 'go mod download' update go.sum after downloads are complete 'go mod download' calls WriteGoMod once via modload.ListModules when it loads the build list. This saves sums for go.mod files needed by MVS, but the write occurs before any zip files are downloaded. With this change, 'go mod download' calls Wr...
[ { "path": "src/cmd/go/internal/modcmd/download.go", "patch": "@@ -187,4 +187,7 @@ func runDownload(ctx context.Context, cmd *base.Command, args []string) {\n \t\t}\n \t\tbase.ExitIfErrors()\n \t}\n+\n+\t// Update go.mod and especially go.sum if needed.\n+\tmodload.WriteGoMod()\n }", "additions": 3, ...
2020-09-11T13:31:30
ggml-org/llama.cpp
53eb9435da3affa12a38a8b0fb29081698a8d1cc
d3435efc8a2f926f1d7a5f2a11ac161b798c355a
server : fix timing of prompt/generation (#18713)
[ { "path": "tools/server/server-context.cpp", "patch": "@@ -2615,10 +2615,6 @@ struct server_context_impl {\n // on successful decode, restore the original batch size\n n_batch = llama_n_batch(ctx);\n \n- // technically, measuring the time here excludes the sampling time fo...
2026-01-09T10:59:50
huggingface/transformers
89c510d842a58e5d45e27129bec5c35c97951e1f
fc34f842cc497bedee57da121eaadfd2caa763d4
Add llama3 (#30334) * nuke * add co-author * add co-author * update card * fixup and fix copies to please our ci * nit fixup * super small nits * remove tokenizer_path from call to `write_model` * always safe serialize by default --------- Co-authored-by: pcuenca <pcuenca@users.noreply.gi...
[ { "path": "docs/source/en/_toctree.yml", "patch": "@@ -394,6 +394,8 @@\n title: LLaMA\n - local: model_doc/llama2\n title: Llama2\n+ - local: model_doc/llama3\n+ title: Llama3\n - local: model_doc/longformer\n title: Longformer\n - local: model_doc/longt...
2024-04-24T08:11:19
ollama/ollama
75bee074b60737ef3183dd000663f227b1434e28
533d76368ce8c89ee33941484e50df6ac5533a52
fix: nil pointer dereference
[ { "path": "server/auth.go", "patch": "@@ -106,6 +106,7 @@ func getAuthToken(ctx context.Context, redirData AuthRedirect) (string, error) {\n \tresp, err := makeRequest(ctx, \"GET\", redirectURL, headers, nil, nil)\n \tif err != nil {\n \t\tlog.Printf(\"couldn't get token: %q\", err)\n+\t\treturn \"\", err\n...
2023-10-20T23:52:48
rust-lang/rust
6ea4823733254432aee255465177b8e53f01a79d
96cfc75584359ae7ad11cc45968059f29e7b44b7
Fix 32-bit MSVC CI By throwing more hardware at it.
[ { "path": "src/ci/github-actions/jobs.yml", "patch": "@@ -474,13 +474,13 @@ auto:\n env:\n RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc --enable-sanitizers\n SCRIPT: make ci-msvc-py\n- <<: *job-windows\n+ <<: *job-windows-8c\n \n - name: i686-msvc-2\n env:\n RUST_CONF...
2025-02-27T20:36:28
nodejs/node
b3f9b38174bd2fabd85055a456d06176000fc853
19ab26189ea6ab91a943042f32f40558c6edb67a
n-api: check against invalid handle scope usage Fixes: https://github.com/nodejs/node/issues/16175 PR-URL: https://github.com/nodejs/node/pull/16201 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin ...
[ { "path": "src/node_api.cc", "patch": "@@ -42,6 +42,7 @@ struct napi_env__ {\n v8::Persistent<v8::ObjectTemplate> function_data_template;\n v8::Persistent<v8::ObjectTemplate> accessor_data_template;\n napi_extended_error_info last_error;\n+ int open_handle_scopes = 0;\n };\n \n #define ENV_OBJECT_TEM...
2017-10-14T11:02:02
ggml-org/llama.cpp
8ece3836b400dd8d89021ad2cc6e57843ced8378
046d5fd44e3505ab9c6d065ab65541fc2fdfd4f2
common: support remote preset (#18520) * arg: support remote preset * proof reading * allow one HF repo to point to multiple HF repos * docs: mention about multiple GGUF use case * correct clean_file_name * download: also return HTTP status code * fix case with cache file used * fix --offline option
[ { "path": "common/arg.cpp", "patch": "@@ -6,6 +6,7 @@\n #include \"log.h\"\n #include \"sampling.h\"\n #include \"download.h\"\n+#include \"preset.h\"\n \n // fix problem with std::min and std::max\n #if defined(_WIN32)\n@@ -268,6 +269,46 @@ static void parse_tensor_buffer_overrides(const std::string & valu...
2026-01-08T21:35:40
golang/go
ffd95aadcddc34ec2c83971346f04cf7234e0fca
a531bd5a59177dfef354df8b5b5b529a2a55d015
cmd/link: put read-only data in __DATA_CONST segment On darwin, we put read-only data in __TEXT segment on AMD64 in exe (non-PIE) buildmode, and in __DATA on everywhere else. This is not ideal: things in __DATA segment are not read-only, and being mapped R/W may use more run-time resources. In fact, newer darwin syst...
[ { "path": "src/cmd/link/internal/ld/data.go", "patch": "@@ -930,7 +930,7 @@ func writeBlock(ctxt *Link, out *OutBuf, ldr *loader.Loader, syms []loader.Sym,\n \t\t\tbreak\n \t\t}\n \t\tif val < addr {\n-\t\t\tldr.Errorf(s, \"phase error: addr=%#x but sym=%#x type=%d\", addr, val, ldr.SymType(s))\n+\t\t\tldr....
2020-09-03T16:59:09
huggingface/transformers
e34da3ee3c9d2d628fdbeb60cee45c4f8f32945a
12c39e5693f7223be162a1e84de026a6545029eb
[`LlamaTokenizerFast`] Refactor default llama (#28881) * push legacy to fast as well * super strange * Update src/transformers/convert_slow_tokenizer.py * make sure we are BC * fix Llama test * nit * revert * more test * style * update * small update w.r.t tokenizers * nit * don't s...
[ { "path": "src/transformers/convert_slow_tokenizer.py", "patch": "@@ -105,7 +105,7 @@ def extract(self, vocab_scores=None) -> Tuple[Dict[str, int], List[Tuple]]:\n \n # there is a missing token in the vocab. We have to do this to support merges\n # \"<0x09>\" is the bytefallback for `\\t`\n-...
2024-04-23T21:12:59
nodejs/node
19ab26189ea6ab91a943042f32f40558c6edb67a
9be3d99b2b94d8a08b5a36efb06f3a6fd196805a
doc: clarify os.cpus() returns logical CPU cores Original text implied it returns physical cpu cores. This is misleading as `os.cpus().length` is often used to get the CPU core count in Node.js. In reality that will return the thread count which may not be what the user intended. PR-URL: https://github.com/nodejs/nod...
[ { "path": "doc/api/os.md", "patch": "@@ -58,7 +58,7 @@ added: v0.3.3\n * Returns: {Array}\n \n The `os.cpus()` method returns an array of objects containing information about\n-each CPU/core installed.\n+each logical CPU core.\n \n The properties included on each object include:\n ", "additions": 1, ...
2017-10-18T05:30:19
ggml-org/llama.cpp
480160d47297df43b43746294963476fc0a6e10f
15bff84bf56651d6f991f166a2bf0f362996f7f9
ggml-webgpu: Fix GGML_MEM_ALIGN to 8 for emscripten. (#18628) * Fix GGML_MEM_ALIGN to 8 for emscripten. * Add a comment explaining the need for GGML_MEM_ALIGN == 8 in 64-bit wasm with emscripten
[ { "path": "ggml/include/ggml.h", "patch": "@@ -234,6 +234,11 @@\n \n #if UINTPTR_MAX == 0xFFFFFFFF\n #define GGML_MEM_ALIGN 4\n+#elif defined(__EMSCRIPTEN__)\n+// emscripten uses max_align_t == 8, so we need GGML_MEM_ALIGN == 8 for 64-bit wasm.\n+// (for 32-bit wasm, the first conditional is true and GG...
2026-01-08T16:36:42
huggingface/transformers
12c39e5693f7223be162a1e84de026a6545029eb
b8b1e442e3bc43c97a68152313d3f84e3e0d03a0
Fix use_cache for xla fsdp (#30353) * Fix use_cache for xla fsdp * Fix linters
[ { "path": "src/transformers/trainer.py", "patch": "@@ -1682,6 +1682,12 @@ def _wrap_model(self, model, training=True, dataloader=None):\n )\n fsdp_kwargs = self.args.xla_fsdp_config\n if self.args.fsdp_config[\"xla_fsdp_grad_ckpt\"]:\n+ if model.config....
2024-04-23T17:01:35
ollama/ollama
459f4a7889f4acf30ef2542287becf2308ff51ef
cbfff4f86869374026e0f5fddc86269f95dea8c7
fix: ollama host for hostname
[ { "path": "api/client.go", "patch": "@@ -52,8 +52,10 @@ func ClientFromEnvironment() (*Client, error) {\n \thost, port, err := net.SplitHostPort(hostport)\n \tif err != nil {\n \t\thost, port = \"127.0.0.1\", \"11434\"\n-\t\tif ip := net.ParseIP(strings.Trim(os.Getenv(\"OLLAMA_HOST\"), \"[]\")); ip != nil {...
2023-10-20T18:32:28
rust-lang/rust
063d6aef0eb8fe81d83a896400c15c6fe9cf0c34
4a9b8c6415c59ef81c023e1f1de01b7bdb3d9675
macro_use_import: Don't check is attribute comes from expansion It is not possible to write a declarative macro, that produces an attribute w/o an item attached to it. This means that the `check_item` will already insert the span in the map, if it came from an expansion. So additionally checking if the macro came from...
[ { "path": "clippy_lints/src/macro_use.rs", "patch": "@@ -117,11 +117,6 @@ impl LateLintPass<'_> for MacroUseImports {\n self.push_unique_macro_pat_ty(cx, item.span);\n }\n }\n- fn check_attribute(&mut self, cx: &LateContext<'_>, attr: &hir::Attribute) {\n- if attr.span.from...
2025-02-27T19:36:19
golang/go
9214677e7df1e6130249bc83d721130b00d829c4
6e3df749b1058ecfaf5f6601f6f8678c0971da8e
cmd/go: refactor modload.Import for better -mod=readonly errors When -mod=readonly is set, Import will now allow imports from replacements without explicit requirements. With -mod=mod, this would add a new requirement but does not trigger a module lookup, so it's determinisitic. Before reporting an error for an unkno...
[ { "path": "src/cmd/go/internal/modload/import.go", "patch": "@@ -107,6 +107,25 @@ func (e *AmbiguousImportError) Error() string {\n \n var _ load.ImportPathError = &AmbiguousImportError{}\n \n+type invalidImportError struct {\n+\timportPath string\n+\terr error\n+}\n+\n+func (e *invalidImportError) I...
2020-09-09T20:41:55
nodejs/node
9be3d99b2b94d8a08b5a36efb06f3a6fd196805a
978629ca1240b9f2038390c7e960f3d226daa4e8
test: fix inspector tests The inspector tests should not be in the parallel directory as they likely all (or certainly almost all) use static ports, so port collisions will happen. This moves them all to sequential. We can move them back on a case-by-case basis. They were run sequentially when they were in the inspec...
[ { "path": "test/parallel/parallel.status", "patch": "@@ -7,9 +7,6 @@ prefix parallel\n [true] # This section applies to all platforms\n \n [$system==win32]\n-test-inspector-bindings : PASS, FLAKY\n-test-inspector-debug-end : PASS, FLAKY\n-test-inspector-stop-profile-after-done: PA...
2017-10-18T04:50:25
ggml-org/llama.cpp
15bff84bf56651d6f991f166a2bf0f362996f7f9
2524c2616458c7d6ee62fa4b4fa17e5091833544
ggml webgpu: initial flashattention implementation (#18610) * FlashAttention (#13) * Add inplace softmax * Move rms_norm to split row approach * Update debug for supports_op * clean up debug statements * neg f16xf32xip builds and runs, havent actually ran a model that uses neg kernel yet though * neg passes back...
[ { "path": ".github/workflows/build.yml", "patch": "@@ -152,13 +152,13 @@ jobs:\n DAWN_VERSION=\"v2.0.0\"\n DAWN_OWNER=\"reeselevine\"\n DAWN_REPO=\"dawn\"\n- DAWN_ASSET_NAME=\"Dawn-5e9a4865b1635796ccc77dd30057f2b4002a1355-macos-latest-Release.zip\"\n- echo \"F...
2026-01-08T16:23:39
huggingface/transformers
416fdbad7a79e6b6875fa9384a9f4408ef179742
d179b9dc78f2d945b9b475f81a0857e64ce181c9
Fix LayoutLMv2 init issue and doctest (#30278) * fix * try suggestion * update --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
[ { "path": "src/transformers/models/layoutlmv2/modeling_layoutlmv2.py", "patch": "@@ -503,6 +503,9 @@ def _init_weights(self, module):\n elif isinstance(module, nn.LayerNorm):\n module.bias.data.zero_()\n module.weight.data.fill_(1.0)\n+ elif isinstance(module, LayoutLM...
2024-04-23T13:33:17
ollama/ollama
7ed5a39bc7d41d809d0bcbc010344286cad7a6bc
cc1d03f4ec655cbbbd3c36084fb9d09a0f4aab5c
simpler check for model loading compatibility errors
[ { "path": "llm/llama.go", "patch": "@@ -18,7 +18,6 @@ import (\n \t\"path\"\n \t\"path/filepath\"\n \t\"runtime\"\n-\t\"slices\"\n \t\"strconv\"\n \t\"strings\"\n \t\"sync\"\n@@ -286,7 +285,7 @@ func (w *StatusWriter) Write(b []byte) (int, error) {\n \treturn os.Stderr.Write(b)\n }\n \n-func newLlama(model ...
2023-10-19T18:50:45
ggml-org/llama.cpp
2524c2616458c7d6ee62fa4b4fa17e5091833544
cb14b069955f12992f6c47be98a061f23ea13cf5
vulkan: fix push constant size for quantize_q8_1 (#18687) I added an assert to catch further mismatches, and it found several. Fix those, too.
[ { "path": "ggml/src/ggml-vulkan/ggml-vulkan.cpp", "patch": "@@ -1505,6 +1505,11 @@ template <> void init_pushconst_fastdiv(vk_op_sum_rows_push_constants &p) {\n init_fastdiv_values(p.ne01, p.ne0_1mp, p.ne0_1L);\n }\n \n+struct vk_quantize_q8_1_push_constants {\n+ uint32_t ne;\n+ uint32_t n...
2026-01-08T14:40:58
nodejs/node
c3eeb28c6d28bf2c9292a39adb76ac2c4e6b59b5
d64e94ba5bb13519d20b44d0353bc1439639e96b
test: http2 client settings errors Refs: https://github.com/nodejs/node/issues/14985 PR-URL: https://github.com/nodejs/node/pull/16096 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
[ { "path": "test/parallel/test-http2-client-settings-errors.js", "patch": "@@ -0,0 +1,84 @@\n+'use strict';\n+\n+const {\n+ constants,\n+ Http2Session,\n+ nghttp2ErrorString\n+} = process.binding('http2');\n+const common = require('../common');\n+if (!common.hasCrypto)\n+ common.skip('missing crypto');\n...
2017-10-09T03:07:10
golang/go
6e3df749b1058ecfaf5f6601f6f8678c0971da8e
b22af9b407dc29d1a733976484904ad0ab168466
cmd/go: refactor -mod flag parsing Keep track of whether the -mod flag was set explicitly. When -mod=readonly is the default, we'll want to adjust our error messages if it's set explicitly. Also, register the -mod, -modcacherw, and -modfile flags in functions in internal/base instead of internal/work. 'go mod' comman...
[ { "path": "src/cmd/go/internal/base/flag.go", "patch": "@@ -28,13 +28,42 @@ func (v *StringsFlag) String() string {\n \treturn \"<StringsFlag>\"\n }\n \n+// explicitStringFlag is like a regular string flag, but it also tracks whether\n+// the string was set explicitly to a non-empty value.\n+type explicitSt...
2020-09-09T20:35:56
huggingface/transformers
d179b9dc78f2d945b9b475f81a0857e64ce181c9
4b63d0139e8619cad89964065b207d8c9e83889f
FIX: re-add bnb on docker image (#30427) Update Dockerfile
[ { "path": "docker/transformers-all-latest-gpu/Dockerfile", "patch": "@@ -45,6 +45,9 @@ RUN python3 -m pip install --no-cache-dir git+https://github.com/huggingface/opt\n # For video model testing\n RUN python3 -m pip install --no-cache-dir decord av==9.2.0\n \n+# Some slow tests require bnb\n+RUN python3 -m...
2024-04-23T13:32:54
ollama/ollama
7e547c6833ea7807304bb7d9896935574ae6aca7
689842b9ff7ddc8c92ad42b576090dcde36f17cf
s/message/error/
[ { "path": "server/routes.go", "patch": "@@ -350,7 +350,7 @@ func PushModelHandler(c *gin.Context) {\n func CreateModelHandler(c *gin.Context) {\n \tvar req api.CreateRequest\n \tif err := c.ShouldBindJSON(&req); err != nil {\n-\t\tc.JSON(http.StatusBadRequest, gin.H{\"message\": err.Error()})\n+\t\tc.JSON(h...
2023-10-18T22:56:56
rust-lang/rust
df903a55dd46c49204a2157786c67af93f4f3573
8c16ded966f92e7dbcc06cf43bd2a9eae815159f
fix doc tests
[ { "path": "src/tools/rust-analyzer/crates/hir-def/Cargo.toml", "patch": "@@ -10,7 +10,6 @@ license.workspace = true\n rust-version.workspace = true\n \n [lib]\n-doctest = false\n \n [dependencies]\n arrayvec.workspace = true", "additions": 0, "deletions": 1, "language": "Unknown" }, { "p...
2025-02-26T23:59:13
golang/go
8098dbb30e3d0d0b4d467f823c4bbdb8dcefc92f
07d19b2597af253ed78ef43ba6e7a49db9a8f4ba
runtime: update docs for GOMAXPROCS https://github.com/golang/go/blob/master/doc/effective_go.html#L3211 is used to update the docs comment for `GOMAXPROCS` function. Fixes #41275 Change-Id: I39f58e93a267c6e9f3ac6638ed51acbe5284ada2 GitHub-Last-Rev: e45c8ac5873979397d747838fd8d41e252aec489 GitHub-Pull-Request: golan...
[ { "path": "src/runtime/debug.go", "patch": "@@ -10,9 +10,8 @@ import (\n )\n \n // GOMAXPROCS sets the maximum number of CPUs that can be executing\n-// simultaneously and returns the previous setting. If n < 1, it does not\n-// change the current setting.\n-// The number of logical CPUs on the local machin...
2020-09-10T10:08:21
ggml-org/llama.cpp
cb14b069955f12992f6c47be98a061f23ea13cf5
55abc393552f3f2097f168cb6db4dc495a514d56
vulkan: optimize ssm_scan (#18630) * vulkan: optimize ssm_scan * fix warp vs subgroup naming
[ { "path": "ggml/src/ggml-vulkan/ggml-vulkan.cpp", "patch": "@@ -570,6 +570,7 @@ struct vk_device_struct {\n bool uma;\n bool prefer_host_memory;\n bool float_controls_rte_fp16;\n+ bool subgroup_basic;\n bool subgroup_arithmetic;\n bool subgroup_shuffle;\n bool subgroup_ballot;\n@@...
2026-01-08T14:16:54
nodejs/node
7ab0a9a3c841d61593891b0a86cb9c2dc7483248
d60f9b775e0aee375675e50a58253ba946411910
test: http2-respond-file-errors to fixtures module Replace common.fixturesDir with fixtures in test-http2-respond-file-errors.js. PR-URL: https://github.com/nodejs/node/pull/16004 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca...
[ { "path": "test/parallel/test-http2-respond-file-errors.js", "patch": "@@ -3,8 +3,8 @@\n const common = require('../common');\n if (!common.hasCrypto)\n common.skip('missing crypto');\n+const fixtures = require('../common/fixtures');\n const http2 = require('http2');\n-const path = require('path');\n \n c...
2017-10-06T19:00:48
huggingface/transformers
57fc00f36c121aa6a439cc826d110202c5f3ba8a
77b59dce9fb804c72e3e9f3eaa01d53a905e6ada
fix for itemsize => element_size() for torch backwards compat (#30133) * fix for itemsize => element_size() for torch backwards compat * improve handling of element counting * Update src/transformers/modeling_utils.py * fixup * Update src/transformers/modeling_utils.py Co-authored-by: amyeroberts <22614...
[ { "path": "src/transformers/modeling_utils.py", "patch": "@@ -1160,12 +1160,13 @@ def num_parameters(self, only_trainable: bool = False, exclude_embeddings: bool\n # For 4bit models, we need to multiply the number of parameters by 2 as half of the parameters are\n # used for ...
2024-04-23T13:00:28
ollama/ollama
a7dad24d92a56a1799456ad6401953575e554c05
6b213216d51f2d3652bb114c619fe59b762644bd
add error for `falcon` and `starcoder` vocab compatibility (#844) add error for falcon and starcoder vocab compatibility --------- Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
[ { "path": "llm/llama.go", "patch": "@@ -18,6 +18,7 @@ import (\n \t\"path\"\n \t\"path/filepath\"\n \t\"runtime\"\n+\t\"slices\"\n \t\"strconv\"\n \t\"strings\"\n \t\"sync\"\n@@ -285,7 +286,7 @@ func (w *StatusWriter) Write(b []byte) (int, error) {\n \treturn os.Stderr.Write(b)\n }\n \n-func newLlama(model ...
2023-10-19T16:18:31
rust-lang/rust
329acde93e357e9797dc14aec9503b1f9234dfc9
52bf26e9ad2891fda366d2e7e90bbe96be0715e5
fix: `map_entry` FP inside closure
[ { "path": "clippy_lints/src/entry.rs", "patch": "@@ -8,7 +8,7 @@ use clippy_utils::{\n use core::fmt::{self, Write};\n use rustc_errors::Applicability;\n use rustc_hir::hir_id::HirIdSet;\n-use rustc_hir::intravisit::{Visitor, walk_expr};\n+use rustc_hir::intravisit::{Visitor, walk_body, walk_expr};\n use ru...
2025-02-27T08:20:29
ggml-org/llama.cpp
9a5724dee2457d58e506268efcb1d2286498cf3d
9c142e3a2a8f1c7415511bd9d24f4790ce2dac88
ggml: add env var GGML_OP_OFFLOAD_MIN_BATCH (#18535) * ggml: add env var GGML_OP_OFFLOAD_MIN_BATCH * makes the min_batch_size for triggering op offload configurable via env var, defaulting to the prior hardcoded value of 32 * ggml: read GGML_OP_OFFLOAD_MIN_BATCH once and store to dev ctx * cann: forward declaration ...
[ { "path": "ggml/src/ggml-cann/ggml-cann.cpp", "patch": "@@ -2541,27 +2541,6 @@ static bool ggml_backend_buft_is_cann(ggml_backend_buffer_type_t buft) {\n return buft->iface.get_name == ggml_backend_cann_buffer_type_name;\n }\n \n-/**\n- * @brief Determines if a tensor operation should be offloaded to th...
2026-01-08T09:03:21
huggingface/transformers
77b59dce9fb804c72e3e9f3eaa01d53a905e6ada
31921d8d5e4fa322f1ee3ba2011190bdafd5d304
Fix on "cache position" for assisted generation (#30068) * clean commit history I hope * get kv seq length correctly * PR suggestions * Update src/transformers/testing_utils.py Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com> * add comment * give gpt bigcode it's own overriden method ...
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -641,6 +641,7 @@ def _update_model_kwargs_for_generation(\n model_kwargs: Dict[str, Any],\n is_encoder_decoder: bool = False,\n standardize_cache_format: bool = False,\n+ num_new_tokens: int = 1,\n ) -> Dict[st...
2024-04-23T11:23:36
nodejs/node
d60f9b775e0aee375675e50a58253ba946411910
d78086bd8a434d45d0a01e0c04faf89d47c3b4a2
test: http2-respond-file-range to use fixtures Changed test-http2-respond-file-range to use fixtures.path directly instead of passing through the common module. PR-URL: https://github.com/nodejs/node/pull/15852 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Revie...
[ { "path": "test/parallel/test-http2-respond-file-range.js", "patch": "@@ -3,9 +3,9 @@\n const common = require('../common');\n if (!common.hasCrypto)\n common.skip('missing crypto');\n+const fixtures = require('../common/fixtures');\n const http2 = require('http2');\n const assert = require('assert');\n-c...
2017-10-06T16:34:46
golang/go
07d19b2597af253ed78ef43ba6e7a49db9a8f4ba
dfdc3880b01d46d1d8125ab9eea0606b2fa5b819
all: check GOROOT_BOOTSTRAP executable before bootsrappping Otherwise we’d still be writing that we're building cmd/dist even if GOROOT_BOOTSTRAP we’re wrongly set. Change-Id: I940e18c3cebae5664f85babc9919e9eb215d5093 Reviewed-on: https://go-review.googlesource.com/c/go/+/253877 Run-TryBot: Cuong Manh Le <cuong.manhl...
[ { "path": "src/make.bash", "patch": "@@ -162,16 +162,16 @@ IFS=$'\\n'; for go_exe in $(type -ap go); do\n \t\tfi\n \tfi\n done; unset IFS\n-GOROOT_BOOTSTRAP_VERSION=$($GOROOT_BOOTSTRAP/bin/go version | sed 's/go version //')\n-echo \"Building Go cmd/dist using $GOROOT_BOOTSTRAP. ($GOROOT_BOOTSTRAP_VERSION)\...
2020-09-10T06:21:41
rust-lang/rust
660241d1d47ac939e88163bab747c853be82eac0
96cfc75584359ae7ad11cc45968059f29e7b44b7
Fix test directives that were accidentally ignored
[ { "path": "tests/run-make/rustdoc-scrape-examples-macros/src/lib.rs", "patch": "@@ -1,8 +1,8 @@\n // Scraped example should only include line numbers for items b and c in ex.rs\n-// @!has foobar/fn.f.html '//*[@class=\"src-line-numbers\"]' '14'\n-// @has foobar/fn.f.html '//*[@class=\"src-line-numbers\"]' '...
2025-02-24T13:28:55
ggml-org/llama.cpp
df7fb92170f1c6ed08bf0943d6d8bf1191543a95
2038101bd9b1dcf45b5410b969fbc5206e25d993
model-conversion : remove -st targets for converted model (#18689) This commit removes the '-st` make target for running the converted embedding model. The motivation for this is that the pooling type is now part of the .gguf metdata of the model and this is used by llama-debug when running the model. So there is no ...
[ { "path": "examples/model-conversion/Makefile", "patch": "@@ -138,16 +138,13 @@ embedding-run-original-model-st: embedding-run-original-model\n embedding-run-converted-model:\n \t@./scripts/embedding/run-converted-model.sh $(CONVERTED_EMBEDDING_MODEL) \\\n \t$(if $(PROMPTS_FILE),--prompts-file \"$(PROMPTS_F...
2026-01-08T08:29:15
nodejs/node
d78086bd8a434d45d0a01e0c04faf89d47c3b4a2
212de3c5ec429a580d2e79ce3c2516b93b52b8f5
build,win: enable lint option to run "standalone" This commit adds support to run the linter without running any other targets. This commit also makes the lint task a little more quite and more inline with the output on other operating systems. Below is an example of running (with a lint error to show that it is not s...
[ { "path": "vcbuild.bat", "patch": "@@ -129,6 +129,10 @@ goto next-arg\n \n :args-done\n \n+if \"%*\"==\"lint\" (\n+ goto lint-cpp\n+)\n+\n if defined build_release (\n set config=Release\n set package=1\n@@ -480,12 +484,12 @@ setlocal enabledelayedexpansion\n for /f \"tokens=*\" %%G in ('dir /b /s /a %...
2017-10-13T00:09:23
golang/go
dfdc3880b01d46d1d8125ab9eea0606b2fa5b819
aa476ba6f43ebc4e7ddb6599a7ad35d9fbf1ec6d
cmd/internal/obj/arm64: enable some SIMD instructions Enable VBSL, VBIT, VCMTST, VUXTL VUXTL2 and FMOVQ SIMD instructions required by the issue #40725. And FMOVQ instrucion is used to move a large constant to a Vn register. Add test cases. Fixes #40725 Change-Id: I1cac1922a0a0165d698a4b73a41f7a5f0a0ad549 Reviewed-o...
[ { "path": "src/cmd/asm/internal/asm/testdata/arm64.s", "patch": "@@ -145,6 +145,17 @@ TEXT\tfoo(SB), DUPOK|NOSPLIT, $-8\n \tVZIP2\tV10.D2, V13.D2, V3.D2 // a379ca4e\n \tVZIP1\tV17.S2, V4.S2, V26.S2 // 9a38910e\n \tVZIP2\tV25.S2, V14.S2, V25.S2 // d979990e\n+\tVUXTL\tV30.B8, V30....
2020-08-20T09:02:18
rust-lang/rust
44f27329c0095fe5d13fe07d8a7a6fb183f68877
444ce09d53eb7bf966f155a322407924fc6ce8cd
fix testing for packages with multiple targets fix test running by invoking cargo per package remove hack_recover_crate_name make clippy happy fix testing for packages with multiple targets fix test running by invoking cargo per package remove hack_recover_crate_name make clippy happy fix testing for packages w...
[ { "path": "src/tools/rust-analyzer/crates/project-model/src/cargo_workspace.rs", "patch": "@@ -224,6 +224,7 @@ pub enum TargetKind {\n Example,\n Test,\n Bench,\n+ /// Cargo calls this kind `custom-build`\n BuildScript,\n Other,\n }\n@@ -252,6 +253,22 @@ impl TargetKind {\n pub fn...
2025-01-22T14:27:27
ollama/ollama
730996e5306f50b9dd7e9159ca0f24aa22394144
ce6197a8e00cb8bc44d4fd1eb89d1b2d439ebf75
use TrimPrefix instead of TrimLeft
[ { "path": "llm/llama.go", "patch": "@@ -465,7 +465,7 @@ func (llm *llama) Predict(ctx context.Context, prevContext []int, prompt string,\n \t}\n \n \t// Remove leading spaces from prevConvo if present\n-\tprevConvo = strings.TrimLeft(prevConvo, \" \")\n+\tprevConvo = strings.TrimPrefix(prevConvo, \" \")\n \...
2023-10-18T20:51:30
ggml-org/llama.cpp
2038101bd9b1dcf45b5410b969fbc5206e25d993
568371a7264c30ad4583f1859cb815dfc0bc14fa
llama : add `use_direct_io` flag for model loading (#18166) * Adding --direct-io flag for model loading * Fixing read_raw() calls * Fixing Windows read_raw_at * Changing type off_t to size_t for windows and Renaming functions * disable direct io when mmap is explicitly enabled * Use read_raw_unsafe when upload_ba...
[ { "path": "common/arg.cpp", "patch": "@@ -2088,11 +2088,22 @@ common_params_context common_params_parser_init(common_params & params, llama_ex\n add_opt(common_arg(\n {\"--mmap\"},\n {\"--no-mmap\"},\n- string_format(\"whether to memory-map model (if disabled, slower load but may ...
2026-01-08T06:35:30
nodejs/node
a3a106865a95665a3f2d8d7c03a1a12f1680a087
3b7a9a2589a55f3c4cb9abc2162351b22aec6973
doc: add return values in crypto documentation Clarify return values for crypto.publicEncrypt and similar functions PR-URL: https://github.com/nodejs/node/pull/16229 Fixes: https://github.com/nodejs/node/issues/12946 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Review...
[ { "path": "doc/api/crypto.md", "patch": "@@ -1687,6 +1687,7 @@ added: v0.11.14\n `crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`,\n `RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`.\n - `buffer` {Buffer | TypedArray | DataView}\n+- Returns: {Buffer} A new `Buffer...
2017-10-16T08:16:58
golang/go
b4944ef310ed43fad53c6128344e4bed2b346c88
cd91ab5d9601c975286f1ac83cd289e34aa117f8
cmd: update golang.org/x/tools to v0.0.0-20200901153117-6e59e24738da Includes the latest fix on vet to warn unused context.WithValue result. Fixes #41149 Change-Id: I06c204f40ef12b0f62f59b1bbdf1fe06ccd6565d Reviewed-on: https://go-review.googlesource.com/c/go/+/252941 Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>...
[ { "path": "src/cmd/go.mod", "patch": "@@ -9,6 +9,6 @@ require (\n \tgolang.org/x/crypto v0.0.0-20200622213623-75b288015ac9\n \tgolang.org/x/mod v0.3.1-0.20200828183125-ce943fd02449\n \tgolang.org/x/sys v0.0.0-20200501145240-bc7a7d42d5c3 // indirect\n-\tgolang.org/x/tools v0.0.0-20200616133436-c1934b75d054\n...
2020-09-06T01:43:34
ggml-org/llama.cpp
5b8844ae531d8ff09c1c00a2022293d5b674c787
7e16fef085e8727d534b21a148aa70ebe94f23a2
scripts : fix repos cloned with .git extension (#18669)
[ { "path": "scripts/pr2wt.sh", "patch": "@@ -34,6 +34,7 @@ url_origin=$(git config --get remote.origin.url) || {\n }\n \n org_repo=$(echo $url_origin | cut -d/ -f4-)\n+org_repo=${org_repo%.git}\n \n echo \"org/repo: $org_repo\"\n ", "additions": 1, "deletions": 0, "language": "Shell Script" } ]
2026-01-07T21:35:34
ollama/ollama
ce6197a8e00cb8bc44d4fd1eb89d1b2d439ebf75
46b9953f32d665010367f55362aff41b4b338a8d
removed redundant strings.CutPrefix from Decode
[ { "path": "llm/llama.go", "patch": "@@ -668,9 +668,6 @@ func (llm *llama) Decode(ctx context.Context, tokens []int) (string, error) {\n \t\treturn \"\", fmt.Errorf(\"unmarshal encode response: %w\", err)\n \t}\n \n-\t// decoded content contains a leading whitespace\n-\tdecoded.Content, _ = strings.CutPrefix...
2023-10-18T20:47:20
nodejs/node
3b7a9a2589a55f3c4cb9abc2162351b22aec6973
e2015b53477845513d87a6750a87019b37213943
child_process: add windowsHide option This commit exposes the UV_PROCESS_WINDOWS_HIDE flag in Node as a windowsHide option to the child_process methods. The option is only applicable to Windows, and is ignored elsewhere. Fixes: https://github.com/nodejs/node/issues/15217 PR-URL: https://github.com/nodejs/node/pull/15...
[ { "path": "doc/api/child_process.md", "patch": "@@ -127,6 +127,10 @@ exec('\"my script.cmd\" a b', (err, stdout, stderr) => {\n ### child_process.exec(command[, options][, callback])\n <!-- YAML\n added: v0.1.90\n+changes:\n+ - version: REPLACEME\n+ pr-url: https://github.com/nodejs/node/pull/15380\n+ ...
2017-09-13T04:22:45
huggingface/transformers
04ac3245e4bce82d21bec31b9de875f092f3548f
179ab098dacabe462b5cb25c4e8ce0c723e87fea
fix: link to HF repo/tree/revision when a file is missing (#30406) fix: link to HF repo tree when a file is missing
[ { "path": "src/transformers/utils/hub.py", "patch": "@@ -451,7 +451,7 @@ def cached_file(\n revision = \"main\"\n raise EnvironmentError(\n f\"{path_or_repo_id} does not appear to have a file named {full_filename}. Checkout \"\n- f\"'https://huggingface.co/{path_or...
2024-04-23T09:05:57
rust-lang/rust
cabb08ded5a8ac6d06f8f0803939d31e274da799
d4b92f4b682eb7d856f09a3f58adc6338b5f5e9c
Fix sysroot crate-graph construction not mapping crate-ids for proc-macros
[ { "path": "src/tools/rust-analyzer/crates/project-model/src/workspace.rs", "patch": "@@ -1094,8 +1094,7 @@ fn cargo_to_crate_graph(\n ) -> (CrateGraph, ProcMacroPaths) {\n let _p = tracing::info_span!(\"cargo_to_crate_graph\").entered();\n let mut res = (CrateGraph::default(), ProcMacroPaths::defaul...
2025-02-27T10:55:22
ggml-org/llama.cpp
f5245b5e4eff4f0d5624dca39b0bd612da7111ff
ae9f8df77882716b1702df2bed8919499e64cc28
cuda : fix build on cuda 12.8 (#18672) compute121 requires 12.9 Signed-off-by: Oliver Walsh <owalsh@redhat.com>
[ { "path": "ggml/src/ggml-cuda/CMakeLists.txt", "patch": "@@ -47,7 +47,10 @@ if (CUDAToolkit_FOUND)\n # check Modules/Internal/CMakeCUDAArchitecturesValidate.cmake in the CMake git repository instead.\n # However, the architectures 120a-real and 121a-real should work with ...
2026-01-07T21:32:44
golang/go
cd91ab5d9601c975286f1ac83cd289e34aa117f8
2c8d2a0c51f4085e56b5ab05ed9fb17fc6d08261
cmd/go/internal/modload: fix spurious import resolution error Due to a bug in CL 173017, if QueryPackages found multiple candidates for the given package and *at least* one of those candidates was not available to add, we would reject *all* such candidates — even those that were still viable. Now, we return the first...
[ { "path": "src/cmd/go/internal/modload/import.go", "patch": "@@ -312,10 +312,10 @@ func queryImport(ctx context.Context, path string) (module.Version, error) {\n \t\t}\n \t}\n \n-\tm := candidates[0].Mod\n-\tnewMissingVersion := \"\"\n-\tfor _, c := range candidates {\n+\tcandidate0MissingVersion := \"\"\n+...
2020-08-29T01:32:05
ollama/ollama
565648f3f7c17eb0a6e59a89ab2651ae4ff0fc8d
3a2477174f19fcbc9a042161ad42bb4065d1119f
relay CUDA errors to the client (#825)
[ { "path": "llm/llama.go", "patch": "@@ -183,12 +183,12 @@ type llamaHyperparameters struct {\n }\n \n type Running struct {\n-\tPort int\n-\tCmd *exec.Cmd\n-\tCancel context.CancelFunc\n-\texitOnce sync.Once\n-\texitCh chan error // channel to receive the exit status of the subprocess\n-\texitE...
2023-10-18T19:36:56
nodejs/node
4cf56ad6f2adc51be9ba2335263a0cf8e08d36c7
b93285454ac96952a33ed9655661c2bbea35667f
inspector: migrate to internal/errors PR-URL: https://github.com/nodejs/node/pull/15619 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
[ { "path": "doc/api/errors.md", "patch": "@@ -885,6 +885,31 @@ Used when `http2.connect()` is passed a URL that uses any protocol other than\n \n Used when a given index is out of the accepted range (e.g. negative offsets).\n \n+<a id=\"ERR_INSPECTOR_ALREADY_CONNECTED\"></a>\n+### ERR_INSPECTOR_ALREADY_CONNE...
2017-09-26T00:11:50
huggingface/transformers
c651ea982b5ff33ac3754bb571fa7a700807baef
408453b4642fcea85a91a7a30a02c165ab2ec5cf
[Grounding DINO] Add support for cross-attention in GroundingDinoMultiHeadAttention (#30364) * Added cross attention support * Fixed dtypes * Fixed assumption * Moved to decoder
[ { "path": "src/transformers/models/grounding_dino/modeling_grounding_dino.py", "patch": "@@ -818,7 +818,7 @@ def forward(\n attention_masks = attention_masks[:, None, :, :]\n attention_masks = attention_masks.repeat(1, self.num_heads, 1, 1)\n \n- dtype = torch.float16\n+ ...
2024-04-23T08:56:14
ggml-org/llama.cpp
ae9f8df77882716b1702df2bed8919499e64cc28
56d2fed2b3970ae55eebd0e5426d402304b1358a
fix(docker): add missing libglvnd libraries to Vulkan image (#18664) Add libglvnd0, libgl1, libglx0, libegl1, libgles2 to the Vulkan Dockerfile base image. These libraries are required by mesa-vulkan-drivers to properly initialize the Vulkan ICD and detect GPU devices. Without these libraries, vkEnumeratePhysicalDevi...
[ { "path": ".devops/vulkan.Dockerfile", "patch": "@@ -33,6 +33,7 @@ FROM ubuntu:$UBUNTU_VERSION AS base\n \n RUN apt-get update \\\n && apt-get install -y libgomp1 curl libvulkan1 mesa-vulkan-drivers \\\n+ libglvnd0 libgl1 libglx0 libegl1 libgles2 \\\n && apt autoremove -y \\\n && apt clean -y...
2026-01-07T15:57:42
golang/go
2c8d2a0c51f4085e56b5ab05ed9fb17fc6d08261
015a5a5c5c4b4ce4dce55601032b8e2f5fbcca9a
net/http: fix data race due to writeLoop goroutine left running Fix a data race for clients that mutate requests after receiving a response error which is caused by the writeLoop goroutine left running, this can be seen on cancelled requests. Fixes #37669 Change-Id: Ia4743c6b8abde3a7503de362cc6a3782e19e7f60 Reviewed...
[ { "path": "src/net/http/transport.go", "patch": "@@ -1967,6 +1967,15 @@ func (pc *persistConn) mapRoundTripError(req *transportRequest, startBytesWritte\n \t\treturn nil\n \t}\n \n+\t// Wait for the writeLoop goroutine to terminate to avoid data\n+\t// races on callers who mutate the request on failure.\n+\...
2020-08-31T20:37:40
ggml-org/llama.cpp
03023296cf63f4177f51db9126b16b06f0e0af98
8c77a04cc723909eab5d3bc3ae14c82f4db1afc7
vulkan: Warptile tuning for Intel Xe2/Xe3 (#18178) * modify warptile tuning for xe3 * intel vendor check w/ coopmat support * fix back formatting * fix formatting change 2 * move intel check to chip specific tuning part * Change to support both windows and linux * modify m_warptile to l_warptile for intel * mod...
[ { "path": "ggml/src/ggml-vulkan/ggml-vulkan.cpp", "patch": "@@ -2996,6 +2996,10 @@ static void ggml_vk_load_shaders(vk_device& device) {\n if ((device->architecture == AMD_GCN) && (device->driver_id != vk::DriverId::eAmdProprietary)) {\n m_warptile_mmq = m_warptile_mmq_int = { 256, 64, 6...
2026-01-07T10:59:47
huggingface/transformers
408453b4642fcea85a91a7a30a02c165ab2ec5cf
6c1295a0d8795d122670d44614d5eb4e37000fa5
Add inputs embeds in generation (#30269) * Add inputs embeds in generation * always scale embeds * fix-copies * fix failing test * fix copies once more * remove embeds for models with scaling * second try to revert * codestyle
[ { "path": "src/transformers/models/codegen/modeling_codegen.py", "patch": "@@ -594,7 +594,7 @@ def get_output_embeddings(self):\n def set_output_embeddings(self, new_embeddings):\n self.lm_head = new_embeddings\n \n- def prepare_inputs_for_generation(self, input_ids, past_key_values=None, **k...
2024-04-23T08:14:48
nodejs/node
b93285454ac96952a33ed9655661c2bbea35667f
da7d92e3f030c3054b12457f70aa4c54a7ebc82b
test: replace fixturesDir with fixtures module PR-URL: https://github.com/nodejs/node/pull/15989 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
[ { "path": "test/es-module/test-esm-encoded-path-native.js", "patch": "@@ -1,9 +1,10 @@\n 'use strict';\n-const common = require('../common');\n+require('../common');\n+const fixtures = require('../common/fixtures');\n const assert = require('assert');\n const { spawn } = require('child_process');\n \n-const...
2017-10-06T18:04:33
ollama/ollama
5dc0cff4592132635a2445ef6ed80103927e08af
08b0e04f40025c41dea6a40fa434acf9e2672d4a
fix whitespace removal
[ { "path": "llm/llama.go", "patch": "@@ -666,7 +666,7 @@ func (llm *llama) Decode(ctx context.Context, tokens []int) (string, error) {\n \t}\n \n \t// decoded content contains a leading whitespace\n-\tdecoded.Content, _ = strings.CutPrefix(decoded.Content, \"\")\n+\tdecoded.Content, _ = strings.CutPrefix(dec...
2023-10-18T06:15:27
ggml-org/llama.cpp
ffba4f29e6a9ed7165ea6b94150856c5b49925cb
3333951d86c0a67bac318cc6b0a924b673f6e4e5
examples : add debug utility/example (#18464) * examples : add debug utility/example This commit introduces a new example named llama-debug which is a utility that is intended to be used to assist with developing/debugging a converted model. The motivation for this utilitiy is to assist in model conversion work to v...
[ { "path": "common/arg.cpp", "patch": "@@ -1445,7 +1445,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex\n [](common_params & params, bool value) {\n params.warmup = value;\n }\n- ).set_examples({LLAMA_EXAMPLE_COMPLETION, LLAMA_EXAMPLE_CLI, ...
2026-01-07T09:42:19
nodejs/node
9b3d6a0d8f77933b38af4d02dfb48f2242f76a50
b5c74d85fc8a4d5eb418e7094533b6a45975cb76
test: change common.fixturesDir to fixtures.path Use common.fixtures module instead of common.fixturesDir based on task at Nodejs code and learn at Node.js Interactive 2017 in Vancouver. PR-URL: https://github.com/nodejs/node/pull/15860 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@...
[ { "path": "test/parallel/test-require-exceptions.js", "patch": "@@ -22,15 +22,16 @@\n 'use strict';\n const common = require('../common');\n const assert = require('assert');\n+const fixtures = require('../common/fixtures');\n \n // A module with an error in it should throw\n assert.throws(function() {\n- ...
2017-10-06T16:59:04
huggingface/transformers
569743f510780fc42aeb2364501584638f400558
367a0dbd53cc1b826d986b166f3ac520d500db64
Add sdpa and fa2 the Wav2vec2 family. (#30121) * add sdpa to wav2vec. Co-authored-by: kamilakesbi <kamil@huggingface.co> Co-authored-by: jp1924 <jp42maru@gmail.com> * add fa2 to wav2vec2 * add tests * fix attention_mask compatibility with fa2 * minor dtype fix * replace fa2 slow test * fix fa2 slo...
[ { "path": "docs/source/en/model_doc/hubert.md", "patch": "@@ -44,6 +44,42 @@ This model was contributed by [patrickvonplaten](https://huggingface.co/patrickv\n - Hubert model was fine-tuned using connectionist temporal classification (CTC) so the model output has to be decoded\n using [`Wav2Vec2CTCTokeniz...
2024-04-22T17:30:38
ollama/ollama
b36b0b71f8753acc99ec5ddab748223c21ada3f2
094df3756393b49ca287a0a85702938fe76918aa
use cut prefix
[ { "path": "llm/llama.go", "patch": "@@ -531,16 +531,14 @@ func (llm *llama) Predict(ctx context.Context, prevContext []int, prompt string,\n \t\t\t// This handles the request cancellation\n \t\t\treturn ctx.Err()\n \t\tdefault:\n-\t\t\tline := scanner.Text()\n-\t\t\tif line == \"\" {\n+\t\t\tline := scanner...
2023-10-16T23:31:56
rust-lang/rust
e399e152e8e5c0060c4f37d39de202d5c9b546d1
52bf26e9ad2891fda366d2e7e90bbe96be0715e5
Fix ICE
[ { "path": "clippy_lints/src/doc/mod.rs", "patch": "@@ -1004,7 +1004,12 @@ fn check_doc<'a, Events: Iterator<Item = (pulldown_cmark::Event<'a>, Range<usize\n // backslashes aren't in the event stream...\n start -= 1;\n ...
2025-02-27T09:18:44
ggml-org/llama.cpp
3333951d86c0a67bac318cc6b0a924b673f6e4e5
193ee38a1bc2aed807823112cf030edcae186892
CANN: Fix rename for get_env (#18652) In #18624, get_env in ggml-cann was renamed to get_env_as_lowercase to accurately reflect the function’s behavior and reduce the chance of misuse. However, the update missed renaming call sites in other files. This commit fixes that oversight.
[ { "path": "ggml/src/ggml-cann/aclnn_ops.cpp", "patch": "@@ -1963,7 +1963,7 @@ static void ggml_cann_mat_mul_fp(ggml_backend_cann_context & ctx, ggml_tensor *\n acl_tensor_ptr acl_weight_tensor;\n \n // Only check env once.\n- static bool weight_to_nz = parse_bool(get_env(\"GGML_CANN_WEIGHT_NZ\")....
2026-01-07T08:11:31
huggingface/transformers
367a0dbd53cc1b826d986b166f3ac520d500db64
13b3b90ab167d1e7683b5e519c3ccfb91ae775d1
FIX / PEFT: Pass device correctly to peft (#30397) pass device correctly to peft
[ { "path": "src/transformers/integrations/peft.py", "patch": "@@ -13,7 +13,7 @@\n # limitations under the License.\n import inspect\n import warnings\n-from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union\n+from typing import Any, Dict, List, Optional, Union\n \n from ..utils import (\n che...
2024-04-22T16:13:19
ollama/ollama
bd93a94abdee7ceef24f13c529f2b04a6ea749fd
f55bdb6f106c5eff4a82a47a119fb747acb3acd1
fix MB VRAM log output (#824)
[ { "path": "llm/llama.go", "patch": "@@ -249,7 +249,7 @@ func NumGPU(numLayer, fileSizeBytes int64, opts api.Options) int {\n \n \t\t// max number of layers we can fit in VRAM, subtract 8% to prevent consuming all available VRAM and running out of memory\n \t\tlayers := int(freeBytes/bytesPerLayer) * 92 / 10...
2023-10-17T19:35:16
golang/go
015a5a5c5c4b4ce4dce55601032b8e2f5fbcca9a
26d27f96fec733fe09751b49b47282c9109fb8ad
cmd/go/internal/modload: rework import resolution modload.Import previously performed two otherwise-separable tasks: 1. Identify which module in the build list contains the requested package. 2. If no such module exists, search available modules to try to find the missing package. This change splits those two...
[ { "path": "src/cmd/go/internal/list/list.go", "patch": "@@ -545,7 +545,7 @@ func runList(ctx context.Context, cmd *base.Command, args []string) {\n \t\t// Note that -deps is applied after -test,\n \t\t// so that you only get descriptions of tests for the things named\n \t\t// explicitly on the command line,...
2020-08-28T22:19:22
nodejs/node
89425817d05294ea05c9916e54fe85f53859f6ce
70896c7e3b97cac03b645a5c450a617131e5b4eb
doc: support multidimensional arrays in type link Currently, we have at least one multidimensional array in type signature: see `records` parameter in https://nodejs.org/api/dns.html#dns_dns_resolvetxt_hostname_callback Our type parser does not linkify these signatures properly. This PR tries to fix this. PR-URL: ht...
[ { "path": "tools/doc/type-parser.js", "patch": "@@ -58,6 +58,8 @@ const typeMap = {\n 'URLSearchParams': 'url.html#url_class_urlsearchparams'\n };\n \n+const arrayPart = /(?:\\[])+$/;\n+\n module.exports = {\n toLink: function(typeInput) {\n const typeLinks = [];\n@@ -69,12 +71,10 @@ module.exports ...
2017-10-14T22:40:17
huggingface/transformers
13b3b90ab167d1e7683b5e519c3ccfb91ae775d1
6c7335e053ae882979c4fac01ad6866e564ac21f
Fix DETA save_pretrained (#30326) * Add class_embed to tied weights for DETA * Fix test_tied_weights_keys for DETA model * Replace error raise with assert statement
[ { "path": "src/transformers/models/deta/modeling_deta.py", "patch": "@@ -1888,7 +1888,7 @@ def forward(\n )\n class DetaForObjectDetection(DetaPreTrainedModel):\n # When using clones, all layers > 0 will be clones, but layer 0 *is* required\n- _tied_weights_keys = [r\"bbox_embed\\.\\d+\"]\n+ _tied...
2024-04-22T16:11:13