higgsfield-ai/higgsfield
Fault-tolerant, highly scalable GPU orchestration, and a machine learning framework designed for training models with billions to trillions of parameters
The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
Most complex files
- higgsfield/internal/experiment/params.py49 cx
- higgsfield/internal/experiment/ast_parser.py42 cx
- higgsfield/rl/rl_adventure_2/common/multiprocessing_env.py39 cx
- higgsfield/llama/llama.py31 cx
- higgsfield/internal/cfg.py24 cx
- higgsfield/internal/experiment/decorator.py24 cx
- higgsfield/mistral/mistral.py24 cx
- higgsfield/path.py23 cx
- higgsfield/internal/ci/setup.py20 cx
- .git/hooks/fsmonitor-watchman.sample19 cx
Dead code 30.59% unused · 23 findings
- higgsfield/mistral/mistral.pyunused-file
- higgsfield/rl/rl_adventure_2/common/multiprocessing_env.pyunused-file
- higgsfield/path.pyunused-file
- higgsfield/mistral/mistral_loader.pyunused-file
- higgsfield/static/project/src/alpaca_fp16.pyunused-file
- higgsfield/static/project/src/alpaca_bf16.pyunused-file
- higgsfield/dataset/openai.pyunused-file
- higgsfield/static/project/src/dataset.pyunused-file
- higgsfield/utils/flush.pyunused-file
- higgsfield/mistral/mistral_utils.pyunused-file
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") 130First 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
- 10 lines in 3 placespython52 tokens
- 18 lines in 2 placespython90 tokens
- 26 lines in 2 placespython82 tokens
- 11 lines in 2 placespython79 tokens
- 21 lines in 2 placespython75 tokens
- 20 lines in 2 placespython75 tokens
- 9 lines in 2 placespython63 tokens
Largest clones over all files, tests and data included
- 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") 130First 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.
- 33 lines in 2 placespython112 tokens
- 10 lines in 3 placespython52 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 29 | 2,876 | 15 | 310 | 10.78% |
| bash | 9 | 644 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 34 | 3,214 | 16 | 343 | 10.67% |
| markdown | 6 | 704 | 0 | 0 | 0% |
| bash | 10 | 655 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| yaml | 2 | 57 | 0 | 0 | 0% |
| toml | 1 | 29 | 0 | 0 | 0% |
| text | 1 | 21 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 21, 2026 | #7 | 5,468 (+465) | 55 | 4,854 | 16 | 7.07% | 8.39% | D 47.4 | d12a36e |
| Sep 20, 2026 | #5 | 5,031 (+196) | 55 | 4,854 | 16 | 7.07% | 8.39% | D 47.4 | d12a36e |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.