Publish MIC usage, slim fixture and reviewed Transformers expectations
Browse filesFiles changed (21)
- .mic-repo.jsonAdded+7
- README.mdAdded+38
- build.jsonAdded+135
- config.jsonAdded+34
- generation_config.jsonAdded+11
- integration.jsonAdded+87
- integrations/transformers/expectations/cpu-x86_64-bf16/plbart-java-cs-mic.bfloat16.jsonAdded+339
- integrations/transformers/expectations/cpu-x86_64-bf16/plbart-java-cs.bfloat16.jsonAdded+328
- integrations/transformers/expectations/cpu-x86_64/plbart-java-cs-mic.eager.jsonAdded+339
- integrations/transformers/expectations/cpu-x86_64/plbart-java-cs-mic.jsonAdded+339
- integrations/transformers/expectations/cpu-x86_64/plbart-java-cs.eager.jsonAdded+328
- integrations/transformers/expectations/cpu-x86_64/plbart-java-cs.jsonAdded+328
- integrations/transformers/expectations/cuda/plbart-java-cs-mic.bfloat16.jsonAdded+340
- integrations/transformers/expectations/cuda/plbart-java-cs-mic.eager.jsonAdded+340
- integrations/transformers/expectations/cuda/plbart-java-cs-mic.jsonAdded+340
- integrations/transformers/expectations/cuda/plbart-java-cs.bfloat16.jsonAdded+329
- integrations/transformers/expectations/cuda/plbart-java-cs.eager.jsonAdded+329
- integrations/transformers/expectations/cuda/plbart-java-cs.jsonAdded+329
- integrations/transformers/usage.mdAdded+90
- model.safetensorsAdded+3
- sentencepiece.bpe.modelAdded+3
1234567{ "format": "mic-umbrella-v1", "contract_files": [ "integration.json", "integrations/transformers/usage.md" ]}1234567891011121314151617181920212223242526272829303132333435363738---tags: - mic - test-artifactbase_model: uclanlp/plbart-java-cs---
# plbart-java-cs-mic
Slim model weights, executable usage and framework expectations in one repository.
- [Contract manifest](integration.json)- [Transformers usage](integrations/transformers/usage.md)- [Transformers expectations](integrations/transformers/expectations)- [Fixture provenance](build.json)- [How the fixture was shrunk](https://huggingface-mic-mic-coverage.static.hf.space/shrink/plbart-java-cs-mic.html)
## Contract
### PLBart code translation
Runnable usage and the framework expectations directory are linked above.
## Slim model
### Slim fixture: plbart-java-cs-mic
A 3.5M-parameter fixture for the [PLBart MIC](https://huggingface.co/huggingface-mic/plbart-java-cs-mic), covering [`uclanlp/plbart-java-cs`](https://huggingface.co/uclanlp/plbart-java-cs). It is a test artifact, not a usable model, tagged `test-artifact` to keep it out of candidate-model search.
- **Fixture key `cac9f40f742c`.** It covers every checkpoint whose processor files are byte-identical and whose config matches after shrinking.- **Same architecture, smaller config:** `PLBartForConditionalGeneration`, shrunk by the generic rule in [`sweep.py`](https://github.com/huggingface/transformers-mic/blob/main/experiments/sweep.py) (encoder_layers 2, decoder_layers 2).- **Processor files copied byte for byte** from `uclanlp/plbart-java-cs`: `sentencepiece.bpe.model`.- **Random weights (seed 17).** They passed the input-sensitivity gate: every perturbation of the contract's inputs moved the logits by at least 0.001 (weakest: `attention_mask:all_ones`, 0.0063), so no training was needed.- **Same tensor names as the real checkpoint.** The real checkpoint has every parameter, and so does the fixture.- **Saved in float32**, the dtype `uclanlp/plbart-java-cs` loads in by default.- **Finite in float32, bfloat16, and float16** (forward, loss, gradients).
Built by [`build_fixtures.py`](https://github.com/huggingface/transformers-mic/blob/main/example/build_fixtures.py); [`build.json`](build.json) records the pinned sources, gate results, and file hashes. This repository includes the slim weights, usage and framework expectations; rebuild the other files with `python example/build_fixtures.py --fixture plbart-java-cs-mic`.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135{ "fixture": "huggingface-mic/plbart-java-cs-mic", "key": "cac9f40f742c39637b23fe32b8e6462905c9aa0788de7b679b9a6b6aa5fdd7d5", "key_fields": { "architectures": [ "PLBartForConditionalGeneration" ], "output_hidden_states": false, "return_dict": true, "chunk_size_feed_forward": 0, "is_encoder_decoder": true, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "problem_type": null, "vocab_size": 50005, "max_position_embeddings": 1024, "encoder_layers": 2, "encoder_ffn_dim": 128, "encoder_attention_heads": 4, "decoder_layers": 2, "decoder_ffn_dim": 128, "decoder_attention_heads": 4, "encoder_layerdrop": 0.0, "decoder_layerdrop": 0.0, "use_cache": true, "activation_function": "gelu", "d_model": 64, "dropout": 0.1, "attention_dropout": 0.1, "activation_dropout": 0.0, "init_std": 0.02, "classifier_dropout": 0.0, "scale_embedding": true, "pad_token_id": 1, "bos_token_id": 0, "eos_token_id": 2, "forced_eos_token_id": 2, "is_decoder": false, "tie_word_embeddings": true, "model_type": "plbart", "output_attentions": false }, "covers": { "uclanlp/plbart-java-cs": "0426c742606ceb3c2e12de0ae9c46a969bba6023" }, "built_from": { "repo": "uclanlp/plbart-java-cs", "revision": "0426c742606ceb3c2e12de0ae9c46a969bba6023" }, "seed": 17, "dtype": "float32", "builder": "example/build_fixtures.py", "builder_revision": "e0a6b1514964849b9340055e7d6d8ac67e21e051", "recipe": { "seed": 17 }, "shrink": "rule", "model_class": "PLBartForConditionalGeneration", "parameters": 3499328, "missing_parameters": [], "serialization": { "file": "model.safetensors", "source_file": "pytorch_model.bin", "reverted_conversions": [] }, "checkpoint_inspection": "parameter headers/indexes; bounded binary fallback", "numeric_health_scope": "CPU float32/bfloat16/float16; autocast for low-precision losses", "captured": { "call": "training step", "inputs": [ "attention_mask", "input_ids", "labels" ], "class": "PLBartForConditionalGeneration" }, "weights": "random", "gate": { "random": { "pass": true, "accepted_insensitive": {}, "threshold": 0.001, "deltas": { "input_ids:roll_batch": 0.006489932537078857, "input_ids:reverse": 0.010007187724113464, "attention_mask:all_ones": 0.0062996819615364075 }, "weakest": "attention_mask:all_ones", "no_perturbation_defined": [], "not_a_forward_parameter": [] } }, "numeric_health": { "float32": { "outputs_finite": true, "loss_finite": true, "gradients_finite": true, "finite": true }, "bfloat16": { "outputs_finite": true, "loss_finite": true, "gradients_finite": true, "finite": true }, "float16": { "outputs_finite": true, "loss_finite": true, "unscaled_gradients_finite": true, "finite": true } }, "copied_unchanged": [ "sentencepiece.bpe.model" ], "environment": { "python": "3.11.18", "machine": "x86_64", "torch": "2.15.0+cpu", "transformers": "5.23.0.dev0", "tokenizers": "0.23.3" }, "sha256": { "config.json": "ebb6aa6accc2252973c36573acc3a4dc75f870eef392223e385074b2755fc800", "generation_config.json": "18d2ce2587071d5b671d7202b210c4813a2618d519b62cbcf4a7c08b77b74673", "model.safetensors": "6a18bddb252cb458c8024db7ef08ad1b698d482e599724c6e341903eb36ce19e", "sentencepiece.bpe.model": "f72f5d040a176945623a255484d24066f8c0da89a294359154e226efbe494b80" }}12345678910111213141516171819202122232425262728293031323334{ "activation_dropout": 0.0, "activation_function": "gelu", "architectures": [ "PLBartForConditionalGeneration" ], "attention_dropout": 0.1, "bos_token_id": 0, "classifier_dropout": 0.0, "d_model": 64, "decoder_attention_heads": 4, "decoder_ffn_dim": 128, "decoder_layerdrop": 0.0, "decoder_layers": 2, "dropout": 0.1, "dtype": "float32", "encoder_attention_heads": 4, "encoder_ffn_dim": 128, "encoder_layerdrop": 0.0, "encoder_layers": 2, "eos_token_id": 2, "forced_eos_token_id": 2, "init_std": 0.02, "is_decoder": false, "is_encoder_decoder": true, "max_position_embeddings": 1024, "model_type": "plbart", "pad_token_id": 1, "scale_embedding": true, "tie_word_embeddings": true, "transformers_version": "5.23.0.dev0", "use_cache": true, "vocab_size": 50005}1234567891011{ "_from_model_config": true, "bos_token_id": 0, "eos_token_id": 2, "forced_eos_token_id": 2, "output_attentions": false, "output_hidden_states": false, "pad_token_id": 1, "transformers_version": "5.23.0.dev0", "use_cache": true}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ "mic": "0.3", "name": "PLBart code translation", "usage": "AutoTokenizer + AutoModelForSeq2SeqLM.generate, batched", "architecture": "PLBartForConditionalGeneration", "checkpoints": { "uclanlp/plbart-java-cs": { "fixture": "huggingface-mic/plbart-java-cs-mic" } }, "fixtures": { "huggingface-mic/plbart-java-cs-mic": { "built_from": "uclanlp/plbart-java-cs", "covers": [ "uclanlp/plbart-java-cs" ], "build": { "seed": 17 } } }, "integrations": { "transformers": { "entry_point": "integrations/transformers/usage.md", "format": "runnable-markdown", "requires": [ "transformers>=5", "torch", "sentencepiece", "protobuf" ], "targets": [ "fixtures", "checkpoints" ], "variants": { "default": {}, "eager": { "attn_implementation": "eager" }, "bfloat16": { "dtype": "bfloat16" } }, "training": true, "resources": { "fixture": { "download_mb": 150 }, "uclanlp/plbart-java-cs": { "memory_gb": 1, "download_mb": 242 } } } }, "outputs": { "runtime": { "compare": "exact" }, "generated_tokens": { "compare": "exact" }, "generated_text": { "compare": "exact" }, "label_logprobs": { "compare": "allclose", "atol": 0.0001, "rtol": 0.0001 }, "decoded_roundtrip": { "compare": "exact" }, "training.loss": { "compare": "allclose", "atol": 0.0001, "rtol": 0.0001 }, "training.gradients": { "compare": "all_true" }, "training.updated": { "compare": "true" } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "bfloat16", "target": "plbart-java-cs-mic", "kind": "fixture", "revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "source_model": "uclanlp/plbart-java-cs", "weights": "random", "fixture_repo": "huggingface-mic/plbart-java-cs-mic", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cpu", "torchvision": "0.29.2+cpu", "torchaudio": "2.11.1+cpu", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.15.0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 7.22, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cpu-x86_64-bf16", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cpu", "dtype": "bfloat16", "attn_implementation": "sdpa" }, "generated_tokens": [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ] ], "generated_text": [ "", "", "", "" ], "label_logprobs": [ [ -10.760896682739258, -11.000101089477539, -10.64168930053711, -10.639985084533691, -10.720884323120117, -10.665568351745605, -10.930673599243164, -10.707077026367188, -10.599762916564941, -10.78577995300293, -10.751286506652832, -10.963910102844238, -10.837050437927246, -10.665088653564453, -10.9024658203125, -11.049229621887207, -10.826783180236816, -11.036859512329102, -11.066533088684082, -10.72146224975586, -11.086983680725098, -11.025752067565918, -10.834647178649902, -11.01915168762207, -10.60546875, -10.828248023986816, -10.76507568359375, -10.791603088378906, -10.707235336303711, -11.109134674072266 ], [ -10.758469581604004, -10.998159408569336, -11.141688346862793, -10.925432205200195, -10.698627471923828, -10.723726272583008, -10.672653198242188, -10.872424125671387, -10.714384078979492, -10.615339279174805, -10.757251739501953, -10.731367111206055, -11.003007888793945, -10.79845905303955, -10.670095443725586, -10.913561820983887, -10.665871620178223, -10.783939361572266, -10.829888343811035, -10.50598430633545, -10.826744079589844, -10.893451690673828, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.760431289672852, -11.002063751220703, -10.903404235839844, -10.704031944274902, -10.718929290771484, -10.665583610534668, -10.93311595916748, -10.709004402160645, -10.59683609008789, -10.713536262512207, -10.66588306427002, -10.869821548461914, -10.757153511047363, -10.699074745178223, -10.481645584106445, -10.906895637512207, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.75996208190918, -11.00108814239502, -11.11434268951416, -10.96158218383789, -10.947731018066406, -10.722736358642578, -10.672677993774414, -10.87389087677002, -10.714378356933594, -10.614376068115234, -10.765549659729004, -10.632793426513672, -10.881914138793945, -10.776824951171875, -11.025071144104004, -10.506880760192871, -10.900157928466797, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 10.875, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "bfloat16", "target": "plbart-java-cs", "kind": "checkpoint", "revision": "0426c742606ceb3c2e12de0ae9c46a969bba6023", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cpu", "torchvision": "0.29.2+cpu", "torchaudio": "2.11.1+cpu", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.15.0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 8.0, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cpu-x86_64-bf16", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cpu", "dtype": "bfloat16", "attn_implementation": "sdpa" }, "generated_tokens": [ [ 0, 161, 219, 5452, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 2710, 33455, 3380, 33460, 33441, 33463, 2710, 33455, 3380, 33460, 33465, 33463, 18, 3005, 33484, 2 ], [ 0, 161, 219, 25089, 185, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 14, 294, 56, 294, 18, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 219, 2001, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 163, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 4287, 219, 3079, 3043, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 158, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], "generated_text": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public intMultiply(int a, int b, int c){return a * b * c;}", "public int Add(int a, int b){return a + b;}", "public virtual int Subtract(int a, int b){return a - b;}" ], "label_logprobs": [ [ -0.04988726228475571, -0.26920995116233826, -1.5105478763580322, -0.06502527743577957, -0.0416967049241066, -0.04875560477375984, -0.044738683849573135, -0.06028269976377487, -0.045586664229631424, -0.04618250951170921, -0.05507525056600571, -0.06202184408903122, -0.08529015630483627, -0.03676654025912285, -0.04884643107652664, -0.06357821822166443, -0.018992943689227104, -0.04750796779990196, -0.028559116646647453, -0.048059724271297455, -0.025450007990002632, -0.0674385279417038, -0.02470421977341175, -0.05332645773887634, -0.0453592985868454, -0.04284174367785454, -0.0720677301287651, -0.02888009324669838, -0.0535060279071331, -0.06469357013702393 ], [ -0.046896420419216156, -0.17028360068798065, -2.0538177490234375, -0.4388357698917389, -0.04938224330544472, -0.04269508644938469, -0.05197791010141373, -0.05117792263627052, -0.057582151144742966, -0.044475097209215164, -0.0506412573158741, -0.055519554764032364, -0.062413573265075684, -0.06228319928050041, -0.04933299869298935, -0.046368829905986786, -0.06673858314752579, -0.0532894991338253, -0.1386767327785492, -0.08058366179466248, -0.05111800506711006, -0.06401462107896805, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.04650744050741196, -0.4145406186580658, -0.16305354237556458, -0.06744487583637238, -0.04716164246201515, -0.05423584580421448, -0.05026336759328842, -0.050530195236206055, -0.06280872970819473, -0.05600322410464287, -0.04988318309187889, -0.051943957805633545, -0.041410237550735474, -0.0653306320309639, -0.045597486197948456, -0.06699759513139725, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.04980197921395302, -2.2950000762939453, -0.06334047019481659, -0.025411192327737808, -0.062286000698804855, -0.04641970247030258, -0.05506768822669983, -0.04792599007487297, -0.054664719849824905, -0.05604955181479454, -0.054864928126335144, -0.050805334001779556, -0.05915611982345581, -0.07333008944988251, -0.06372597813606262, -0.04858437553048134, -0.06337583065032959, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 0.2041015625, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "eager", "target": "plbart-java-cs-mic", "kind": "fixture", "revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "source_model": "uclanlp/plbart-java-cs", "weights": "random", "fixture_repo": "huggingface-mic/plbart-java-cs-mic", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cpu", "torchvision": "0.29.2+cpu", "torchaudio": "2.11.1+cpu", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.15.0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 7.16, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cpu-x86_64", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cpu", "dtype": "float32", "attn_implementation": "eager" }, "generated_tokens": [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ] ], "generated_text": [ "", "", "", "" ], "label_logprobs": [ [ -10.760248184204102, -10.999594688415527, -10.641294479370117, -10.639464378356934, -10.722309112548828, -10.666036605834961, -10.930427551269531, -10.707201957702637, -10.597477912902832, -10.785229682922363, -10.750221252441406, -10.964815139770508, -10.837413787841797, -10.665985107421875, -10.902904510498047, -11.048273086547852, -10.827513694763184, -11.036812782287598, -11.066848754882812, -10.721957206726074, -11.086091995239258, -11.024226188659668, -10.835689544677734, -11.019434928894043, -10.605541229248047, -10.828750610351562, -10.764812469482422, -10.792943954467773, -10.706588745117188, -11.107134819030762 ], [ -10.758574485778809, -10.999031066894531, -11.14094066619873, -10.926487922668457, -10.69801139831543, -10.725378036499023, -10.67227554321289, -10.873153686523438, -10.713689804077148, -10.614907264709473, -10.757468223571777, -10.729799270629883, -11.004571914672852, -10.799209594726562, -10.668344497680664, -10.915214538574219, -10.666102409362793, -10.783267974853516, -10.828390121459961, -10.503913879394531, -10.829026222229004, -10.892187118530273, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.759476661682129, -11.001077651977539, -10.904559135437012, -10.704695701599121, -10.719874382019043, -10.666170120239258, -10.931157112121582, -10.709633827209473, -10.594955444335938, -10.712713241577148, -10.66454029083252, -10.869858741760254, -10.757796287536621, -10.698486328125, -10.48125171661377, -10.906853675842285, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.759967803955078, -11.000297546386719, -11.115480422973633, -10.962226867675781, -10.948193550109863, -10.723346710205078, -10.671626091003418, -10.87464427947998, -10.715579986572266, -10.613505363464355, -10.765656471252441, -10.633265495300293, -10.881454467773438, -10.776204109191895, -11.024598121643066, -10.506192207336426, -10.899736404418945, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 10.80229663848877, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "default", "target": "plbart-java-cs-mic", "kind": "fixture", "revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "source_model": "uclanlp/plbart-java-cs", "weights": "random", "fixture_repo": "huggingface-mic/plbart-java-cs-mic", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cpu", "torchvision": "0.29.2+cpu", "torchaudio": "2.11.1+cpu", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.15.0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 7.22, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cpu-x86_64", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cpu", "dtype": "float32", "attn_implementation": "sdpa" }, "generated_tokens": [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ] ], "generated_text": [ "", "", "", "" ], "label_logprobs": [ [ -10.760248184204102, -10.999594688415527, -10.641294479370117, -10.639464378356934, -10.722309112548828, -10.666036605834961, -10.930427551269531, -10.707201957702637, -10.597477912902832, -10.785229682922363, -10.750221252441406, -10.964815139770508, -10.837413787841797, -10.665985107421875, -10.902904510498047, -11.048273086547852, -10.827513694763184, -11.036812782287598, -11.066848754882812, -10.721957206726074, -11.086091995239258, -11.024226188659668, -10.835689544677734, -11.019434928894043, -10.60554027557373, -10.828750610351562, -10.764812469482422, -10.792943954467773, -10.706588745117188, -11.107134819030762 ], [ -10.758574485778809, -10.999031066894531, -11.14094066619873, -10.926487922668457, -10.69801139831543, -10.725378036499023, -10.67227554321289, -10.873153686523438, -10.713689804077148, -10.614907264709473, -10.757468223571777, -10.729799270629883, -11.004571914672852, -10.799209594726562, -10.668344497680664, -10.915214538574219, -10.666102409362793, -10.783267974853516, -10.828390121459961, -10.503913879394531, -10.829026222229004, -10.892187118530273, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.759476661682129, -11.001076698303223, -10.904559135437012, -10.704694747924805, -10.719874382019043, -10.666170120239258, -10.931157112121582, -10.709633827209473, -10.594955444335938, -10.712713241577148, -10.66454029083252, -10.86985969543457, -10.757796287536621, -10.698486328125, -10.48125171661377, -10.906852722167969, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.759967803955078, -11.000297546386719, -11.115480422973633, -10.962226867675781, -10.948192596435547, -10.723346710205078, -10.671626091003418, -10.87464427947998, -10.715579986572266, -10.613505363464355, -10.765656471252441, -10.633265495300293, -10.881454467773438, -10.776204109191895, -11.024598121643066, -10.506192207336426, -10.899736404418945, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 10.80229663848877, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "eager", "target": "plbart-java-cs", "kind": "checkpoint", "revision": "0426c742606ceb3c2e12de0ae9c46a969bba6023", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cpu", "torchvision": "0.29.2+cpu", "torchaudio": "2.11.1+cpu", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.15.0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 8.65, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cpu-x86_64", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cpu", "dtype": "float32", "attn_implementation": "eager" }, "generated_tokens": [ [ 0, 161, 219, 5452, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 2710, 33455, 3380, 33460, 33441, 33463, 2710, 33455, 3380, 33460, 33465, 33463, 18, 3005, 33484, 2 ], [ 0, 161, 219, 25089, 185, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 14, 294, 56, 294, 18, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 219, 2001, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 163, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 4287, 219, 3079, 3043, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 158, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], "generated_text": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public intMultiply(int a, int b, int c){return a * b * c;}", "public int Add(int a, int b){return a + b;}", "public virtual int Subtract(int a, int b){return a - b;}" ], "label_logprobs": [ [ -0.05135221779346466, -0.2649534046649933, -1.497849464416504, -0.06673356145620346, -0.041055046021938324, -0.04769926890730858, -0.046165209263563156, -0.06030570715665817, -0.04705451428890228, -0.04502750188112259, -0.055987220257520676, -0.06094836816191673, -0.08035245537757874, -0.03679216653108597, -0.049512606114149094, -0.06198464706540108, -0.018418239429593086, -0.049006830900907516, -0.028496090322732925, -0.04785485193133354, -0.02636105753481388, -0.0680919885635376, -0.024135582149028778, -0.05166267976164818, -0.04622246325016022, -0.04288274422287941, -0.07112723588943481, -0.029338154941797256, -0.05482204630970955, -0.06447039544582367 ], [ -0.04662270471453667, -0.17388664186000824, -2.0499892234802246, -0.4369368851184845, -0.05043657496571541, -0.04210721701383591, -0.05372815951704979, -0.05061870440840721, -0.056780215352773666, -0.046143919229507446, -0.051019005477428436, -0.056210827082395554, -0.06370383501052856, -0.06132672727108002, -0.05093403905630112, -0.04663760960102081, -0.06575600057840347, -0.05402263626456261, -0.14371433854103088, -0.08237626403570175, -0.051261961460113525, -0.0640774592757225, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.04677196964621544, -0.40499722957611084, -0.1602952927350998, -0.06799431890249252, -0.04719405248761177, -0.05466584861278534, -0.051035091280937195, -0.052140865474939346, -0.061166275292634964, -0.05624113976955414, -0.05076171085238457, -0.05195935070514679, -0.041888777166604996, -0.0660938248038292, -0.0465468093752861, -0.06654006987810135, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.04850567877292633, -2.2904434204101562, -0.06209433078765869, -0.026370462030172348, -0.06206385791301727, -0.045963138341903687, -0.05465151369571686, -0.04895143583416939, -0.05587032437324524, -0.05632295086979866, -0.056368134915828705, -0.049894750118255615, -0.057764675468206406, -0.07505954056978226, -0.0659845769405365, -0.04823944717645645, -0.06596415489912033, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 0.20512160658836365, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "default", "target": "plbart-java-cs", "kind": "checkpoint", "revision": "0426c742606ceb3c2e12de0ae9c46a969bba6023", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cpu", "torchvision": "0.29.2+cpu", "torchaudio": "2.11.1+cpu", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.15.0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 8.52, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cpu-x86_64", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cpu", "dtype": "float32", "attn_implementation": "sdpa" }, "generated_tokens": [ [ 0, 161, 219, 5452, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 2710, 33455, 3380, 33460, 33441, 33463, 2710, 33455, 3380, 33460, 33465, 33463, 18, 3005, 33484, 2 ], [ 0, 161, 219, 25089, 185, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 14, 294, 56, 294, 18, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 219, 2001, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 163, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 4287, 219, 3079, 3043, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 158, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], "generated_text": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public intMultiply(int a, int b, int c){return a * b * c;}", "public int Add(int a, int b){return a + b;}", "public virtual int Subtract(int a, int b){return a - b;}" ], "label_logprobs": [ [ -0.05135221779346466, -0.2649540305137634, -1.4978502988815308, -0.06673356145620346, -0.04105527326464653, -0.04769926890730858, -0.046165209263563156, -0.060306042432785034, -0.04705440253019333, -0.04502750188112259, -0.055987220257520676, -0.06094836816191673, -0.08035234361886978, -0.03679216653108597, -0.049512606114149094, -0.06198464706540108, -0.018418239429593086, -0.049007169902324677, -0.028496090322732925, -0.04785474017262459, -0.02636105753481388, -0.06809187680482864, -0.024135582149028778, -0.051662568002939224, -0.04622257500886917, -0.042882855981588364, -0.07112734764814377, -0.029338154941797256, -0.05482238531112671, -0.06447039544582367 ], [ -0.04662270471453667, -0.1738867312669754, -2.049987554550171, -0.4369364082813263, -0.05043669044971466, -0.042107101529836655, -0.05372827127575874, -0.05061870440840721, -0.056779880076646805, -0.0461440347135067, -0.051019005477428436, -0.056210827082395554, -0.06370383501052856, -0.06132650375366211, -0.05093403905630112, -0.04663749411702156, -0.06575566530227661, -0.05402263626456261, -0.14371392130851746, -0.0823761522769928, -0.05126184597611427, -0.0640774592757225, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.04677196964621544, -0.4049965739250183, -0.1602945774793625, -0.06799431890249252, -0.04719405248761177, -0.05466584861278534, -0.051035091280937195, -0.052140865474939346, -0.06116616353392601, -0.05624113976955414, -0.05076193809509277, -0.05195935070514679, -0.04188889265060425, -0.0660938248038292, -0.0465468093752861, -0.0665401816368103, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.04850567877292633, -2.290447235107422, -0.06209399551153183, -0.026370462030172348, -0.06206396967172623, -0.045963138341903687, -0.05465151369571686, -0.048951320350170135, -0.05587020888924599, -0.05632295086979866, -0.05636802315711975, -0.04989497736096382, -0.05776455998420715, -0.07505987584590912, -0.06598435342311859, -0.048239219933748245, -0.06596404314041138, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 0.20512165129184723, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "bfloat16", "target": "plbart-java-cs-mic", "kind": "fixture", "revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "source_model": "uclanlp/plbart-java-cs", "weights": "random", "fixture_repo": "huggingface-mic/plbart-java-cs-mic", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cu132", "torchvision": "0.29.2+cu132", "torchaudio": "2.11.1+cu132", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.16.0.dev0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 7.04, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "accelerate": "1.16.0.dev0 (pinned 1.15.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cuda", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cuda", "dtype": "bfloat16", "attn_implementation": "sdpa" }, "generated_tokens": [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ] ], "generated_text": [ "", "", "", "" ], "label_logprobs": [ [ -10.76089859008789, -11.000102043151855, -10.641690254211426, -10.639986038208008, -10.720885276794434, -10.664594650268555, -10.93067455291748, -10.70708179473877, -10.599763870239258, -10.785780906677246, -10.751286506652832, -10.963911056518555, -10.837051391601562, -10.665088653564453, -10.902466773986816, -11.049230575561523, -10.827092170715332, -11.036860466003418, -11.066533088684082, -10.721463203430176, -11.086983680725098, -11.025753021240234, -10.834647178649902, -11.01915168762207, -10.605466842651367, -10.828248023986816, -10.76507568359375, -10.791604995727539, -10.707237243652344, -11.109135627746582 ], [ -10.758469581604004, -10.998159408569336, -11.14168930053711, -10.925431251525879, -10.698628425598145, -10.723725318908691, -10.672654151916504, -10.872425079345703, -10.714384078979492, -10.615340232849121, -10.757255554199219, -10.731368064880371, -11.003008842468262, -10.798460006713867, -10.670082092285156, -10.91356372833252, -10.665872573852539, -10.783939361572266, -10.829889297485352, -10.50598430633545, -10.82683277130127, -10.893451690673828, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.760431289672852, -11.002066612243652, -10.903407096862793, -10.704031944274902, -10.7189302444458, -10.665583610534668, -10.933110237121582, -10.709004402160645, -10.596841812133789, -10.713057518005371, -10.66588306427002, -10.869821548461914, -10.757153511047363, -10.699074745178223, -10.481645584106445, -10.906895637512207, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.75996208190918, -11.001089096069336, -11.114343643188477, -10.961583137512207, -10.94773006439209, -10.722737312316895, -10.67267894744873, -10.873889923095703, -10.71437931060791, -10.61437702178955, -10.765056610107422, -10.632794380187988, -10.881915092468262, -10.776345252990723, -11.025073051452637, -10.508858680725098, -10.900157928466797, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 10.8125, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "eager", "target": "plbart-java-cs-mic", "kind": "fixture", "revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "source_model": "uclanlp/plbart-java-cs", "weights": "random", "fixture_repo": "huggingface-mic/plbart-java-cs-mic", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cu132", "torchvision": "0.29.2+cu132", "torchaudio": "2.11.1+cu132", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.16.0.dev0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 7.89, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "accelerate": "1.16.0.dev0 (pinned 1.15.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cuda", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cuda", "dtype": "float32", "attn_implementation": "eager" }, "generated_tokens": [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ] ], "generated_text": [ "", "", "", "" ], "label_logprobs": [ [ -10.760248184204102, -10.999594688415527, -10.641294479370117, -10.639463424682617, -10.722309112548828, -10.666037559509277, -10.930427551269531, -10.707201957702637, -10.597477912902832, -10.785228729248047, -10.750221252441406, -10.964815139770508, -10.837413787841797, -10.665985107421875, -10.902904510498047, -11.048273086547852, -10.827513694763184, -11.036812782287598, -11.066848754882812, -10.721957206726074, -11.086091995239258, -11.024226188659668, -10.835689544677734, -11.01943588256836, -10.60554027557373, -10.828750610351562, -10.764812469482422, -10.79294490814209, -10.706587791442871, -11.107134819030762 ], [ -10.758574485778809, -10.999032020568848, -11.14094066619873, -10.926487922668457, -10.69801139831543, -10.725378036499023, -10.67227554321289, -10.873153686523438, -10.713689804077148, -10.614908218383789, -10.757469177246094, -10.729799270629883, -11.004571914672852, -10.799208641052246, -10.668344497680664, -10.915214538574219, -10.66610336303711, -10.783267974853516, -10.828391075134277, -10.503913879394531, -10.829026222229004, -10.892187118530273, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.759477615356445, -11.001077651977539, -10.904559135437012, -10.704695701599121, -10.719874382019043, -10.666170120239258, -10.931156158447266, -10.709633827209473, -10.594955444335938, -10.712713241577148, -10.66454029083252, -10.86985969543457, -10.757796287536621, -10.698486328125, -10.481252670288086, -10.906852722167969, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.759967803955078, -11.000297546386719, -11.115480422973633, -10.962226867675781, -10.948192596435547, -10.723346710205078, -10.671626091003418, -10.874645233154297, -10.715579986572266, -10.613505363464355, -10.765657424926758, -10.633265495300293, -10.881454467773438, -10.776203155517578, -11.024598121643066, -10.506192207336426, -10.899735450744629, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 10.802770614624023, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "default", "target": "plbart-java-cs-mic", "kind": "fixture", "revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "source_model": "uclanlp/plbart-java-cs", "weights": "random", "fixture_repo": "huggingface-mic/plbart-java-cs-mic", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cu132", "torchvision": "0.29.2+cu132", "torchaudio": "2.11.1+cu132", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.16.0.dev0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 7.55, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "accelerate": "1.16.0.dev0 (pinned 1.15.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cuda", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cuda", "dtype": "float32", "attn_implementation": "sdpa" }, "generated_tokens": [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ] ], "generated_text": [ "", "", "", "" ], "label_logprobs": [ [ -10.760248184204102, -10.999594688415527, -10.641294479370117, -10.639463424682617, -10.722309112548828, -10.666037559509277, -10.930427551269531, -10.707201957702637, -10.597477912902832, -10.785228729248047, -10.750221252441406, -10.964815139770508, -10.837413787841797, -10.665985107421875, -10.902904510498047, -11.048273086547852, -10.827513694763184, -11.036812782287598, -11.066848754882812, -10.721957206726074, -11.086091995239258, -11.024226188659668, -10.835689544677734, -11.01943588256836, -10.60554027557373, -10.828750610351562, -10.764812469482422, -10.792943954467773, -10.706587791442871, -11.107134819030762 ], [ -10.758574485778809, -10.999032974243164, -11.14094066619873, -10.926487922668457, -10.69801139831543, -10.72537899017334, -10.67227554321289, -10.873153686523438, -10.713690757751465, -10.614907264709473, -10.757468223571777, -10.729799270629883, -11.004571914672852, -10.799208641052246, -10.668344497680664, -10.915214538574219, -10.666102409362793, -10.783267974853516, -10.828391075134277, -10.503913879394531, -10.829026222229004, -10.892187118530273, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.759476661682129, -11.001076698303223, -10.904559135437012, -10.704695701599121, -10.719874382019043, -10.666170120239258, -10.931156158447266, -10.709633827209473, -10.594955444335938, -10.712713241577148, -10.66454029083252, -10.86985969543457, -10.757796287536621, -10.698486328125, -10.481252670288086, -10.906853675842285, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -10.759967803955078, -11.000297546386719, -11.115480422973633, -10.962226867675781, -10.948192596435547, -10.723346710205078, -10.671626091003418, -10.874645233154297, -10.715579986572266, -10.613505363464355, -10.765657424926758, -10.633265495300293, -10.881454467773438, -10.776203155517578, -11.024598121643066, -10.506192207336426, -10.899735450744629, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 10.807880401611328, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "bfloat16", "target": "plbart-java-cs", "kind": "checkpoint", "revision": "0426c742606ceb3c2e12de0ae9c46a969bba6023", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cu132", "torchvision": "0.29.2+cu132", "torchaudio": "2.11.1+cu132", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.16.0.dev0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 8.03, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "accelerate": "1.16.0.dev0 (pinned 1.15.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cuda", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cuda", "dtype": "bfloat16", "attn_implementation": "sdpa" }, "generated_tokens": [ [ 0, 161, 219, 5452, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 2710, 33455, 3380, 33460, 33441, 33463, 2710, 33455, 3380, 33460, 33465, 33463, 18, 3005, 33484, 2 ], [ 0, 161, 219, 25089, 185, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 14, 294, 56, 294, 18, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 219, 2001, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 163, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 4287, 219, 3079, 3043, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 158, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], "generated_text": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public intMultiply(int a, int b, int c){return a * b * c;}", "public int Add(int a, int b){return a + b;}", "public virtual int Subtract(int a, int b){return a - b;}" ], "label_logprobs": [ [ -0.049932513386011124, -0.26113516092300415, -1.4680873155593872, -0.06914091855287552, -0.03921196609735489, -0.04883905127644539, -0.044814713299274445, -0.06024375185370445, -0.0456106960773468, -0.04617784172296524, -0.05506926774978638, -0.06190464273095131, -0.08589388430118561, -0.036750223487615585, -0.049039632081985474, -0.059886541217565536, -0.018972942605614662, -0.04750489816069603, -0.028533512726426125, -0.04804040864109993, -0.02565034106373787, -0.06734859198331833, -0.0247071273624897, -0.0501648485660553, -0.04524742066860199, -0.042778924107551575, -0.07197676599025726, -0.030761370435357094, -0.05684531480073929, -0.06472116708755493 ], [ -0.0468960776925087, -0.17598755657672882, -2.05802321434021, -0.4366670846939087, -0.04935421794652939, -0.042631346732378006, -0.0552348792552948, -0.05118856951594353, -0.0574764721095562, -0.04442150518298149, -0.05065179616212845, -0.05554864928126335, -0.06236552447080612, -0.062163230031728745, -0.052260685712099075, -0.04634902626276016, -0.06677482277154922, -0.05327830836176872, -0.13855864107608795, -0.08050777018070221, -0.05117090046405792, -0.06404346972703934, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.046529628336429596, -0.41444310545921326, -0.16792264580726624, -0.06747686117887497, -0.0469842292368412, -0.05418107658624649, -0.050200335681438446, -0.050546176731586456, -0.059138476848602295, -0.056047409772872925, -0.04987819120287895, -0.05208428576588631, -0.0414300262928009, -0.06539405882358551, -0.0455934964120388, -0.06703360378742218, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.049760691821575165, -2.294827938079834, -0.063314288854599, -0.025583527982234955, -0.06231691315770149, -0.04640046879649162, -0.05510175973176956, -0.048043590039014816, -0.054614946246147156, -0.05601314455270767, -0.054854996502399445, -0.0508245974779129, -0.059064317494630814, -0.07326794415712357, -0.06366647779941559, -0.04862060025334358, -0.06733700633049011, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 0.201171875, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "eager", "target": "plbart-java-cs", "kind": "checkpoint", "revision": "0426c742606ceb3c2e12de0ae9c46a969bba6023", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cu132", "torchvision": "0.29.2+cu132", "torchaudio": "2.11.1+cu132", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.16.0.dev0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 8.2, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "accelerate": "1.16.0.dev0 (pinned 1.15.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cuda", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cuda", "dtype": "float32", "attn_implementation": "eager" }, "generated_tokens": [ [ 0, 161, 219, 5452, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 2710, 33455, 3380, 33460, 33441, 33463, 2710, 33455, 3380, 33460, 33465, 33463, 18, 3005, 33484, 2 ], [ 0, 161, 219, 25089, 185, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 14, 294, 56, 294, 18, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 219, 2001, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 163, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 4287, 219, 3079, 3043, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 158, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], "generated_text": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public intMultiply(int a, int b, int c){return a * b * c;}", "public int Add(int a, int b){return a + b;}", "public virtual int Subtract(int a, int b){return a - b;}" ], "label_logprobs": [ [ -0.0513552762567997, -0.26495322585105896, -1.4978495836257935, -0.06673255562782288, -0.04105436056852341, -0.04770074784755707, -0.04616634547710419, -0.06030469760298729, -0.04705246910452843, -0.04502544924616814, -0.055984511971473694, -0.06094960495829582, -0.08034739643335342, -0.03679296746850014, -0.04950954392552376, -0.061983413994312286, -0.01841987669467926, -0.0490080788731575, -0.028495626524090767, -0.04785405844449997, -0.026361985132098198, -0.0680905431509018, -0.02413814142346382, -0.05166200175881386, -0.04622132331132889, -0.04288068786263466, -0.07112956792116165, -0.02933618798851967, -0.05482317507266998, -0.06447073072195053 ], [ -0.046618036925792694, -0.17388693988323212, -2.049987554550171, -0.4369390308856964, -0.05043669044971466, -0.04210355877876282, -0.05372725427150726, -0.05061689391732216, -0.05678314343094826, -0.046148814260959625, -0.051018550992012024, -0.05621353164315224, -0.06370439380407333, -0.061329081654548645, -0.05093517154455185, -0.046637266874313354, -0.06575588881969452, -0.05402207002043724, -0.14371278882026672, -0.082375168800354, -0.05126388370990753, -0.06407634168863297, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.04677117243409157, -0.4049992859363556, -0.16029377281665802, -0.06799398362636566, -0.04719393700361252, -0.054663028568029404, -0.05103463679552078, -0.05214131623506546, -0.06116616353392601, -0.05624023824930191, -0.050758879631757736, -0.05195935070514679, -0.041890036314725876, -0.06609494239091873, -0.046547263860702515, -0.06653939932584763, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.048505451530218124, -2.2904603481292725, -0.062093209475278854, -0.02637440897524357, -0.062062960118055344, -0.04596245288848877, -0.054649144411087036, -0.04895154759287834, -0.05587133765220642, -0.056323740631341934, -0.05636723339557648, -0.04989440739154816, -0.05776501074433327, -0.07505887746810913, -0.06598591804504395, -0.04823638126254082, -0.06596449017524719, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 0.2094104140996933, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329{ "recorded_with": { "contract": "huggingface-mic/plbart-java-cs-mic", "contract_name": "PLBart", "contract_revision": "3df2b36ffda61d19f0b4be170325f9a3358e92bd", "framework": "transformers", "variant": "default", "target": "plbart-java-cs", "kind": "checkpoint", "revision": "0426c742606ceb3c2e12de0ae9c46a969bba6023", "environment": { "python": "3.11.18", "transformers": "5.23.0.dev0", "sentence-transformers": null, "torch": "2.15.0+cu132", "torchvision": "0.29.2+cu132", "torchaudio": "2.11.1+cu132", "tokenizers": "0.23.3", "numpy": "2.3.5", "pillow": "13.0.0", "accelerate": "1.16.0.dev0", "safetensors": "0.8.0", "huggingface-hub": "2.4.0", "sentencepiece": "0.2.3", "protobuf": "7.36.2", "librosa": "0.11.0", "soundfile": "0.14.0", "scipy": "1.17.1" }, "seconds": 7.88, "environment_differs": { "pillow": "13.0.0 (pinned 12.3.0)", "accelerate": "1.16.0.dev0 (pinned 1.15.0)", "huggingface-hub": "2.4.0 (pinned 2.3.0)", "sentencepiece": "0.2.3 (pinned 0.2.2)" }, "platform": "cuda", "template_date": "2026-01-01" }, "outputs": { "runtime": { "device": "cuda", "dtype": "float32", "attn_implementation": "sdpa" }, "generated_tokens": [ [ 0, 161, 219, 5452, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 2710, 33455, 3380, 33460, 33441, 33463, 2710, 33455, 3380, 33460, 33465, 33463, 18, 3005, 33484, 2 ], [ 0, 161, 219, 25089, 185, 33460, 234, 14, 33463, 219, 56, 33463, 219, 18, 2068, 4258, 14, 294, 56, 294, 18, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 219, 2001, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 163, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 0, 161, 4287, 219, 3079, 3043, 33460, 234, 14, 33463, 219, 56, 2068, 4258, 14, 158, 56, 11684, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], "generated_text": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public intMultiply(int a, int b, int c){return a * b * c;}", "public int Add(int a, int b){return a + b;}", "public virtual int Subtract(int a, int b){return a - b;}" ], "label_logprobs": [ [ -0.051355503499507904, -0.26495349407196045, -1.4978495836257935, -0.06673255562782288, -0.041054245084524155, -0.04770074784755707, -0.04616634547710419, -0.060304585844278336, -0.047052353620529175, -0.04502544924616814, -0.055984288454055786, -0.06094960495829582, -0.08034728467464447, -0.03679296746850014, -0.04950965568423271, -0.061983413994312286, -0.018419643864035606, -0.04900830611586571, -0.028495511040091515, -0.04785405844449997, -0.026361985132098198, -0.0680905431509018, -0.024137908592820168, -0.05166177451610565, -0.04622132331132889, -0.04288068786263466, -0.0711296796798706, -0.02933618798851967, -0.05482317507266998, -0.06447073072195053 ], [ -0.046618152409791946, -0.1738867312669754, -2.0499861240386963, -0.43693864345550537, -0.05043669044971466, -0.04210355877876282, -0.05372725427150726, -0.05061689391732216, -0.05678291991353035, -0.046148814260959625, -0.051018550992012024, -0.05621353164315224, -0.06370439380407333, -0.0613291934132576, -0.0509352870285511, -0.046637266874313354, -0.06575577706098557, -0.05402207002043724, -0.14371247589588165, -0.08237538486719131, -0.05126388370990753, -0.06407634168863297, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.04677117243409157, -0.4049988090991974, -0.16029345989227295, -0.06799409538507462, -0.04719405248761177, -0.054663028568029404, -0.05103463679552078, -0.052141543477773666, -0.06116582453250885, -0.05624023824930191, -0.050758764147758484, -0.05195935070514679, -0.041890036314725876, -0.06609494239091873, -0.04654737934470177, -0.06653939932584763, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ -0.048505451530218124, -2.290459156036377, -0.06209287419915199, -0.02637440897524357, -0.06206318736076355, -0.04596256837248802, -0.054649144411087036, -0.04895143583416939, -0.05587133765220642, -0.056323740631341934, -0.05636712163686752, -0.04989440739154816, -0.05776512250304222, -0.07505887746810913, -0.06598591804504395, -0.04823649302124977, -0.06596449017524719, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "decoded_roundtrip": [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}" ], "training": { "loss": 0.20845915377140045, "gradients": { "model.encoder.layers.0.self_attn.q_proj.weight": true, "model.decoder.layers.0.encoder_attn.q_proj.weight": true }, "updated": true } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990# PLBart: code translation with Transformers
This page is the Transformers contract of the PLBart MIC and also a usage example. [doc-builder](https://github.com/huggingface/doc-builder/blob/main/docs/runnable-code-blocks.md) renders the `runnable` blocks below as documentation, and its pytest plugin runs them as written against `uclanlp/plbart-java-cs`. The MIC runner runs the same blocks against each slim fixture and each checkpoint in [`integration.json`](../../integration.json). Lines marked `# doc-builder: hide` only matter there: they swap in the pinned checkpoint or variant and print the result record.
## Translate a batch of Java methods to C#
```py runnable:translateimport torchfrom transformers import AutoModelForSeq2SeqLM, AutoTokenizer, set_seedimport json # doc-builder: hideimport os # doc-builder: hide
model_id = "uclanlp/plbart-java-cs"model_id = os.environ.get("MIC_MODEL", model_id) # doc-builder: hidevariant = json.loads(os.environ.get("MIC_MODEL_KWARGS", "{}")) # doc-builder: hidedevice = "cuda" if torch.cuda.is_available() else "cpu"set_seed(0) # seeds torch, NumPy, and Python: loading, dropout, and data augmentation draw random numbers
tokenizer = AutoTokenizer.from_pretrained(model_id)model = AutoModelForSeq2SeqLM.from_pretrained(model_id).to(device)if variant: # doc-builder: hide model = AutoModelForSeq2SeqLM.from_pretrained(model_id, **variant).to(device)
java_methods = [ "public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}", "public int add(int a, int b){return a + b;}", "public int subtract(int a, int b){return a - b;}",]inputs = tokenizer(java_methods, return_tensors="pt", padding=True).to(device)generated = model.generate(**inputs, max_new_tokens=32, do_sample=False)print(tokenizer.batch_decode(generated, skip_special_tokens=True))```
## Decode a batch of token ids
`decode` accepts a batch and returns one string per sequence, cleaning up the spaces the tokenizer puts before punctuation.
```py runnable:translate:3punctuated = ["public int maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int multiply(int a, int b, int c){return a * b * c;}"]roundtrip = tokenizer.decode(tokenizer(punctuated).input_ids, skip_special_tokens=True)print(roundtrip)```
## One training step
```py runnable:translate:3targets = [ "public int Maximum(int a, int b, int c){return Math.Max(a, Math.Max(b, c));}", "public int Multiply(int a, int b, int c){return a * b * c;}", "public int Add(int a, int b){return a + b;}", "public int Subtract(int a, int b){return a - b;}",]labels = tokenizer(text_target=targets, return_tensors="pt", padding=True).input_ids.to(device)labels[labels == tokenizer.pad_token_id] = -100
with torch.no_grad(): # doc-builder: hide # Teacher-forced log-probabilities of the reference translations. logprobs = model(**inputs, labels=labels).logits.float().log_softmax(-1) label_logprobs = logprobs.gather(-1, labels.clamp(min=0)[..., None])[..., 0].masked_fill(labels == -100, 0.0)
model.train()optimizer = torch.optim.SGD(model.parameters(), lr=0.01)loss = model(**inputs, labels=labels).lossloss.backward()before = {name: p.detach().clone() for name, p in model.named_parameters()} # doc-builder: hideoptimizer.step()print(f"loss: {loss.item():.4f}")
if os.environ.get("MIC_RUNNER"): # doc-builder: hide named = dict(model.named_parameters()) checked = ("model.encoder.layers.0.self_attn.q_proj.weight", "model.decoder.layers.0.encoder_attn.q_proj.weight") result = { "runtime": { "device": model.device.type, "dtype": str(model.dtype).removeprefix("torch."), "attn_implementation": model.config._attn_implementation, }, "generated_tokens": generated.tolist(), "generated_text": tokenizer.batch_decode(generated, skip_special_tokens=True), "label_logprobs": label_logprobs.tolist(), "decoded_roundtrip": roundtrip, "training": { "loss": loss.item(), "gradients": {n: bool(named[n].grad is not None and torch.count_nonzero(named[n].grad) > 0 and torch.isfinite(named[n].grad).all()) for n in checked}, "updated": any(not torch.equal(p, before[n]) for n, p in named.items()), }, } print(json.dumps(result))```123version https://git-lfs.github.com/spec/v1oid sha256:6a18bddb252cb458c8024db7ef08ad1b698d482e599724c6e341903eb36ce19esize 14207332123version https://git-lfs.github.com/spec/v1oid sha256:f72f5d040a176945623a255484d24066f8c0da89a294359154e226efbe494b80size 985833.mic-repo.jsonAdded+7
README.mdAdded+38
build.jsonAdded+135
config.jsonAdded+34
generation_config.jsonAdded+11
integration.jsonAdded+87
integrations/transformers/expectations/cpu-x86_64-bf16/plbart-java-cs-mic.bfloat16.jsonAdded+339
integrations/transformers/expectations/cpu-x86_64-bf16/plbart-java-cs.bfloat16.jsonAdded+328
integrations/transformers/expectations/cpu-x86_64/plbart-java-cs-mic.eager.jsonAdded+339
integrations/transformers/expectations/cpu-x86_64/plbart-java-cs-mic.jsonAdded+339
integrations/transformers/expectations/cpu-x86_64/plbart-java-cs.eager.jsonAdded+328
integrations/transformers/expectations/cpu-x86_64/plbart-java-cs.jsonAdded+328
integrations/transformers/expectations/cuda/plbart-java-cs-mic.bfloat16.jsonAdded+340
integrations/transformers/expectations/cuda/plbart-java-cs-mic.eager.jsonAdded+340
integrations/transformers/expectations/cuda/plbart-java-cs-mic.jsonAdded+340
integrations/transformers/expectations/cuda/plbart-java-cs.bfloat16.jsonAdded+329
integrations/transformers/expectations/cuda/plbart-java-cs.eager.jsonAdded+329
integrations/transformers/expectations/cuda/plbart-java-cs.jsonAdded+329
integrations/transformers/usage.mdAdded+90
model.safetensorsAdded+3
sentencepiece.bpe.modelAdded+3