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
huggingface/transformers
de6e0db184d565847356a6a08dde2f043e744c72
e0c3cee17085914bbe505c159beeb8ae39bc37dd
[awq] replace scale when we have GELU (#30074) * fix awq test * style * add log * new fix * style * only modifying impacted model in the end * rename function
[ { "path": "src/transformers/integrations/__init__.py", "patch": "@@ -21,6 +21,7 @@\n \"awq\": [\n \"fuse_awq_modules\",\n \"post_init_awq_exllama_modules\",\n+ \"replace_quantization_scales\",\n \"replace_with_awq_linear\",\n ],\n \"bitsandbytes\": [\n@@ -92,6 +93,...
2024-05-13T09:41:03
nodejs/node
4997894390f9e4e3dc078da6aba2ca52ad572055
f91218c58f6b3aa13e162f3cda5a82a0941ff45c
doc: fix wrong URL PR-URL: https://github.com/nodejs/node/pull/16470 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> R...
[ { "path": "doc/changelogs/CHANGELOG_V8.md", "patch": "@@ -576,7 +576,7 @@\n * [[`94c6296d83`](https://github.com/nodejs/node/commit/94c6296d83)] - **tools**: use template literals (Sarah Meyer) [#15956](https://github.com/nodejs/node/pull/15956)\n * [[`eebb2d775a`](https://github.com/nodejs/node/commit/eebb...
2017-10-25T02:15:41
rust-lang/rust
3899488e5363f438c5373656ba70cbbe77b438a5
91d20cbb82f041a31f747788567f884023cc322b
fix `undocumented_unsafe_blocks` FP in long assignment
[ { "path": "clippy_lints/src/undocumented_unsafe_blocks.rs", "patch": "@@ -349,8 +349,12 @@ fn block_parents_have_safety_comment(\n ) -> bool {\n let (span, hir_id) = match cx.tcx.parent_hir_node(id) {\n Node::Expr(expr) => match cx.tcx.parent_hir_node(expr.hir_id) {\n- Node::LetStmt(h...
2025-02-17T16:08:33
ggml-org/llama.cpp
ce38a4db478b90542874cd4af5cb48b3a0fcf311
4fdbc1e4dba428ce0cf9d2ac22232dc170bbca82
hexagon: enable offloading to Hexagon on Windows on Snapdragon (#19150) * hexagon: updates to enable offloading to HTP on WoS * Update windows.md * Update windows.md * hexagon: enable -O3 optimizations * hexagon: move all _WINDOWS conditional compilation to _WIN32 * hexagon: updates to enable offloading to HTP on...
[ { "path": ".github/workflows/build.yml", "patch": "@@ -1371,7 +1371,7 @@ jobs:\n id: update_presets\n if: ${{ matrix.build == 'arm64-snapdragon' }}\n run: |\n- cp docs/backend/hexagon/CMakeUserPresets.json .\n+ cp docs/backend/snapdragon/CMakeUserPresets.json .\n \n...
2026-01-29T20:33:21
golang/go
8ab020adb27089fa207d015f2f69600ef3d1d307
72a9dec156408a87548deb920a67b8bf787062db
runtime: netbsd-arm64 fixes Add missing declaration of crosscall1. Fix stack alignment for pipe2 return value. Work around kernel clobbering of r28 on aarch64 by reloading from ucontext. https://nxr.netbsd.org/xref/src/sys/arch/aarch64/aarch64/sig_machdep.c#104 Update #30824 Change-Id: I7f9472939f4c02953f8c2073086...
[ { "path": "src/runtime/cgo/gcc_netbsd_arm64.c", "patch": "@@ -53,6 +53,8 @@ _cgo_sys_thread_start(ThreadStart *ts)\n \t}\n }\n \n+extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);\n+\n static void*\n threadentry(void *v)\n {", "additions": 2, "deletions": 0, "language":...
2020-09-26T19:40:17
huggingface/transformers
e0c3cee17085914bbe505c159beeb8ae39bc37dd
8ce4fefc52d6146fb6aaf2b896cbb07b9fc4d947
hqq - fix weight check in check_quantized_param (#30748) * hqq - fix weight check in check_quantized_param * ruff format
[ { "path": "src/transformers/quantizers/quantizer_hqq.py", "patch": "@@ -101,7 +101,7 @@ def check_quantized_param(\n ) -> bool:\n module, tensor_name = get_module_from_name(model, param_name)\n \n- return isinstance(module, torch.nn.Linear)\n+ return isinstance(module, torch.nn.Lin...
2024-05-10T17:29:35
rust-lang/rust
d395646a60f91ff40baebc9f0cd032cb182ea916
1419ac2982e8c33496f896cc98c4bb4b14c94813
fix [`undocumented_unsafe_blocks`] FP with trait/impl items
[ { "path": "clippy_lints/src/undocumented_unsafe_blocks.rs", "patch": "@@ -350,12 +350,13 @@ fn block_parents_have_safety_comment(\n let (span, hir_id) = match cx.tcx.parent_hir_node(id) {\n Node::Expr(expr) => match cx.tcx.parent_hir_node(expr.hir_id) {\n Node::LetStmt(hir::LetStmt {...
2024-07-10T03:34:24
ggml-org/llama.cpp
4fdbc1e4dba428ce0cf9d2ac22232dc170bbca82
7b7ae857f686a4191dbd48252ab4dda426846a29
cuda : fix nkvo, offload and cuda graph node properties matching (#19165) * cuda : fix nkvo * cont : more robust cuda graph node property matching * cont : restore pre-leafs implementation * cont : comments + static_assert
[ { "path": "ggml/src/ggml-cuda/common.cuh", "patch": "@@ -1122,15 +1122,17 @@ struct ggml_tensor_extra_gpu {\n #endif\n \n struct ggml_cuda_graph_node_properties {\n- void * node_address;\n+ void * node_data;\n ggml_op node_op;\n int32_t flags;\n int64_t ne[GGML_MAX_DIMS];\n size_t nb[G...
2026-01-29T16:45:30
nodejs/node
f91218c58f6b3aa13e162f3cda5a82a0941ff45c
3e68e4414a96af2b46e66d6403f3a4ab0bc84021
doc: fix missing newline character PR-URL: https://github.com/nodejs/node/pull/16447 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com...
[ { "path": "COLLABORATOR_GUIDE.md", "patch": "@@ -677,4 +677,4 @@ LTS working group and the Release team.\n [backporting guide]: doc/guides/backporting-to-release-lines.md\n [Stability Index]: doc/api/documentation.md#stability-index\n [Enhancement Proposal]: https://github.com/nodejs/node-eps\n-[git-usernam...
2017-10-24T16:14:41
ollama/ollama
045b855db9dc4fa08738dd20ee2a7252c4680e6a
32064a064660227ea128991a14f3f300d00075f5
fix error on accumulating final chat response
[ { "path": "server/routes.go", "patch": "@@ -1025,7 +1025,10 @@ func ChatHandler(c *gin.Context) {\n \t\tfor resp := range ch {\n \t\t\tswitch r := resp.(type) {\n \t\t\tcase api.ChatResponse:\n-\t\t\t\tsb.WriteString(r.Message.Content)\n+\t\t\t\tif r.Message != nil {\n+\t\t\t\t\tsb.WriteString(r.Message.Con...
2023-12-10T16:24:39
golang/go
7bb6fed9b53494e9846689520b41b8e679bd121d
6f02578f9cff92e6c0fae4d86df01dcf99673c61
os: document and emphasize a potential misuse of File.Fd This CL revises the document of File.Fd that explicitly points its user to runtime.SetFinalizer where contains the information that a file descriptor could be closed in a finalizer and therefore causes a failure in syscall.Write if runtime.KeepAlive is not invok...
[ { "path": "src/os/file_plan9.go", "patch": "@@ -29,8 +29,13 @@ type file struct {\n }\n \n // Fd returns the integer Plan 9 file descriptor referencing the open file.\n-// The file descriptor is valid only until f.Close is called or f is garbage collected.\n-// On Unix systems this will cause the SetDeadlin...
2020-09-24T06:57:00
huggingface/transformers
1c52cb7b3b194bf1ad2cf6ceaee698a12689b9fa
73fcfb286184114207da5b6400d78a7f7e0fa79e
mlp_only_layers is more flexible than decoder_sparse_step (#30552) * force back to commit ba40a21 and fix workflow errors * match the review suggestions * fix ci errors * fix CI * fix ci, format code * fix ci, ruff format * fix ci, ruff format again * Update src/transformers/models/qwen2_moe/confi...
[ { "path": "src/transformers/models/qwen2_moe/configuration_qwen2_moe.py", "patch": "@@ -91,6 +91,10 @@ class Qwen2MoeConfig(PretrainedConfig):\n allow the model to output the auxiliary loss, including load balancing loss and router z-loss.\n router_aux_loss_coef (`float`, *optional*, def...
2024-05-10T12:00:46
rust-lang/rust
3a6f269f26454835aabac9055ef0cda820b048ec
002da76821d32c8807dc47da16660925d8cc9b62
improve error message and testing of using an unsigned simd mask
[ { "path": "compiler/rustc_codegen_ssa/messages.ftl", "patch": "@@ -119,7 +119,8 @@ codegen_ssa_invalid_monomorphization_inserted_type = invalid monomorphization of\n \n codegen_ssa_invalid_monomorphization_invalid_bitmask = invalid monomorphization of `{$name}` intrinsic: invalid bitmask `{$mask_ty}`, expec...
2025-03-01T11:20:30
ggml-org/llama.cpp
7b7ae857f686a4191dbd48252ab4dda426846a29
84b0a983195f87351195221e4f3be1c7b456ddb7
chat : add parsing for solar-open-100b (#18540) * chat : add parsing for solar-open-100b * add comments to rules * cont : make assistant start optional * cont : remove assistant start prefix altogether --------- Co-authored-by: Piotr Wilkin (ilintar) <piotr.wilkin@syndatis.com>
[ { "path": "common/chat.cpp", "patch": "@@ -2571,20 +2571,165 @@ static common_chat_params common_chat_params_init_granite(const common_chat_temp\n static common_chat_params common_chat_params_init_solar_open(const common_chat_template & tmpl, const struct templates_params & inputs) {\n common_chat_param...
2026-01-29T15:06:15
nodejs/node
50d727587e1e6664ea690a3d1785e3b5c9849b65
e70038528891aa7bddf44b39b85ee99ee30e6d6b
test: allow for different nsswitch.conf settings The motivation for this commit is that these two test fail on systems that have different Name Service Switch configuration settings. A concrete example of this is when using Red Hat Enterprise Linux (RHEL) 7. If Name Service Switch is available on the operating system...
[ { "path": "test/parallel/test-https-connect-address-family.js", "patch": "@@ -33,7 +33,7 @@ function runTest() {\n \n dns.lookup('localhost', { family: 6, all: true }, (err, addresses) => {\n if (err) {\n- if (err.code === 'ENOTFOUND')\n+ if (err.code === 'ENOTFOUND' || err.code === 'EAI_AGAIN')\n ...
2017-10-20T06:35:54
ollama/ollama
32064a064660227ea128991a14f3f300d00075f5
d9a250e9b5151417c4b7a6e2971c1e683cbd2aff
fix empty response when receiving runner error
[ { "path": "docs/api.md", "patch": "@@ -252,7 +252,7 @@ curl http://localhost:11434/api/generate -d '{\n \"penalize_newline\": true,\n \"stop\": [\"\\n\", \"user:\"],\n \"numa\": false,\n- \"num_ctx\": 4,\n+ \"num_ctx\": 1024,\n \"num_batch\": 2,\n \"num_gqa\": 1,\n \"num_gpu\":...
2023-12-10T15:53:38
golang/go
6f02578f9cff92e6c0fae4d86df01dcf99673c61
ad618689ef06e9dca86c0e2b9b38a2c1b9266f4a
cmd/compile: fix logopt log directory naming for windows Allow Windows absolute paths, also fixed URI decoding on Windows. Added a test, reorganized to make the test cleaner. Also put some doc comments on exported functions that did not have them. Fixes #41614. Change-Id: I2871be0e5183fbd53ffb309896d6fe56c15a7727 Re...
[ { "path": "src/cmd/compile/internal/logopt/log_opts.go", "patch": "@@ -19,6 +19,7 @@ import (\n \t\"strconv\"\n \t\"strings\"\n \t\"sync\"\n+\t\"unicode\"\n )\n \n // This implements (non)optimization logging for -json option to the Go compiler\n@@ -223,11 +224,11 @@ type Diagnostic struct {\n // A LoggedOp...
2020-09-25T17:30:51
huggingface/transformers
73fcfb286184114207da5b6400d78a7f7e0fa79e
47735f5f0f2752500d115d2f6bd57816032599b6
Update llama3.md, fix typo (#30739) Update llama3.md fix typo again
[ { "path": "docs/source/en/model_doc/llama3.md", "patch": "@@ -82,4 +82,4 @@ pipeline(\"Hey how are you doing today?\")\n ```\n \n ## Resources\n-A ton of cool resources are already available on the documentation page of [~llama2], inviting contributors to add new resourses curated for Llama3 here! 🤗\n+A to...
2024-05-10T11:40:57
ggml-org/llama.cpp
84b0a983195f87351195221e4f3be1c7b456ddb7
b45ef2702c262998d5db9887cd3c82f04761237a
webui: Update Svelte to fix effect_update_depth_exceeded errors (#19144) The upstream fix is first available in 5.38.2, so constrain to at least that version. Rebuild pre-compiled webui index.html.gz based on these changes. See also: https://github.com/ggml-org/llama.cpp/issues/16347 https://github.com/huntabyte/bit...
[ { "path": "tools/server/webui/package-lock.json", "patch": "@@ -61,7 +61,7 @@\n \t\t\t\t\"remark-math\": \"^6.0.0\",\n \t\t\t\t\"sass\": \"^1.93.3\",\n \t\t\t\t\"storybook\": \"^10.0.7\",\n-\t\t\t\t\"svelte\": \"^5.0.0\",\n+\t\t\t\t\"svelte\": \"^5.38.2\",\n \t\t\t\t\"svelte-check\": \"^4.0.0\",\n \t\t\t\t\...
2026-01-29T14:56:39
nodejs/node
e70038528891aa7bddf44b39b85ee99ee30e6d6b
6971f0292aaef28bb569728c56e4232f7c804d0f
doc: fix spelling in v8.8.0 changelog I hear that varible has an a in it. PR-URL: https://github.com/nodejs/node/pull/16477 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
[ { "path": "doc/changelogs/CHANGELOG_V8.md", "patch": "@@ -43,7 +43,7 @@\n - expose ECDH class [#8188](https://github.com/nodejs/node/pull/8188)\n * **http2**:\n - http2 is now exposed by default without the need for a flag [#15685](https://github.com/nodejs/node/pull/15685)\n- - a new environment varib...
2017-10-25T07:45:31
ollama/ollama
bbe41ce41a49099097f30fcdb59f08e707d166e1
9e1406e4ed57a7ddcb720e9b6ec15fa7c748318a
fix: parallel queueing race condition caused silent failure (#1445) * fix: queued request failures - increase parallel requests to 2 to complete queued request, queueing is managed in ollama * log steam errors
[ { "path": "llm/llama.go", "patch": "@@ -341,6 +341,7 @@ func newLlama(model string, adapters, projectors []string, runners []ModelRunner\n \t\t\"--ctx-size\", fmt.Sprintf(\"%d\", opts.NumCtx),\n \t\t\"--batch-size\", fmt.Sprintf(\"%d\", opts.NumBatch),\n \t\t\"--n-gpu-layers\", fmt.Sprintf(\"%d\", numGPU),\...
2023-12-09T19:14:02
golang/go
ad618689ef06e9dca86c0e2b9b38a2c1b9266f4a
f5c3eda4c9519641265279bcb8a484f846750258
cmd/dist: detect gohostarch on netbsd/arm64 hosts On netbsd/arm64 `uname -m` reports `evbarm` which is mapped to gohostarch=arm. Fix this by checking for "aarch64" in `uname -p` output to fix self-hosted build on netbsd/arm64. Updates #30824 Change-Id: I0f0450ff35af0bec51aeec3b210143ba892216c6 Reviewed-on: https://g...
[ { "path": "src/cmd/dist/main.go", "patch": "@@ -108,6 +108,9 @@ func main() {\n \t\t\tgohostarch = \"arm64\"\n \t\tcase strings.Contains(out, \"arm\"):\n \t\t\tgohostarch = \"arm\"\n+\t\t\tif gohostos == \"netbsd\" && strings.Contains(run(\"\", CheckExit, \"uname\", \"-p\"), \"aarch64\") {\n+\t\t\t\tgohosta...
2020-09-26T14:30:02
huggingface/transformers
47735f5f0f2752500d115d2f6bd57816032599b6
c99d88e520725dba60796e58c5bfc7d0f20d4580
[docs] Update es/pipeline_tutorial.md (#30684) * copy en/ contect to es/ * translate first section * translate the doc * fix typos * run make style
[ { "path": "docs/source/es/pipeline_tutorial.md", "patch": "@@ -16,7 +16,7 @@ rendered properly in your Markdown viewer.\n \n # Pipelines para inferencia\n \n-Un [`pipeline`] simplifica el uso de cualquier modelo del [Model Hub](https://huggingface.co/models) para la inferencia en una variedad de tareas como...
2024-05-09T23:42:01
ggml-org/llama.cpp
f3dd7b8e680e37342649024c0ee282c5d60b83da
eed25bc6b052c363aa760d0055282cc2222ccf6e
HIP: add mmf for CDNA (#18896) * refactor mmf rows_per_block * speed up compile * pass cdna compile * fix cuda error * clean up mmf * f32 mmf * clean float mma * fix mmf error * faster mmf * extend tile k * fix compile error * Revert "extend tile k" This reverts commit 4d2ef3d483932659801a59a5af0b6b48f6ffd...
[ { "path": "ggml/src/ggml-cuda/mma.cuh", "patch": "@@ -333,7 +333,33 @@ namespace ggml_cuda_mma {\n \n static __device__ __forceinline__ int get_j(const int l) {\n if constexpr (I == 16 && J == 8) {\n- return 4 * (threadIdx.x / 16) + l;\n+ return ne * (thread...
2026-01-29T10:10:53
nodejs/node
57a716febd9fe6b4e5d39e1f7d03094019bd211e
a82401e68906a725d7d2b269f678f8cc2acfc242
doc: fix typo in changelog for 8.8.0 PR-URL: https://github.com/nodejs/node/pull/16462 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles....
[ { "path": "doc/changelogs/CHANGELOG_V8.md", "patch": "@@ -42,7 +42,7 @@\n * **crypto**:\n - expose ECDH class [#8188](https://github.com/nodejs/node/pull/8188)\n * **http2**:\n- - http2 is now exposed by defualt without the need for a flag [#15685](https://github.com/nodejs/node/pull/15685)\n+ - http2 i...
2017-10-24T22:02:16
rust-lang/rust
45e44878a7d57a8d64802341103a34cfac8f2704
7fe160a60d58456dff82fec397d330f22cb00242
`doc_comment_double_space_linebreaks`: Fix tests
[ { "path": "clippy_lints/src/doc/mod.rs", "patch": "@@ -569,6 +569,7 @@ declare_clippy_lint! {\n }\n \n declare_clippy_lint! {\n+ /// ### What it does\n /// Detects doc comment linebreaks that use double spaces to separate lines, instead of back-slash (`\\`).\n ///\n /// ### Why is this bad?",...
2025-03-01T11:13:46
golang/go
8266570ba71fd6af9c07d8fac945b3710010dfc7
74c3b508ec8bc5643ba0e6a45f2b399d3c7a34ba
encoding/json: added docs to UnsupportedValueError Added godoc to UnsupportedValueError. Change-Id: I5fc13bac0b6e14b3a6eba27c9d3331ff5c5269aa GitHub-Last-Rev: 516cd7a92903e1048caa4d560abf5d66339e5a8f GitHub-Pull-Request: golang/go#41364 Reviewed-on: https://go-review.googlesource.com/c/go/+/254540 Reviewed-by: Daniel...
[ { "path": "src/encoding/json/encode.go", "patch": "@@ -236,6 +236,8 @@ func (e *UnsupportedTypeError) Error() string {\n \treturn \"json: unsupported type: \" + e.Type.String()\n }\n \n+// An UnsupportedValueError is returned by Marshal when attempting\n+// to encode an unsupported value.\n type Unsupported...
2020-09-13T14:40:51
ollama/ollama
7e9405fd0762a8fdbd7a3b3ea7a9268775fd944e
3b0b8930d4d9209ea5919452c908b372428e233d
fix: encode full previous prompt in context (#1424)
[ { "path": "server/routes.go", "patch": "@@ -277,7 +277,7 @@ func GenerateHandler(c *gin.Context) {\n \t\t\t}\n \n \t\t\tif r.Done && !req.Raw {\n-\t\t\t\tembd, err := loaded.runner.Encode(c.Request.Context(), req.Prompt+generated.String())\n+\t\t\t\tembd, err := loaded.runner.Encode(c.Request.Context(), pro...
2023-12-08T21:53:51
huggingface/transformers
7130a22db9033e47b34a5e836b6014d531179f02
5413b8986d4f493607608e98357a2dbf860eb1ec
Generate: consistently handle special tokens as tensors (#30624) * tmp commit * [test_all] mvp * missing not * [test_all] final test fixes * fix musicgen_melody and rag * [test_all] empty commit * PR comments * Update src/transformers/generation/utils.py Co-authored-by: Arthur <48595927+ArthurZ...
[ { "path": "src/transformers/generation/beam_search.py", "patch": "@@ -218,8 +218,8 @@ def process(\n next_scores: torch.FloatTensor,\n next_tokens: torch.LongTensor,\n next_indices: torch.LongTensor,\n- pad_token_id: Optional[int] = None,\n- eos_token_id: Optional[Union...
2024-05-09T17:01:57
ggml-org/llama.cpp
d4964a7c66c4ff935d86c9ac92abeb12073723bf
50e8962f79e3fcb4bf44777194bd4324908d5737
sycl: fix norm kernels: l2_norm, group_norm, rms_norm by remove assert to support more cases (#19154) Co-authored-by: Neo Zhang Jianyu <jianyu.zhang@intel.com>
[ { "path": "ggml/src/ggml-sycl/ggml-sycl.cpp", "patch": "@@ -4606,14 +4606,12 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g\n return (op->type == GGML_TYPE_F32 && op->src[0]->type == GGML_TYPE_F32) && (op->type == op->src[0]->type);\n #endif\n case GG...
2026-01-29T01:20:22
nodejs/node
a9f50842f6c3b75254ca16d42cafcd7f0949c664
068cede663f94f3b7aba11271378b335d337e86e
src: fix http2 debug build errors Currently building with debug enabled produces the following errors: In file included from ../src/node_http2.h:6: ../src/node_http2_core-inl.h:465:18: error: expected ';' after do/while statement CHECK_GT(id, 0) ^ ; ../src/node_http2_core-inl.h:469...
[ { "path": "src/node_http2.cc", "patch": "@@ -89,7 +89,7 @@ ssize_t Http2Session::OnCallbackPadding(size_t frameLen,\n Context::Scope context_scope(context);\n \n #if defined(DEBUG) && DEBUG\n- CHECK(object->Has(context, env()->ongetpadding_string()).FromJust());\n+ CHECK(object()->Has(context, env()->on...
2017-10-24T06:34:02
rust-lang/rust
2fd51b8d3472cbb3384b68f52cc07a573085ffe4
f94f64f5e84e5b55c39be795e4e2a8515bbca517
`doc_comment_double_space_linebreaks`: lint per line instead of by block remove additional lint call fix fix lint defs
[ { "path": "CHANGELOG.md", "patch": "@@ -5570,8 +5570,8 @@ Released 2018-09-13\n [`disallowed_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_type\n [`disallowed_types`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types\n [`diverging_sub_expression`]: ht...
2025-02-13T16:45:43
golang/go
989ab8a7d67c4111d71bd3a8bb2acbe38e16ff5b
2e0f8c379f91f77272d096929cf22391b64d0e34
runtime: drop nosplit from primary lockrank functions acquireLockRank and releaseLockRank are called from nosplit context, and thus must be nosplit. lockWithRank, unlockWithRank, and lockWithRankMayAcquire are called from spittable context, and thus don't strictly need to be nosplit. The stated reasoning for making ...
[ { "path": "src/runtime/lockrank_off.go", "patch": "@@ -18,30 +18,24 @@ func getLockRank(l *mutex) lockRank {\n \treturn 0\n }\n \n-// The following functions may be called in nosplit context.\n-// Nosplit is not strictly required for lockWithRank, unlockWithRank\n-// and lockWithRankMayAcquire, but these no...
2020-09-11T16:14:06
ollama/ollama
3b0b8930d4d9209ea5919452c908b372428e233d
e3f925fc1baeb97a9aa2e08d79dcb829487b7820
fix: only flush template in chat when current role encountered (#1426)
[ { "path": "server/images.go", "patch": "@@ -103,16 +103,16 @@ func (m *Model) ChatPrompt(msgs []api.Message) (string, error) {\n \t}\n \n \tfor _, msg := range msgs {\n-\t\tswitch msg.Role {\n+\t\tswitch strings.ToLower(msg.Role) {\n \t\tcase \"system\":\n-\t\t\tif currentVars.Prompt != \"\" || currentVars....
2023-12-08T21:44:24
huggingface/transformers
218f44135f783fe63d1693a00af2fceb37d14203
df53c6e5d9245315c741ba6cce1e026d4ca104c5
Fix image post-processing for OWLv2 (#30686) * feat: add note about owlv2 * fix: post processing coordinates * remove: workaround document * fix: extra quotes * update: owlv2 docstrings * fix: copies check * feat: add unit test for resize * Update tests/models/owlv2/test_image_processor_owlv2.py ...
[ { "path": "src/transformers/models/owlv2/image_processing_owlv2.py", "patch": "@@ -481,7 +481,6 @@ def preprocess(\n data = {\"pixel_values\": images}\n return BatchFeature(data=data, tensor_type=return_tensors)\n \n- # Copied from transformers.models.owlvit.image_processing_owlvit.OwlViT...
2024-05-09T16:02:03
ggml-org/llama.cpp
f6b533d898ce84bae8d9fa8dfc6697ac087800bf
72d3b1898a9c81152710cc37dd1dfd26764055d9
Vulkan Flash Attention Coopmat1 Refactor (#19075) * vulkan: use coopmat for flash attention p*v matrix multiplication * fix P loading issue * fix barrier position * remove reduction that is no longer needed * move max thread reduction into loop * remove osh padding * add bounds checks and padding * remove unuse...
[ { "path": "ggml/src/ggml-vulkan/ggml-vulkan.cpp", "patch": "@@ -3162,17 +3162,31 @@ static void ggml_vk_load_shaders(vk_device& device) {\n // For scalar, use 128 (arbitrary)\n // The same D_split value is used for both HSK and HSV, so just base it on the union of the LSBs.\n const u...
2026-01-28T17:52:45
nodejs/node
068cede663f94f3b7aba11271378b335d337e86e
274fa6eaafa0096867ecad0ca79a64d313e167d2
2017-10-24, Version 4.8.5 'Argon' (Maintenance) This is a security release. All Node.js users should consult the security release summary at: https://nodejs.org/en/blog/vulnerability/oct-2017-dos/ for details on patched vulnerabilities. Notable Changes: * zlib: - CVE-2017-14919 - In zlib v1.2.9, a change was made...
[ { "path": "CHANGELOG.md", "patch": "@@ -93,7 +93,8 @@ release.\n <a href=\"doc/changelogs/CHANGELOG_V6.md#6.0.0\">6.0.0</a><br/>\n </td>\n <td valign=\"top\">\n-<b><a href=\"doc/changelogs/CHANGELOG_V4.md#4.8.4\">4.8.4</a></b><br/>\n+<b><a href=\"doc/changelogs/CHANGELOG_V4.md#4.8.5\">4.8.5</a></b><br/>...
2017-10-23T07:48:49
rust-lang/rust
f94f64f5e84e5b55c39be795e4e2a8515bbca517
1419ac2982e8c33496f896cc98c4bb4b14c94813
new lint: `doc_comment_double_space_linebreak` fix typo change replacement character in example, remove extraneous space from suggested change add additional testcases; check doc comment not from expansion do not lint on macros, add more testcases fix wording, remove commented out code, add additonal testcase uib...
[ { "path": "CHANGELOG.md", "patch": "@@ -5571,6 +5571,7 @@ Released 2018-09-13\n [`disallowed_types`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types\n [`diverging_sub_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression\n [`doc_include_...
2024-06-01T15:44:27
golang/go
2333c6299f340a5f76a73a4fec6db23ffa388e97
fa04d488bd54b8fdd78cc9bcc6d90de4bf5f8efb
runtime: use old capacity to decide on append growth regime We grow the backing store on append by 2x for small sizes and 1.25x for large sizes. The threshold we use for picking the growth factor used to depend on the old length, not the old capacity. That's kind of unfortunate, because then doing append(s, 0, 0) and ...
[ { "path": "src/runtime/slice.go", "patch": "@@ -146,7 +146,7 @@ func growslice(et *_type, old slice, cap int) slice {\n \tif cap > doublecap {\n \t\tnewcap = cap\n \t} else {\n-\t\tif old.len < 1024 {\n+\t\tif old.cap < 1024 {\n \t\t\tnewcap = doublecap\n \t\t} else {\n \t\t\t// Check 0 < newcap to detect o...
2020-09-25T02:26:33
ollama/ollama
e3f925fc1baeb97a9aa2e08d79dcb829487b7820
2a2289fb6b7e01c862a89c2c97dd856f1407c2b5
fix: restore modelfile system in prompt template (#1425)
[ { "path": "server/images.go", "patch": "@@ -64,6 +64,11 @@ func (m *Model) Prompt(p PromptVars) (string, error) {\n \t\treturn \"\", err\n \t}\n \n+\tif p.System == \"\" {\n+\t\t// use the default system prompt for this model if one is not specified\n+\t\tp.System = m.System\n+\t}\n+\n \tvars := map[string]...
2023-12-08T19:20:19
huggingface/transformers
df53c6e5d9245315c741ba6cce1e026d4ca104c5
297b732bdf25ca60df7ea624f06826f5b14aa6c8
Generate: add `min_p` sampling (#30639) * min_p * more relaxed test to avoid numerical issues * Update src/transformers/generation/logits_process.py Co-authored-by: menhguin <minh1228@gmail.com> * Update src/transformers/generation/configuration_utils.py Co-authored-by: menhguin <minh1228@gmail.com> ...
[ { "path": "docs/source/en/internal/generation_utils.md", "patch": "@@ -167,6 +167,9 @@ generation.\n [[autodoc]] MinNewTokensLengthLogitsProcessor\n - __call__\n \n+[[autodoc]] MinPLogitsWarper\n+ - __call__\n+\n [[autodoc]] NoBadWordsLogitsProcessor\n - __call__\n ", "additions": 3, "del...
2024-05-09T13:36:53
ggml-org/llama.cpp
72d3b1898a9c81152710cc37dd1dfd26764055d9
ebf57258702b23098d7bdcbd46008a95b2401075
spec : add self‑speculative decoding (no draft model required) + refactor (#18471) * server: introduce self-speculative decoding * server: moved self-call into speculative.cpp * can_speculate() includes self-speculation Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * server: can_speculate() tests self-spec...
[ { "path": "CODEOWNERS", "patch": "@@ -18,6 +18,7 @@\n /common/jinja/ @ngxson @CISC @aldehir\n /common/llguidance.* @ggerganov\n /common/log.* @ggerganov\n+/common/ngram-map.* @srogmann\n /common/peg-parser.* ...
2026-01-28T17:42:42
nodejs/node
274fa6eaafa0096867ecad0ca79a64d313e167d2
9aa31bccb4e3ee16d4dc908c083f3d0f9d0e7801
2017-10-24, Version 6.11.5 'Boron' (LTS) This is a security release. All Node.js users should consult the security release summary at: https://nodejs.org/en/blog/vulnerability/oct-2017-dos/ for details on patched vulnerabilities. Notable Changes: * zlib: - CVE-2017-14919 - In zlib v1.2.9, a change was made that c...
[ { "path": "CHANGELOG.md", "patch": "@@ -62,7 +62,8 @@ release.\n <a href=\"doc/changelogs/CHANGELOG_V7.md#7.0.0\">7.0.0</a><br/>\n </td>\n <td valign=\"top\">\n-<b><a href=\"doc/changelogs/CHANGELOG_V6.md#6.11.4\">6.11.4</a></b><br/>\n+<b><a href=\"doc/changelogs/CHANGELOG_V6.md#6.11.5\">6.11.5</a></b...
2017-10-23T07:45:09
golang/go
fa04d488bd54b8fdd78cc9bcc6d90de4bf5f8efb
ea106cc07ac73110a8a25fcc5aef07b283159db0
cmd/asm: fix the issue of moving 128-bit integers to vector registers on arm64 The CL 249758 added `FMOVQ $vcon, Vd` instruction and assembler used 128-bit simd literal-loading to load `$vcon` from pool into 128-bit vector register `Vd`. Because Go does not have 128-bit integers for now, the assembler will report an e...
[ { "path": "src/cmd/asm/internal/arch/arm64.go", "patch": "@@ -82,6 +82,17 @@ func IsARM64STLXR(op obj.As) bool {\n \treturn false\n }\n \n+// IsARM64TBL reports whether the op (as defined by an arm64.A*\n+// constant) is one of the TBL-like instructions and one of its\n+// inputs does not fit into prog.Reg,...
2020-09-16T06:05:18
huggingface/transformers
8c5b3c19cf240ec6d4e195b830b0283a1ff32570
60293bd210327c29e195e72c169ad1f320ef4573
Enable dynamic resolution for vivit (#30630) * feat: enable dynamic resolution for vivit * fix: formatting * remove: print statement for testing * Update src/transformers/models/vivit/modeling_vivit.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> * Update src/transformers/...
[ { "path": "src/transformers/models/vivit/modeling_vivit.py", "patch": "@@ -67,11 +67,12 @@ def __init__(self, config):\n config.num_channels, config.hidden_size, kernel_size=config.tubelet_size, stride=config.tubelet_size\n )\n \n- def forward(self, pixel_values):\n+ def forward(se...
2024-05-09T10:23:39
ggml-org/llama.cpp
60368e1d73b2238c0b5a2897fdaed22172a56160
88d23ad515e60c64db8df22b3de23cba00d044ab
jinja : undefined should be treated as sequence/iterable (return string/array) by filters/tests (#19147) * undefined is treated as iterable (string/array) by filters `tojson` is not a supported `undefined` filter * add tests * add sequence and iterable tests keep it DRY and fix some types
[ { "path": "common/jinja/value.cpp", "patch": "@@ -114,6 +114,18 @@ static T slice(const T & array, int64_t start, int64_t stop, int64_t step = 1) {\n return result;\n }\n \n+template<typename T>\n+static value empty_value_fn(const func_args &) {\n+ if constexpr (std::is_same_v<T, value_int>) {\n+ ...
2026-01-28T13:40:29
huggingface/transformers
60293bd210327c29e195e72c169ad1f320ef4573
f26e4073707189c93915227779a4f6ea3c40d43b
Add dynamic resolution input/interpolate position embedding to SigLIP (#30719) * Add interpolate positional encoding to siglip * Change # of patches for siglip interpolation test * fix formatting * Apply nit suggestions from code review Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github...
[ { "path": "src/transformers/models/siglip/modeling_siglip.py", "patch": "@@ -265,11 +265,53 @@ def __init__(self, config: SiglipVisionConfig):\n self.position_embedding = nn.Embedding(self.num_positions, self.embed_dim)\n self.register_buffer(\"position_ids\", torch.arange(self.num_positions...
2024-05-09T10:10:38
golang/go
ea106cc07ac73110a8a25fcc5aef07b283159db0
f765dcbd5c8205a0d222257b4514b1194cad26f8
cmd/compile: prevent 387+float32+pie from clobbering registers The 387 port needs to load a floating-point control word from a global location to implement float32 arithmetic. When compiling with -pie, loading that control word clobbers an integer register. If that register had something important in it, boom. Fix by...
[ { "path": "src/cmd/compile/internal/x86/387.go", "patch": "@@ -139,12 +139,18 @@ func ssaGenValue387(s *gc.SSAGenState, v *ssa.Value) {\n \t\t// Set precision if needed. 64 bits is the default.\n \t\tswitch v.Op {\n \t\tcase ssa.Op386ADDSS, ssa.Op386SUBSS, ssa.Op386MULSS, ssa.Op386DIVSS:\n-\t\t\tp := s.Pro...
2020-09-24T21:25:21
ollama/ollama
16c75484604a7f5f0acf50961fc026e04ddec464
f9b7d65e2b9253d358b0f4c5f12da67512dc4b5e
fix redundant newline
[ { "path": "cmd/cmd.go", "patch": "@@ -714,11 +714,11 @@ func generateInteractive(cmd *cobra.Command, opts generateOptions) error {\n \t\t\tcase MultilineSystem:\n \t\t\t\topts.System = prompt\n \t\t\t\tprompt = \"\"\n-\t\t\t\tfmt.Println(\"Set system template.\\n\")\n+\t\t\t\tfmt.Println(\"Set system templa...
2023-12-07T21:44:45
nodejs/node
9aa31bccb4e3ee16d4dc908c083f3d0f9d0e7801
41080724571074d19f4975cc7748708ef42a040c
2017-10-24, Node.js Version 8.8.0 (Current) Notable Changes: * crypto: - expose ECDH class https://github.com/nodejs/node/pull/8188 * http2: - http2 is now exposed by defualt without the need for a flag https://github.com/nodejs/node/pull/15685 - a new environment varible NODE\_NO\_HTTP2 has been added ...
[ { "path": "CHANGELOG.md", "patch": "@@ -27,7 +27,8 @@ release.\n </tr>\n <tr>\n <td valign=\"top\">\n-<b><a href=\"doc/changelogs/CHANGELOG_V8.md#8.7.0\">8.7.0</a></b><br/>\n+<b><a href=\"doc/changelogs/CHANGELOG_V8.md#8.8.0\">8.8.0</a></b><br/>\n+<a href=\"doc/changelogs/CHANGELOG_V8.md#8.7.0\">8.7.0</...
2017-10-23T22:35:14
ggml-org/llama.cpp
88d23ad515e60c64db8df22b3de23cba00d044ab
0a95026da9ff86ce48e7c48b802281320cbbd3bf
vulkan: handle device dedup on MacOS + Vega II Duo cards (#19058) Deduplication here relied on the fact that vulkan would return unique UUID for different physical GPUs. It is at the moment not always the case. On Mac Pro 2019 running Mac OS, with 2 Vega II Duo cards (so, 4 GPU total), MotlenVK would assign same UUID ...
[ { "path": "ggml/src/ggml-vulkan/ggml-vulkan.cpp", "patch": "@@ -5522,22 +5522,32 @@ static void ggml_vk_instance_init() {\n \n if ((new_props.properties.deviceType == vk::PhysicalDeviceType::eDiscreteGpu || new_props.properties.deviceType == vk::PhysicalDeviceType::eIntegratedGpu) && ggml_vk_dev...
2026-01-28T11:35:54
golang/go
f765dcbd5c8205a0d222257b4514b1194cad26f8
23cc16cdd2fbda37dd54de944462f57795da7bd2
cmd/compile,cmd/asm: fix buglet in -S=2 output In CL 255718 the -S=2 assembly output was enhanced to dump symbol ABIs. This patch fixes a bug in that CL: when dumping the relocations on a symbol, we were dumping the symbol's ABI as opposed to the relocation target symbol's ABI. Change-Id: I134128687757f549fa37b998cff...
[ { "path": "src/cmd/internal/obj/objfile.go", "patch": "@@ -734,7 +734,7 @@ func (ctxt *Link) writeSymDebugNamed(s *LSym, name string) {\n \t\tif r.Sym != nil {\n \t\t\tname = r.Sym.Name\n \t\t\tif ctxt.Debugasm > 1 {\n-\t\t\t\tver = fmt.Sprintf(\"<%d>\", s.ABI())\n+\t\t\t\tver = fmt.Sprintf(\"<%d>\", r.Sym....
2020-09-24T20:11:43
huggingface/transformers
71c1985069f2e108452db2d276571faed0f38a1f
5962d62bac850cd01ee830ffba880469338c96fd
Immutability for data collators (#30603) * immutability fix for seq2seq as well as immutability tests for the collators * ensure we don't act on none labels and formatting * remove tf/pt in respective tests as they are not required * more type error fixes tf/np * remove todo * apply suggestions from cod...
[ { "path": "src/transformers/data/data_collator.py", "patch": "@@ -585,51 +585,84 @@ class DataCollatorForSeq2Seq:\n def __call__(self, features, return_tensors=None):\n if return_tensors is None:\n return_tensors = self.return_tensors\n- labels = [feature[\"labels\"] for featu...
2024-05-08T16:54:49
ollama/ollama
97c569694570e099c835e3c78a805613ac0777f5
32f62fbb8e0b1ecb4ec8369586562abce86c8e50
fix base urls in chat examples
[ { "path": "docs/api.md", "patch": "@@ -291,6 +291,7 @@ curl http://localhost:11434/api/generate -d '{\n ```\n \n ## Send Chat Messages\n+\n ```shell\n POST /api/chat\n ```\n@@ -312,10 +313,11 @@ Advanced parameters (optional):\n ### Examples\n \n #### Request\n+\n Send a chat message with a streaming respon...
2023-12-06T20:10:20
nodejs/node
41080724571074d19f4975cc7748708ef42a040c
47ed02cec652678a45699674112347cb22e91d7b
build,win: set /MP separately in Debug and Release Setting /MP globally causes it to appear twice in the command line due to a GYP bug, which causes the project to be rebuilt unconditionally due to an msbuild bug. PR-URL: https://github.com/nodejs/node/pull/16415 Fixes: https://github.com/nodejs/node/issues/16367 Rev...
[ { "path": "common.gypi", "patch": "@@ -120,6 +120,7 @@\n 'BasicRuntimeChecks': 3, # /RTC1\n 'AdditionalOptions': [\n '/bigobj', # prevent error C1128 in VS2015\n+ '/MP', # compile across multiple CPUs\n ],\n },\n 'VCLinkerToo...
2017-10-23T16:37:03
ggml-org/llama.cpp
631cbfcc7a21869e2f3f6b78ed88e9863cc5a862
2eee6c866c89bcb101693c8b33fa6e1a7f98932c
cuda : fix "V is K view" check for non-unified KV cache (#19145)
[ { "path": "common/arg.cpp", "patch": "@@ -1295,9 +1295,10 @@ common_params_context common_params_parser_init(common_params & params, llama_ex\n ).set_env(\"LLAMA_ARG_CACHE_RAM\").set_examples({LLAMA_EXAMPLE_SERVER, LLAMA_EXAMPLE_CLI}));\n add_opt(common_arg(\n {\"-kvu\", \"--kv-unified\"},\n...
2026-01-28T07:15:27
golang/go
23cc16cdd2fbda37dd54de944462f57795da7bd2
5824a4ce1a0e47f3093128371c7156b35fe9d806
spec: better variable name for operator example Suggested by @yaxinlx. Fixes #41612. Change-Id: I98b9968a95d090ee3c67ff02678e1874e6d98c33 Reviewed-on: https://go-review.googlesource.com/c/go/+/257159 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@gol...
[ { "path": "doc/go_spec.html", "patch": "@@ -1,6 +1,6 @@\n <!--{\n \t\"Title\": \"The Go Programming Language Specification\",\n-\t\"Subtitle\": \"Version of Jan 14, 2020\",\n+\t\"Subtitle\": \"Version of Sep 24, 2020\",\n \t\"Path\": \"/ref/spec\"\n }-->\n \n@@ -3646,7 +3646,7 @@ <h4 id=\"Operator_precedenc...
2020-09-24T19:44:19
huggingface/transformers
5962d62bac850cd01ee830ffba880469338c96fd
e7a5f45ed1eaa10abed2797e92dde5be10f1be32
Update object detection guide (#30683) * Object detection guide * Minor update * Minor updates, links * Fix typo * Wording, add albu space * Add missing part * Update docs/source/en/tasks/object_detection.md Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> * Update do...
[ { "path": "docs/source/en/tasks/object_detection.md", "patch": "@@ -41,7 +41,8 @@ To see all architectures and checkpoints compatible with this task, we recommend\n Before you begin, make sure you have all the necessary libraries installed:\n \n ```bash\n-pip install -q datasets transformers accelerate eval...
2024-05-08T14:16:14
nodejs/node
47ed02cec652678a45699674112347cb22e91d7b
986be03a4c349dcac7a5fa4c85d81a25af50f02f
http2: fix errors in debug statements When compiling with --debug-http2 flag, compiler complains about passing wrong type of argument to DEBUG_HTTP2. Fix by using static_cast to uint32_t. PR-URL: https://github.com/nodejs/node/pull/16373 Reviewed-By: James M Snell <jasnell@gmail.com>
[ { "path": "src/node_http2.cc", "patch": "@@ -141,42 +141,45 @@ void PackSettings(const FunctionCallbackInfo<Value>& args) {\n \n if (flags & (1 << IDX_SETTINGS_HEADER_TABLE_SIZE)) {\n DEBUG_HTTP2(\"Setting header table size: %d\\n\",\n- buffer[IDX_SETTINGS_HEADER_TABLE_SIZE]);\n+ ...
2017-10-21T23:55:30
huggingface/transformers
998dbe068b778a6142c2161a9f45fde82102d82c
508c0bfe555936fc772cd000e2e8da739f777a4f
Add examples for detection models finetuning (#30422) * Training script for object detection * Evaluation script for object detection * Training script for object detection with eval loop outside trainer * Trainer DETR finetuning * No trainer DETR finetuning * Eval script * Refine object detection ex...
[ { "path": "docs/source/en/model_doc/conditional_detr.md", "patch": "@@ -33,7 +33,8 @@ This model was contributed by [DepuMeng](https://huggingface.co/DepuMeng). The o\n \n ## Resources\n \n-- [Object detection task guide](../tasks/object_detection)\n+- Scripts for finetuning [`ConditionalDetrForObjectDetect...
2024-05-08T10:42:07
golang/go
5824a4ce1a0e47f3093128371c7156b35fe9d806
4cba6c703f68a7c1718e589feaeb2530d7812fbf
cmd/go: error when -c or -i are used with unknown flags Other test flags passed to the test binary, such as -run or -count, are equally pointless when -c or -i are used, since the test binary is never run. However, custom flags in that scenario are far more likely to be due to human error, such as: # note the "ldfla...
[ { "path": "src/cmd/go/internal/test/testflag.go", "patch": "@@ -212,6 +212,10 @@ func testFlags(args []string) (packageNames, passToTest []string) {\n \t\t}\n \t})\n \n+\t// firstUnknownFlag helps us report an error when flags not known to 'go\n+\t// test' are used along with -i or -c.\n+\tfirstUnknownFlag ...
2020-06-12T14:14:42
nodejs/node
986be03a4c349dcac7a5fa4c85d81a25af50f02f
7671f253f2e5aff3ac19843a9dec8817fb1188a8
doc: fix doc styles CONTRIBUTING.md + L857: Unused definition + L861: Unused definition + L863: Unused definition doc/api/assert.md + L719: Unused definition doc/api/async_hooks.md + L460: Missing code-language flag doc/api/child_process.md + L1362: Unused definition doc/api/dns.md + L674: Unused def...
[ { "path": "CONTRIBUTING.md", "patch": "@@ -854,11 +854,8 @@ By making a contribution to this project, I certify that:\n [Building guide]: ./BUILDING.md\n [CI (Continuous Integration) test run]: #ci-testing\n [Code of Conduct]: https://github.com/nodejs/TSC/blob/master/CODE_OF_CONDUCT.md\n-[guide for writing...
2017-10-22T15:51:14
ollama/ollama
38fe1a368bc96b127c02ca40634282a75ada58b2
00d06619a11356a155362013b8fc0bc9d0d8a146
fix: trim space in modelfile fields
[ { "path": "parser/parser.go", "patch": "@@ -37,10 +37,13 @@ func Parse(reader io.Reader) ([]Command, error) {\n \t\tswitch string(bytes.ToUpper(fields[0])) {\n \t\tcase \"FROM\":\n \t\t\tcommand.Name = \"model\"\n-\t\t\tcommand.Args = string(fields[1])\n+\t\t\tcommand.Args = string(bytes.TrimSpace(fields[1]...
2023-12-05T19:57:21
huggingface/transformers
cf7bed98325a0be9d195cb6b66c6a0bef9fccbc8
884e3b1c53099c8d88b3897b903eb79f7cc37c51
Add safetensors to model not found error msg for default use_safetensors value (#30602) * add safetensors to model not found error for default use_safetensors=None case * format code w/ ruff * fix assert true typo
[ { "path": "src/transformers/modeling_utils.py", "patch": "@@ -3270,8 +3270,8 @@ def from_pretrained(\n )\n else:\n raise EnvironmentError(\n- f\"Error no file named {_add_variant(WEIGHTS_NAME, variant)}, {TF2_WEIGHTS_NAME},\"\n- ...
2024-05-07T16:55:27
golang/go
4cba6c703f68a7c1718e589feaeb2530d7812fbf
428509402b03c608e625a4844ab0cce75e4bead2
testing: send t.signal only if there is no panic If a signal is sent to t.signal before the panic is triggered, a panicking test may end up with "warning: no tests to run" because the tRunner that invokes the test in t.Run calls runtime.Goexit on panic, which causes the panicking test not be recorded in runTests. Sen...
[ { "path": "src/cmd/go/testdata/script/test_cleanup_failnow.txt", "patch": "@@ -1,11 +1,25 @@\n # For issue 41355\n [short] skip\n \n+# This test could fail if the testing package does not wait until\n+# a panicking test does the panic. Turn off multithreading, GC, and\n+# async preemption to increase the pr...
2020-09-19T21:32:12
rust-lang/rust
797ef6455e782ec0ec4b6dd725c8ec70746e3e2d
94645f6d102b2e7e720ffa1c759069c378bfd219
htmldocck: catch and error on deprecated syntax
[ { "path": "src/etc/htmldocck.py", "patch": "@@ -297,10 +297,24 @@ def filter_line(line):\n re.X | re.UNICODE,\n )\n \n+DEPRECATED_LINE_PATTERN = re.compile(\n+ r\"\"\"\n+ //\\s+@\n+\"\"\",\n+ re.X | re.UNICODE,\n+)\n+\n \n def get_commands(template):\n with io.open(template, encoding=\"utf-...
2025-02-15T22:49:21
ollama/ollama
00d06619a11356a155362013b8fc0bc9d0d8a146
f1ef3f9947ecf0a63cd7544d3c2d26c2ff5e0915
Revert "chat api (#991)" while context variable is fixed This reverts commit 7a0899d62dee8a55810446dd7655b9e682ddf8ac.
[ { "path": "api/client.go", "patch": "@@ -221,19 +221,6 @@ func (c *Client) Generate(ctx context.Context, req *GenerateRequest, fn Generate\n \t})\n }\n \n-type ChatResponseFunc func(ChatResponse) error\n-\n-func (c *Client) Chat(ctx context.Context, req *ChatRequest, fn ChatResponseFunc) error {\n-\treturn ...
2023-12-05T05:16:27
huggingface/transformers
05ec950c2456f2530bef553e8dd6b77bdfd7c9d4
4208c428f6a42e6f58ab44014e696bdf49def855
Update `workflow_id` in `utils/get_previous_daily_ci.py` (#30695) fix Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
[ { "path": "utils/get_previous_daily_ci.py", "patch": "@@ -14,8 +14,11 @@ def get_daily_ci_runs(token, num_runs=7):\n if token is not None:\n headers = {\"Accept\": \"application/vnd.github+json\", \"Authorization\": f\"Bearer {token}\"}\n \n- # The id of a workflow (not of a workflow run)\n- ...
2024-05-07T14:58:50
golang/go
428509402b03c608e625a4844ab0cce75e4bead2
25a33daa2b7e7bda773705215113450923ae4815
encoding/json: detect cyclic maps and slices Now reports an error if cyclic maps and slices are to be encoded instead of an infinite recursion. This case wasn't handled in CL 187920. Fixes #40745. Change-Id: Ia34b014ecbb71fd2663bb065ba5355a307dbcc15 GitHub-Last-Rev: 6f874944f4065b5237babbb0fdce14c1c74a3c97 GitHub-Pu...
[ { "path": "src/encoding/json/encode.go", "patch": "@@ -779,6 +779,16 @@ func (me mapEncoder) encode(e *encodeState, v reflect.Value, opts encOpts) {\n \t\te.WriteString(\"null\")\n \t\treturn\n \t}\n+\tif e.ptrLevel++; e.ptrLevel > startDetectingCyclesAfter {\n+\t\t// We're a large number of nested ptrEncod...
2020-09-17T14:39:13
rust-lang/rust
94645f6d102b2e7e720ffa1c759069c378bfd219
11e7aaf6e4841274a8023020943e9458700ae3a3
jsondocck: catch and error on deprecated syntax
[ { "path": "src/tools/jsondocck/src/main.rs", "patch": "@@ -166,6 +166,18 @@ static LINE_PATTERN: LazyLock<Regex> = LazyLock::new(|| {\n .unwrap()\n });\n \n+static DEPRECATED_LINE_PATTERN: LazyLock<Regex> = LazyLock::new(|| {\n+ RegexBuilder::new(\n+ r#\"\n+ //\\s+@\n+ \"#,\n+ )\n...
2025-02-15T22:49:00
ollama/ollama
70a93057cdfcc660684db556d2044c9497651778
b2816bca67ae5e47f1c285c5ee72929769932585
refactor layer creation previous layer creation was not ideal because: 1. it required reading the input file multiple times, once to calculate the sha256 checksum, another to write it to disk, and potentially one more to decode the underlying gguf 2. used io.ReadSeeker which is prone to user error. if the file ...
[ { "path": "server/images.go", "patch": "@@ -19,8 +19,6 @@ import (\n \t\"strings\"\n \t\"text/template\"\n \n-\t\"golang.org/x/exp/slices\"\n-\n \t\"github.com/jmorganca/ollama/api\"\n \t\"github.com/jmorganca/ollama/llm\"\n \t\"github.com/jmorganca/ollama/parser\"\n@@ -128,22 +126,10 @@ func (m *Model) Cha...
2023-11-22T21:28:49
golang/go
25a33daa2b7e7bda773705215113450923ae4815
0f55d37d440d83f206bfc00b4a2521c1a0bb258b
encoding/json: allow semicolon in field key / struct tag Allow ';' as a valid character for json field keys and struct tags. Fixes #39189 Change-Id: I4b602a1b0674ff028db07623682f0d1e8e9fd6c9 Reviewed-on: https://go-review.googlesource.com/c/go/+/234818 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Go Bot ...
[ { "path": "src/encoding/json/encode.go", "patch": "@@ -946,7 +946,7 @@ func isValidTag(s string) bool {\n \t}\n \tfor _, c := range s {\n \t\tswitch {\n-\t\tcase strings.ContainsRune(\"!#$%&()*+-./:<=>?@[]^_{|}~ \", c):\n+\t\tcase strings.ContainsRune(\"!#$%&()*+-./:;<=>?@[]^_{|}~ \", c):\n \t\t\t// Backsla...
2020-05-21T15:52:33
ggml-org/llama.cpp
2b4cbd2834e427024bc7f935a1f232aecac6679b
68ac3acb435450d5ba1e62748e17671815313dc3
jinja : implement mixed type object keys (#18955) * implement mixed type object keys * add tests * refactor * minor fixes * massive refactor * add more tests * forgotten tuples * fix array/object is_hashable * correct (albeit broken) jinja responses verified with transformers * improved hashing and equality ...
[ { "path": "common/jinja/runtime.cpp", "patch": "@@ -44,6 +44,12 @@ static std::string get_line_col(const std::string & source, size_t pos) {\n return \"line \" + std::to_string(line) + \", column \" + std::to_string(col);\n }\n \n+static void ensure_key_type_allowed(const value & val) {\n+ if (!val->...
2026-01-27T18:50:42
huggingface/transformers
0ba15cedbcbe9a9db2d5cde76ea4bb712c311934
3733391c532f74ac8c4b13a5961c78602d5e5c82
Reboot Agents (#30387) * Create CodeAgent and ReactAgent * Fix formatting errors * Update documentation for agents * Add custom errors, improve logging * Support variable usage in ReactAgent * add messages * Add message passing format * Create React Code Agent * Update * Refactoring * Fix...
[ { "path": "conftest.py", "patch": "@@ -71,7 +71,7 @@\n \"ModelTester::test_pipeline_\",\n \"/repo_utils/\",\n \"/utils/\",\n- \"/tools/\",\n+ \"/agents/\",\n }\n \n # allow having multiple repository checkouts and not needing to remember to rerun\n@@ -94,7 +94,7 @@ def pytest_configure(con...
2024-05-07T10:59:49
ggml-org/llama.cpp
a83c73a18aaffba253ffd01e7cd3af41feaf8179
fc3cdf32ce5ea3017299d2afb947d3ba9844445a
[CUDA] Reduce CPU-side stalls due to the CUDA command buffer being full (#19042) * [CUDA] Reduce CPU-side stalls due to the CUDA command buffer being full With pipeline parallelism, during prompt processing, the CPU-side CUDA command buffer gets full, stalling the CPU. Due to this, enough work doesn't get submitted t...
[ { "path": "docs/build.md", "patch": "@@ -248,6 +248,14 @@ You may set the [cuda environmental variables](https://docs.nvidia.com/cuda/cuda\n CUDA_VISIBLE_DEVICES=\"-0\" ./build/bin/llama-server --model /srv/models/llama.gguf\n ```\n \n+#### CUDA_SCALE_LAUNCH_QUEUES\n+\n+The environment variable [`CUDA_SCALE...
2026-01-27T06:52:44
golang/go
8e8bfb697fbc948494d67428c4953605cc89b6f4
9e073b504fbb936f54e6be50a41903319a993ce9
crypto/tls: replace errClosed with net.ErrClosed CL 250357 exported net.ErrClosed to allow more reliable detection of closed network connection errors. Use that error in crypto/tls as well. The error message is changed from "tls: use of closed connection" to "use of closed network connection", so the code that detec...
[ { "path": "src/crypto/tls/conn.go", "patch": "@@ -1070,7 +1070,6 @@ func (c *Conn) readHandshake() (interface{}, error) {\n }\n \n var (\n-\terrClosed = errors.New(\"tls: use of closed connection\")\n \terrShutdown = errors.New(\"tls: protocol is shutdown\")\n )\n \n@@ -1080,7 +1079,7 @@ func (c *Conn) Wr...
2020-09-23T18:15:01
ollama/ollama
95cb38ae474848f5c5787916344a96def8c7ce81
1f126afb2d5c742e5534a10d4d518b74ea1f2bf7
install: fix rocky kernel packages
[ { "path": "scripts/install.sh", "patch": "@@ -217,7 +217,7 @@ fi\n \n if ! check_gpu nvidia-smi || [ -z \"$(nvidia-smi | grep -o \"CUDA Version: [0-9]*\\.[0-9]*\")\" ]; then\n case $OS_NAME in\n-\tcentos|rhel) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -d '.' -f 1) ;;\n+ centos|rhel)...
2023-12-02T00:18:21
nodejs/node
b8bc652869683cfb9a22fc4a1b8780d376fff429
7124b466d9c10e12b3bd9a59910032e033f35493
crypto: migrate crypto sign to internal/errors Improve argument type checking and move into js, use internal/errors PR-URL: https://github.com/nodejs/node/pull/15757 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> R...
[ { "path": "lib/internal/crypto/sig.js", "patch": "@@ -13,12 +13,15 @@ const {\n getDefaultEncoding,\n toBuf\n } = require('internal/crypto/util');\n+const { isArrayBufferView } = require('internal/util/types');\n const { Writable } = require('stream');\n const { inherits } = require('util');\n \n functi...
2017-10-03T14:28:26
ggml-org/llama.cpp
fc3cdf32ce5ea3017299d2afb947d3ba9844445a
7afdfc9b844ce38179fc4f0e4caa8b5c9a98db43
common : clarify HTTPS build options in error message (#19103) * common : clarify HTTPS build options in error message This commit updates the https error message to provide clearer instructions for users who encounter the "HTTPS is not supported" error. The motivation for this is that it might not be clear to users...
[ { "path": "common/http.h", "patch": "@@ -60,10 +60,10 @@ static std::pair<httplib::Client, common_http_url> common_http_client(const std:\n #ifndef CPPHTTPLIB_OPENSSL_SUPPORT\n if (parts.scheme == \"https\") {\n throw std::runtime_error(\n- \"HTTPS is not supported. Please rebuild wit...
2026-01-27T05:16:00
golang/go
11cdbab9d4f3e4f0ce690d595933c72df54fad33
1f41f04d2c121ba229072bd954f8346a0fc6d3e4
bytes, internal/bytealg: fix incorrect IndexString usage The IndexString implementation in the bytealg package requires that the string passed into it be in the range '2 <= len(s) <= MaxLen' where MaxLen may be any value (including 0). CL 156998 added calls to bytealg.IndexString where MaxLen was not first checked. T...
[ { "path": "src/bytes/bytes.go", "patch": "@@ -227,19 +227,26 @@ func IndexAny(s []byte, chars string) int {\n \t\t\tcontinue\n \t\t}\n \t\tr, width = utf8.DecodeRune(s[i:])\n-\t\tif r == utf8.RuneError {\n-\t\t\tfor _, r = range chars {\n-\t\t\t\tif r == utf8.RuneError {\n+\t\tif r != utf8.RuneError {\n+\t\...
2020-09-23T10:58:52
huggingface/transformers
9c8979e35fc4d0f991214368b58054573b8747ce
4fda78c3f845232a07318e5f8f3f12bc0c3f6cce
Word-level timestamps broken for short-form audio (#30325) * force chunk_length_s in AutomaticSpeechRecognitionPipeline * compute num_frames even when stride is None * add slow tests * fix test * Update src/transformers/pipelines/automatic_speech_recognition.py Co-authored-by: amyeroberts <22614925+amye...
[ { "path": "src/transformers/pipelines/automatic_speech_recognition.py", "patch": "@@ -446,6 +446,8 @@ def preprocess(self, inputs, chunk_length_s=0, stride_length_s=None):\n processed = self.feature_extractor(\n inputs, sampling_rate=self.feature_extractor.sampling_rate, ...
2024-05-07T09:17:27
ggml-org/llama.cpp
b0311c16d2f650a8bd5af652549075b458bd713a
8f80d1b254aef70a0959e314be368d05debe7294
CUDA: fix padding of GQA to power of 2 in FA (#19115)
[ { "path": "ggml/src/ggml-cuda/fattn-common.cuh", "patch": "@@ -629,8 +629,8 @@ static __global__ void flash_attn_mask_to_KV_max(\n template<int D, int ncols1, int ncols2> // D == head size\n __launch_bounds__(D, 1)\n static __global__ void flash_attn_stream_k_fixup(\n- float * __restrict__ dst, const...
2026-01-26T22:24:58
nodejs/node
7124b466d9c10e12b3bd9a59910032e033f35493
4eb9365d6641ab0aaface2528404d00ec20f98c5
crypto: refactor argument validation for pbkdf2 Move input argument validation to js, using internal/errors. Also update docs * `password` and `salt` may be Buffers or any TypedArrays * `crypto.DEFAULT_ENCODING` changes the returned derivedKey type PR-URL: https://github.com/nodejs/node/pull/15746 Reviewed-By: Luig...
[ { "path": "doc/api/crypto.md", "patch": "@@ -1587,8 +1587,8 @@ changes:\n description: The default encoding for `password` if it is a string changed\n from `binary` to `utf8`.\n -->\n-- `password` {string}\n-- `salt` {string}\n+- `password` {string|Buffer|TypedArray}\n+- `salt` {string|...
2017-10-03T03:56:49
rust-lang/rust
2cd3ea1f9d756f9029e969ed1758492e7620ab99
31236a491571f6fcf3d3be458ada764848f85734
fix[`missing_asserts_for_indexing`]: ignore lint if first index is highest
[ { "path": "clippy_lints/src/missing_asserts_for_indexing.rs", "patch": "@@ -168,6 +168,7 @@ enum IndexEntry<'hir> {\n /// if the `assert!` asserts the right length.\n AssertWithIndex {\n highest_index: usize,\n+ is_first_highest: bool,\n asserted_len: usize,\n assert_s...
2025-01-29T13:57:32
golang/go
0a9dd47dd817904ec2b4a80b551e6050218ee8a6
d2bd93a01096ac6dc8061112e7a9ac62ec239627
net: reflect TCP backlog size update of uint16->uint32 on Linux The sk_max_ack_backlog was increased from uint16 to uint32 in kernel version 4.1 and above, so adopt that change to maxListenerBacklog. See https://github.com/torvalds/linux/commit/becb74f0acca19b5abfcb24dc602530f3deea66a Fixes #41470 Change-Id: I63a14...
[ { "path": "src/net/sock_linux.go", "patch": "@@ -6,6 +6,62 @@ package net\n \n import \"syscall\"\n \n+func kernelVersion() (major int, minor int) {\n+\tvar uname syscall.Utsname\n+\tif err := syscall.Uname(&uname); err != nil {\n+\t\treturn\n+\t}\n+\n+\trl := uname.Release\n+\tvar values [2]int\n+\tvi := 0...
2020-09-22T02:30:31
ggml-org/llama.cpp
8f80d1b254aef70a0959e314be368d05debe7294
142cbe2ac68978e5dec3a2e19c1b64ef1c5740b1
graph : fix nkvo offload with FA (#19105)
[ { "path": "src/llama-context.cpp", "patch": "@@ -2173,13 +2173,6 @@ llm_graph_cb llama_context::graph_get_cb() const {\n ggml_set_name(cur, name);\n }\n \n- if (!cparams.offload_kqv) {\n- if (strcmp(name, \"kqv_merged_cont\") == 0) {\n- // all nodes betwe...
2026-01-26T18:18:34
huggingface/transformers
4fda78c3f845232a07318e5f8f3f12bc0c3f6cce
54a2361a29abe9e0e6a299f5c9986fd85e5d1699
Fix `cache_position` initialisation for generation with `use_cache=False` (#30485) * Fix cache_position init for generation * Update src/transformers/generation/utils.py Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com> * Fix cache position update --------- Co-authored-by: Arthur <...
[ { "path": "src/transformers/generation/utils.py", "patch": "@@ -667,7 +667,11 @@ def _update_model_kwargs_for_generation(\n dim=-1,\n )\n \n- if \"cache_position\" in model_kwargs and model_kwargs[\"cache_position\"] is not None:\n+ if (\n+ model_...
2024-05-07T09:13:11
ollama/ollama
bb80a597dbb3dcdcb8465d7813aa4fe3905a4be2
6681d378617fa83da16861c06f8439304b1188f8
Fix adapter loading from SHA hash
[ { "path": "server/images.go", "patch": "@@ -375,6 +375,15 @@ func CreateModel(ctx context.Context, name, modelFileDir string, commands []pars\n \t\t\tlayer.MediaType = mediatype\n \t\t\tlayers = append(layers, layer)\n \t\tcase \"adapter\":\n+\t\t\tif strings.HasPrefix(c.Args, \"@\") {\n+\t\t\t\tblobPath, e...
2023-12-01T18:50:55
rust-lang/rust
31236a491571f6fcf3d3be458ada764848f85734
817853044f151d12098442709713c54dc543c46e
fix[`missing_asserts_for_indexing`]: ignore asserts after indexing
[ { "path": "clippy_lints/src/missing_asserts_for_indexing.rs", "patch": "@@ -244,14 +244,16 @@ fn check_index<'hir>(cx: &LateContext<'_>, expr: &'hir Expr<'hir>, map: &mut Uni\n assert_span,\n slice,\n } => {\n- *entry = IndexEntry::A...
2025-01-29T09:36:03
nodejs/node
f16b9c189ae6742912c5ef561e773bfabd222834
82b1660b1d7921a9b7d55156bd67f17da34eb106
http2: multiple style and performance updates * move CHECK statements into DEBUG checks * improve performance by removing branches * Several if checks were left in while the code was being developed. Now that the core API has stablized more, the checks are largely unnecessary and can be removed, yielding a s...
[ { "path": "lib/internal/http2/core.js", "patch": "@@ -279,19 +279,13 @@ function onSessionRead(nread, buf, handle) {\n assert(stream !== undefined,\n 'Internal HTTP/2 Failure. Stream does not exist. Please ' +\n 'report this as a bug in Node.js');\n- const state = stream[kState];\n _u...
2017-10-16T17:43:54
golang/go
2813e22ef841018d6e51bf3c70f5d65ea40065ca
8f8a8e8921eb46ffba9a5400a259e21eb2011bb7
crypto/des: fix typo in permuteInitialBlock function comments Fixes #41398 Change-Id: Ib47b8ec43bb11d8cd13c24f833532434127c7532 Reviewed-on: https://go-review.googlesource.com/c/go/+/254980 Reviewed-by: Roland Shoemaker <roland@golang.org> Trust: Roland Shoemaker <roland@golang.org> Trust: Katie Hockman <katie@golang...
[ { "path": "src/crypto/des/block.go", "patch": "@@ -127,7 +127,7 @@ func permuteInitialBlock(block uint64) uint64 {\n \tb2 = (block & 0xff00ff00)\n \tblock ^= b1<<32 ^ b2 ^ b1<<8 ^ b2<<24 // exchange b0 b4 with b3 b7\n \n-\t// block is now b1 b3 b5 b7 b0 b2 b4 b7, the permutation:\n+\t// block is now b1 b3 b...
2020-09-15T11:53:42
ggml-org/llama.cpp
0440bfd1605333726ea0fb7a836942660bf2f9a6
0bf56369384ff1af2731cd1168785e283a1ba266
metal : fix recommendedMaxWorkingSetSize availability on legacy iOS/macOS (#19088) Co-authored-by: chenbin11 <chenbin11@kuaishou.com>
[ { "path": "ggml/src/ggml-metal/ggml-metal-device.m", "patch": "@@ -785,8 +785,12 @@ ggml_metal_device_t ggml_metal_device_init(void) {\n dev->props.op_offload_min_batch_size = getenv(\"GGML_OP_OFFLOAD_MIN_BATCH\") ? atoi(getenv(\"GGML_OP_OFFLOAD_MIN_BATCH\")) : 32;\n \n dev->props.m...
2026-01-25T18:07:19
ollama/ollama
5687f1a0cfa3d2408bfcb04f4342f657f6dada58
7eda3d0c55baab6a481eb3348586d93b299d467b
fix `unexpected end of response` errors when cancelling in `ollama run`
[ { "path": "cmd/cmd.go", "patch": "@@ -496,12 +496,10 @@ func generate(cmd *cobra.Command, opts generateOptions) error {\n \n \tsigChan := make(chan os.Signal, 1)\n \tsignal.Notify(sigChan, syscall.SIGINT)\n-\tvar abort bool\n \n \tgo func() {\n \t\t<-sigChan\n \t\tcancel()\n-\t\tabort = true\n \t}()\n \n \t...
2023-11-30T05:30:16
huggingface/transformers
54a2361a29abe9e0e6a299f5c9986fd85e5d1699
ce47582d812f8c14aa4a89f46508c3ada12de15b
Adding _tie_weights() to prediction heads to support low_cpu_mem_usage=True (#29024) * Adding _tie_weights() to prediction heads to support low_cpu_mem_usage=True * Testing for the non-safe-tensors case, since the default is safe-tensors already * Running fixup/fix-copies * Adding accelerate annotations to te...
[ { "path": "src/transformers/models/albert/modeling_albert.py", "patch": "@@ -877,8 +877,12 @@ def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:\n return prediction_scores\n \n def _tie_weights(self) -> None:\n- # To tie those two weights if they get disconnected (on TPU or w...
2024-05-07T09:12:21
nodejs/node
c30f107103e1f7e86657ddfc074eb502ece70b5f
eb2fbd159fe6f8b6dbb89ecc44cd85234bd9e14a
http2: allow port 80 in http2.connect Due to how WHATWG-URL parser works, port numbers are omitted if they are the default port for a scheme. This meant that http2.connect could not accept connections on port 80 with http scheme. Fix this bug by detecting http: scheme and setting port to 80. PR-URL: https://github.co...
[ { "path": "lib/internal/http2/core.js", "patch": "@@ -2419,7 +2419,8 @@ function connect(authority, options, listener) {\n debug(`connecting to ${authority}`);\n \n const protocol = authority.protocol || options.protocol || 'https:';\n- const port = '' + (authority.port !== '' ? authority.port : 443);\...
2017-10-20T11:38:15
golang/go
095f66f662ac73e2aafbc369c59fc3870eb9b86f
ea42b771e9f0726b0e10278df0b5759b984e9cc3
cmd/go/internal/modget: if building packages, only update go.mod if the build succeeds Fixes #41315 Change-Id: I5b18a0c2d1d72ff556a882e862b95133deb3ef98 Reviewed-on: https://go-review.googlesource.com/c/go/+/255970 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Resul...
[ { "path": "src/cmd/go/internal/modget/get.go", "patch": "@@ -588,6 +588,20 @@ func runGet(ctx context.Context, cmd *base.Command, args []string) {\n \t\tmodload.LoadPackages(ctx, loadOpts, pkgPatterns...)\n \t}\n \n+\t// If -d was specified, we're done after the module work.\n+\t// We've already downloaded ...
2020-09-18T18:15:56
ggml-org/llama.cpp
bcb43163aed6a8986cf3d66e90848c9c258d4936
d9c6ce46f747189cd6238ca7699253613f77c016
ggml-cpu: Use tiled FA for prompt-processing (#19012) * ggml-cpu: Use tiled FA for prompt-processing the FA performance is gimped on CPU on long contexts because it essentially uses a vector kernel. This PR adds a tiled FA for PP. Perf tuning for tile sizes done on a AMD EPYC single-socket 64-c machine. * fix out of...
[ { "path": "ggml/src/ggml-cpu/common.h", "patch": "@@ -6,6 +6,9 @@\n #include \"ggml-impl.h\"\n #include \"simd-mappings.h\"\n \n+#define GGML_FA_TILE_Q 32\n+#define GGML_FA_TILE_KV 16\n+\n #ifdef __cplusplus\n \n #include <utility>\n@@ -84,4 +87,9 @@ static std::pair<int64_t, int64_t> get_thread_range(cons...
2026-01-25T15:25:58
huggingface/transformers
277db238b70c5c8bb5a445b75becbfd79644db42
df475bf8e62e843bfd4f604b81696b2d950ec990
Fix typo: llama3.md (#30653) Update llama3.md fix typo
[ { "path": "docs/source/en/model_doc/llama3.md", "patch": "@@ -82,4 +82,4 @@ pipeline(\"Hey how are you doing today?\")\n ```\n \n ## Resources\n-A ton of cool resources are already available on the documentation page of [~llama2], inviting contributors to add new recourses curated for Llama3 here! 🤗\n+A to...
2024-05-06T13:54:39
ollama/ollama
13efd5f2188f9e43600b9efef14fce21995b7a51
c4bdfffd96da9fc4b0f7c97d2a79f5497469539b
upload: fix PUT retry
[ { "path": "server/upload.go", "patch": "@@ -194,24 +194,22 @@ func (b *blobUpload) Run(ctx context.Context, opts *RegistryOptions) {\n \theaders.Set(\"Content-Length\", \"0\")\n \n \tfor try := 0; try < maxRetries; try++ {\n-\t\tresp, err := makeRequestWithRetry(ctx, http.MethodPut, requestURL, headers, nil...
2023-11-29T23:18:53
nodejs/node
88e55fe5e0dc0c8da72a64677b278b41d5e5ed22
3e25e4d00f382641af1c78a28b02296bef686c1e
vm: deprecate vm.runInDebugContext PR-URL: https://github.com/nodejs/node/pull/12815 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com>
[ { "path": "doc/api/deprecations.md", "patch": "@@ -598,7 +598,7 @@ a V8-inspector based CLI debugger available through `node inspect`.\n <a id=\"DEP0069\"></a>\n ### DEP0069: vm.runInDebugContext(string)\n \n-Type: Documentation-only\n+Type: Runtime\n \n The DebugContext will be removed in V8 soon and will ...
2017-05-03T19:02:03