Skip to content

Many design changes + optimizations. #167

Many design changes + optimizations.

Many design changes + optimizations. #167

Triggered via pull request August 12, 2024 11:54
Status Cancelled
Total duration 6m 20s
Artifacts

CI.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 2 warnings
Julia 1.10 - ubuntu-latest - x64 - pull_request
Process completed with exit code 1.
Documentation: src/infra/config.jl#L141
doctest failure in ~/work/ColBERT.jl/ColBERT.jl/src/infra/config.jl:141-154 ```jldoctest julia> using ColBERT; julia> config = ColBERTConfig( use_gpu = true, collection = "/home/codetalker7/documents", index_path = "./local_index" ); julia> ColBERT.save(config); julia> ColBERT.load_config("./local_index") ColBERTConfig(true, 0, 1, "[unused0]", "[unused1]", "[Q]", "[D]", "colbert-ir/colbertv2.0", "/home/codetalker7/documents", 128, 220, true, 32, false, "./local_index", 64, 2, 20, 2, 8192) ``` Subexpression: ColBERT.load_config("./local_index") Evaluated output: ERROR: MethodError: Cannot `convert` an object of type Nothing to an object of type Int64 Closest candidates are: convert(::Type{T}, !Matched::Flux.NilNumber.Nil) where T<:Number @ Flux ~/.julia/packages/Flux/0NspH/src/outputsize.jl:20 convert(::Type{T}, !Matched::SentinelArrays.ChainedVectorIndex) where T<:Union{Signed, Unsigned} @ SentinelArrays ~/.julia/packages/SentinelArrays/V85ev/src/chainedvector.jl:215 convert(::Type{To}, !Matched::PrimitiveOneHot.OneHot) where To<:Number @ PrimitiveOneHot ~/.julia/packages/PrimitiveOneHot/sLiWP/src/primitive.jl:62 ... Stacktrace: [1] convert(::Type{Union{Missing, Int64}}, x::Nothing) @ Base ./missing.jl:70 [2] ColBERTConfig(use_gpu::Bool, rank::Int64, nranks::Int64, query_token_id::String, doc_token_id::String, query_token::String, doc_token::String, checkpoint::String, collection::String, dim::Int64, doc_maxlen::Int64, mask_punctuation::Bool, query_maxlen::Int64, attend_to_mask_tokens::Bool, index_path::String, index_bsize::Int64, chunksize::Nothing, passages_batch_size::Int64, nbits::Int64, kmeans_niters::Int64, nprobe::Int64, ncandidates::Int64) @ ColBERT ~/work/ColBERT.jl/ColBERT.jl/src/infra/config.jl:57 [3] ColBERTConfig(; use_gpu::Bool, rank::Int64, nranks::Int64, query_token_id::String, doc_token_id::String, query_token::String, doc_token::String, checkpoint::String, collection::String, dim::Int64, doc_maxlen::Int64, mask_punctuation::Bool, query_maxlen::Int64, attend_to_mask_tokens::Bool, index_path::String, index_bsize::Int64, chunksize::Nothing, passages_batch_size::Int64, nbits::Int64, kmeans_niters::Int64, nprobe::Int64, ncandidates::Int64) @ ColBERT ~/work/ColBERT.jl/ColBERT.jl/src/infra/config.jl:55 [4] top-level scope @ none:1 [5] eval @ ./boot.jl:385 [inlined] [6] eval @ ~/work/ColBERT.jl/ColBERT.jl/src/ColBERT.jl:1 [inlined] [7] load_config(index_path::String) @ ColBERT ~/work/ColBERT.jl/ColBERT.jl/src/infra/config.jl:159 [8] top-level scope @ none:1 Expected output: ColBERTConfig(true, 0, 1, "[unused0]", "[unused1]", "[Q]", "[D]", "colbert-ir/colbertv2.0", "/home/codetalker7/documents", 128, 220, true, 32, false, "./local_index", 64, 2, 20, 2, 8192) diff = Warning: Diff output requires color. ColBERTConfig(true, 0, 1, "[unused0]", "[unused1]", "[Q]", "[D]", "colbert-ir/colbertv2.0", "/home/codetalker7/documents", 128, 220, true, 32, false, "./local_index", 64, 2, 20, 2, 8192)ERROR: MethodError: Cannot `convert` an object of type Nothing to an object of type Int64 Closest candidates are: convert(::Type{T}, !Matched::Flux.NilNumber.Nil) where T<:Number @ Flux ~/.julia/packages/Flux/0NspH/src/outputsize.jl:20 convert(::Type{T}, !Matched::SentinelArrays.ChainedVectorIndex) where T<:Union{Signed, Unsigned} @ SentinelArrays ~/.julia/packages/SentinelArrays/V85ev/src/chainedvector.jl:215 convert(::Type{To}, !Matched::PrimitiveOneHot.OneHot) where To<:Number @ PrimitiveOneHot ~/.julia/packages/PrimitiveOneHot/sLiWP/src/primitive.jl:62 ... Stacktrace: [1] convert(::Type{Union{Missing, Int64}}, x::Nothing) @ Base ./missing.jl:70 [2] ColBERTConfig(use_gpu::Bool, rank::Int64, nranks::Int64, query_token_id::String, doc_token_id::String, query_token::String, doc_token::String, checkpoint::String, collection::String, dim::Int64, doc_maxlen::Int64, mask_punctuation::Bool, query_maxlen::Int64, attend_to_mask_tokens::Bool, index_p
Documentation
Process completed with exit code 1.
Julia nightly - ubuntu-latest - x64 - pull_request
Canceling since a higher priority waiting request for 'CI-refs/pull/27/merge' exists
Julia 1.10 - ubuntu-latest - x64 - pull_request
The following actions uses Node.js version which is deprecated and will be forced to run on node20: julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Documentation
The following actions uses Node.js version which is deprecated and will be forced to run on node20: julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/