6 views

higgsfield-ai/higgsfield

Fault-tolerant, highly scalable GPU orchestration, and a machine learning framework designed for training models with billions to trillions of parameters

Jupyter Notebook★ 5,468+465 that day#7 on trending

Analyzed September 21, 2026 at d12a36e (main) with jscpd 5.4.0 in 0.0s. Code duplication stayed at 8.39% across 2 appearances since Sep 20.

D47.4/100
Project health3,906 lines of code (S)
Duplication58
8.4% in python, bash, perl
Dead code16
30.6%
Complexity91
0%

The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.

8.39%duplicated code · 310 of 3,694 lines
15clones in code
39code files of 55 scanned
7.07%duplicated over all files · 16 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 1 generated file: higgsfield/internal/experiment/builder.py.

Largest clones in the code

  • 45 lines in 2 placespython271 tokens
    182def __call__(self, batch):
    183    local_rank = int(os.environ["LOCAL_RANK"])
    184
    185    for key in batch.keys():
    186        batch[key] = batch[key].to(local_rank)
    187
    188    if self.precision == "fp16":
    189        with torch.cuda.amp.autocast():
    190            loss = super().__call__(**batch).loss
    191    else:
    

    First 10 of 45 lines.

  • 49 lines in 2 placespython177 tokens
    121        LlamaDecoderLayer,
    122    }
    123)
    124
    125if zero_stage == 0:
    126    sharding_strategy = ShardingStrategy.NO_SHARD
    127
    128elif zero_stage == 1:
    129    raise NotImplementedError("stage 1 is not supported. Only 0 2 3")
    130
    

    First 10 of 49 lines.

  • 38 lines in 2 placespython119 tokens
    83            model = LlamaForCausalLM(llama_config)
    84
    85if fast_attn:
    86    #raise NotImplementedError("Fast attention is not supported yet")
    87    model = BetterTransformer.transform(model)
    88
    89fpSixteen = MixedPrecision(
    90    param_dtype=torch.float16,
    91    reduce_dtype=torch.float16,
    92    buffer_dtype=torch.float16,
    
    64    model.resize_token_embeddings(num_embeddings)
    65
    66
    67if fast_attn:
    68    #raise NotImplementedError("Fast attention is not supported yet")
    69    model = BetterTransformer.transform(model)
    70
    71fpSixteen = MixedPrecision(
    72    param_dtype=torch.float16,
    73    reduce_dtype=torch.float16,
    

    First 10 of 38 lines, the second copy on the right.

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
python292,8761531010.78%
bash9644000%
perl1174000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
python343,2141634310.67%
markdown6704000%
bash10655000%
perl1174000%
yaml257000%
toml129000%
text121000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Sep 21, 2026#75,468 (+465)554,854167.07%8.39%D 47.4d12a36e
Sep 20, 2026#55,031 (+196)554,854167.07%8.39%D 47.4d12a36e

Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.