biscet commited on
Commit
debb64e
·
verified ·
1 Parent(s): ad1b932

Keep main as the dataset guide and document release branches

Browse files

Preserve the complete dataset on v1.0.0; keep only README.md on main and point all data links to the release branch.

Files changed (7) hide show
  1. .gitattributes +0 -60
  2. ANONYMIZATION.json +0 -44
  3. DATASET-MANIFEST.json +0 -43
  4. README.md +15 -6
  5. openmix.jsonl +0 -0
  6. pilot.jsonl +0 -12
  7. project.jsonl +0 -0
.gitattributes DELETED
@@ -1,60 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.avro filter=lfs diff=lfs merge=lfs -text
4
- *.bin filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ckpt filter=lfs diff=lfs merge=lfs -text
7
- *.ftz filter=lfs diff=lfs merge=lfs -text
8
- *.gz filter=lfs diff=lfs merge=lfs -text
9
- *.h5 filter=lfs diff=lfs merge=lfs -text
10
- *.joblib filter=lfs diff=lfs merge=lfs -text
11
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
- *.lz4 filter=lfs diff=lfs merge=lfs -text
13
- *.mds filter=lfs diff=lfs merge=lfs -text
14
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
- *.model filter=lfs diff=lfs merge=lfs -text
16
- *.msgpack filter=lfs diff=lfs merge=lfs -text
17
- *.npy filter=lfs diff=lfs merge=lfs -text
18
- *.npz filter=lfs diff=lfs merge=lfs -text
19
- *.onnx filter=lfs diff=lfs merge=lfs -text
20
- *.ot filter=lfs diff=lfs merge=lfs -text
21
- *.parquet filter=lfs diff=lfs merge=lfs -text
22
- *.pb filter=lfs diff=lfs merge=lfs -text
23
- *.pickle filter=lfs diff=lfs merge=lfs -text
24
- *.pkl filter=lfs diff=lfs merge=lfs -text
25
- *.pt filter=lfs diff=lfs merge=lfs -text
26
- *.pth filter=lfs diff=lfs merge=lfs -text
27
- *.rar filter=lfs diff=lfs merge=lfs -text
28
- *.safetensors filter=lfs diff=lfs merge=lfs -text
29
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
- *.tar.* filter=lfs diff=lfs merge=lfs -text
31
- *.tar filter=lfs diff=lfs merge=lfs -text
32
- *.tflite filter=lfs diff=lfs merge=lfs -text
33
- *.tgz filter=lfs diff=lfs merge=lfs -text
34
- *.wasm filter=lfs diff=lfs merge=lfs -text
35
- *.xz filter=lfs diff=lfs merge=lfs -text
36
- *.zip filter=lfs diff=lfs merge=lfs -text
37
- *.zst filter=lfs diff=lfs merge=lfs -text
38
- *tfevents* filter=lfs diff=lfs merge=lfs -text
39
- # Audio files - uncompressed
40
- *.pcm filter=lfs diff=lfs merge=lfs -text
41
- *.sam filter=lfs diff=lfs merge=lfs -text
42
- *.raw filter=lfs diff=lfs merge=lfs -text
43
- # Audio files - compressed
44
- *.aac filter=lfs diff=lfs merge=lfs -text
45
- *.flac filter=lfs diff=lfs merge=lfs -text
46
- *.mp3 filter=lfs diff=lfs merge=lfs -text
47
- *.ogg filter=lfs diff=lfs merge=lfs -text
48
- *.wav filter=lfs diff=lfs merge=lfs -text
49
- # Image files - uncompressed
50
- *.bmp filter=lfs diff=lfs merge=lfs -text
51
- *.gif filter=lfs diff=lfs merge=lfs -text
52
- *.png filter=lfs diff=lfs merge=lfs -text
53
- *.tiff filter=lfs diff=lfs merge=lfs -text
54
- # Image files - compressed
55
- *.jpg filter=lfs diff=lfs merge=lfs -text
56
- *.jpeg filter=lfs diff=lfs merge=lfs -text
57
- *.webp filter=lfs diff=lfs merge=lfs -text
58
- # Video files - compressed
59
- *.mp4 filter=lfs diff=lfs merge=lfs -text
60
- *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ANONYMIZATION.json DELETED
@@ -1,44 +0,0 @@
1
- {
2
- "method": "deterministic post-training text redaction, metadata allowlist and new anonymous IDs",
3
- "rows_by_stage": {
4
- "pilot": 12,
5
- "project": 576,
6
- "openmix": 1408
7
- },
8
- "rows_with_text_changes_by_stage": {
9
- "pilot": 0,
10
- "project": 576,
11
- "openmix": 311
12
- },
13
- "replacement_counts": {
14
- "private_label": 1467,
15
- "private_key": 0,
16
- "provider_token": 0,
17
- "jwt": 0,
18
- "secret_literal": 0,
19
- "personal_field": 0,
20
- "author_comment": 4,
21
- "filesystem_path": 32,
22
- "windows_user_path": 0,
23
- "url": 26,
24
- "email": 0,
25
- "ipv4": 9,
26
- "local_hostname": 0,
27
- "bare_domain": 22,
28
- "phone": 0,
29
- "uuid": 0,
30
- "source_path_label": 920,
31
- "high_entropy_literal": 20
32
- },
33
- "original_token_ids_exported": false,
34
- "hidden_features_exported": false,
35
- "private_replacement_map_exported": false,
36
- "notice": "These texts differ from the original training corpus. The shipped weights were not retrained or unlearned.",
37
- "trace_rows": 1996,
38
- "new_tokenizations": 5988,
39
- "tokenizer": "actual Whittle Q5_K_M target, llama.cpp vocab-only mode",
40
- "invalid_tokenizations": 0,
41
- "combined_prefix_checks": {
42
- "True": 1996
43
- }
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATASET-MANIFEST.json DELETED
@@ -1,43 +0,0 @@
1
- {
2
- "dataset_name": "DFlash TraceMix Lite",
3
- "dataset_version": "1.0.0",
4
- "description": "A lightweight collection of prompts and model-generated response traces for DFlash draft-model training experiments.",
5
- "publication_date": "2026-11-08",
6
- "publication_transform": "post-training anonymization",
7
- "files": [
8
- {
9
- "file": "openmix.jsonl",
10
- "rows": 1408,
11
- "train_rows": 1280,
12
- "validation_rows": 128,
13
- "sha256": "71b41e159c31b158d6cad581a371d090d02e8c7c0e6dd3b41022d3b51b124677"
14
- },
15
- {
16
- "file": "pilot.jsonl",
17
- "rows": 12,
18
- "train_rows": 8,
19
- "validation_rows": 4,
20
- "sha256": "8af473d5e31d855b9d96a3fa77cb6b55292ea48ee46070c483686b6f8caaa764"
21
- },
22
- {
23
- "file": "project.jsonl",
24
- "rows": 576,
25
- "train_rows": 512,
26
- "validation_rows": 64,
27
- "sha256": "3c03345b00b7f25c244bb55edef004b19eade73e45ed889fb9f976ce57ded4fc"
28
- }
29
- ],
30
- "author_dataset": {
31
- "name": "Project Code",
32
- "author": "Egor Prokhorov",
33
- "curator": "Egor Prokhorov",
34
- "source_file_count": 288,
35
- "total_records": 576,
36
- "train_records": 512,
37
- "validation_records": 64,
38
- "replayed_train_records": 256,
39
- "replay_records_are_reused": true,
40
- "published_anonymized_file": "project.jsonl",
41
- "publication_anonymization": "post-training"
42
- }
43
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -10,13 +10,13 @@ tags:
10
 
11
  <div align="center">
12
 
13
- # DFlash TraceMix Lite v1.0.0
14
 
15
  **A small dataset for the next draft.**
16
 
17
  `1,996 records` &nbsp;·&nbsp; `3 stages` &nbsp;·&nbsp; `JSONL`
18
 
19
- [Explore the files](#the-mix) · [Manifest](DATASET-MANIFEST.json) · [Processing report](ANONYMIZATION.json)
20
 
21
  </div>
22
 
@@ -27,13 +27,22 @@ tags:
27
 
28
  Project code, programming, math, knowledge and writing — a compact mix for your next training run.
29
 
 
 
 
 
 
 
 
 
 
30
  ## The mix
31
 
32
  | File | Focus | Train | Validation |
33
  |:---|:---|---:|---:|
34
- | [pilot.jsonl](pilot.jsonl) | A small starting batch | 8 | 4 |
35
- | [project.jsonl](project.jsonl) | Source-code understanding | 512 | 64 |
36
- | [openmix.jsonl](openmix.jsonl) | Mixed tasks + project replay | 1,280 | 128 |
37
  | **Total** | | **1,800** | **196** |
38
 
39
  Each record pairs a `prompt` with a generated `completion`, alongside split, task and source metadata.
@@ -43,7 +52,7 @@ Each record pairs a `prompt` with a generated `completion`, alongside split, tas
43
 
44
  - **Target model:** existing traces come from Whittle Q5. For another DFlash target, adapt the chat template, regenerate responses and prepare tokenization and target features for your pipeline. Original token IDs and hidden features are not included. See the [training guidance](https://docs.nvidia.com/nemo/automodel/recipes-e2e-examples/dflash-speculative-decoding#data).
45
  - **Splits and replay:** `eval` denotes validation. OpenMix reuses 256 Project Code training records; they are not additional unique examples. Four short OpenMix training traces have `eligible_for_original_loader: false`.
46
- - **Publication copy:** text was anonymized after training; the original weights were not retrained or unlearned. The edited traces are not verified reference answers, and complete removal of identifying details is not guaranteed. See the [processing report](ANONYMIZATION.json).
47
 
48
  </details>
49
 
 
10
 
11
  <div align="center">
12
 
13
+ # DFlash TraceMix Lite
14
 
15
  **A small dataset for the next draft.**
16
 
17
  `1,996 records` &nbsp;·&nbsp; `3 stages` &nbsp;·&nbsp; `JSONL`
18
 
19
+ [Explore the files](#the-mix) · [Manifest](https://huggingface.co/datasets/biscet/DFlash-TraceMix-Lite/blob/v1.0.0/DATASET-MANIFEST.json) · [Processing report](https://huggingface.co/datasets/biscet/DFlash-TraceMix-Lite/blob/v1.0.0/ANONYMIZATION.json)
20
 
21
  </div>
22
 
 
27
 
28
  Project code, programming, math, knowledge and writing — a compact mix for your next training run.
29
 
30
+ ## Repository branches
31
+
32
+ | Branch | Contents |
33
+ |:---|:---|
34
+ | `main` | The current dataset card and repository guide. |
35
+ | [`v1.0.0`](https://huggingface.co/datasets/biscet/DFlash-TraceMix-Lite/tree/v1.0.0) | The complete release: JSONL data, manifest, processing report and release card. |
36
+
37
+ > **Looking for the data?** Open the `v1.0.0` branch. When downloading through the Hub API, use `v1.0.0` as the `revision`.
38
+
39
  ## The mix
40
 
41
  | File | Focus | Train | Validation |
42
  |:---|:---|---:|---:|
43
+ | [pilot.jsonl](https://huggingface.co/datasets/biscet/DFlash-TraceMix-Lite/blob/v1.0.0/pilot.jsonl) | A small starting batch | 8 | 4 |
44
+ | [project.jsonl](https://huggingface.co/datasets/biscet/DFlash-TraceMix-Lite/blob/v1.0.0/project.jsonl) | Source-code understanding | 512 | 64 |
45
+ | [openmix.jsonl](https://huggingface.co/datasets/biscet/DFlash-TraceMix-Lite/blob/v1.0.0/openmix.jsonl) | Mixed tasks + project replay | 1,280 | 128 |
46
  | **Total** | | **1,800** | **196** |
47
 
48
  Each record pairs a `prompt` with a generated `completion`, alongside split, task and source metadata.
 
52
 
53
  - **Target model:** existing traces come from Whittle Q5. For another DFlash target, adapt the chat template, regenerate responses and prepare tokenization and target features for your pipeline. Original token IDs and hidden features are not included. See the [training guidance](https://docs.nvidia.com/nemo/automodel/recipes-e2e-examples/dflash-speculative-decoding#data).
54
  - **Splits and replay:** `eval` denotes validation. OpenMix reuses 256 Project Code training records; they are not additional unique examples. Four short OpenMix training traces have `eligible_for_original_loader: false`.
55
+ - **Publication copy:** text was anonymized after training; the original weights were not retrained or unlearned. The edited traces are not verified reference answers, and complete removal of identifying details is not guaranteed. See the [processing report](https://huggingface.co/datasets/biscet/DFlash-TraceMix-Lite/blob/v1.0.0/ANONYMIZATION.json).
56
 
57
  </details>
58
 
openmix.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
pilot.jsonl DELETED
@@ -1,12 +0,0 @@
1
- {"id": "pilot-000001", "stage": "pilot", "split": "eval", "language": "en", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000289.txt", "source_sha256": "8b071ca13a070b03a0386073335f19c9fb67183e8e33255f9cfdb76a0e92a305", "sampling_group": "project_replay/en", "prompt": "<|im_start|>user\nImplement a Python function that groups strings by their first character and explain the empty-string case.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer user: \"Implement a Python function that groups strings by their first character and explain the empty-string case.\" Need produce final with code and explanation. Need likely include function, maybe dict grouping, empty string case: first character undefined, so cannot group by first char; handle by skipping empty strings or using default key? Need explain. Could provide robust implementation: def group_by_first_char(strings): d = {}; for s in strings: if s: d.setdefault(s[0], []).append(s); return d. Empty string: no first char, so excluded. If want include empty string as key? Could use if s: else key ''. But first char of empty string doesn't exist. Explain. Maybe mention if want include empty strings, use key '' but note it's not a", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
2
- {"id": "pilot-000002", "stage": "pilot", "split": "eval", "language": "en", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000290.txt", "source_sha256": "830d42db399a4e3644d98391620276e080af2a4e0eb09a9145bb8feb52893fc1", "sampling_group": "project_replay/en", "prompt": "<|im_start|>user\nExplain the difference between optimistic and pessimistic locking with a small practical example.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer user: \"Explain the difference between optimistic and pessimistic locking with a small practical example.\" Need provide clear explanation, small practical example. Need final only. Need maybe define locking, optimistic vs pessimistic. Pessimistic: acquire lock before operation, block if unavailable, then perform. Optimistic: perform operation without lock, then validate at commit/transaction end; if conflict, retry. Practical example: bank transfer, inventory, ticket booking, database row. Need maybe include code-like pseudocode. Need mention tradeoffs: optimistic better under low contention, less blocking, but may waste work and retries; pessimistic better under high contention, immediate mutual exclusion, but can cause deadlock, latency. Need small example: two users updating same bank account balance. Pessimistic: both", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
3
- {"id": "pilot-000003", "stage": "pilot", "split": "eval", "language": "ru", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000291.txt", "source_sha256": "010abb91e00a3aaed52027f5917b9f3da7e7e0ea3853779f113390acfebdb464", "sampling_group": "project_replay/ru", "prompt": "<|im_start|>user\nНапиши на Python двоичный поиск в отсортированном массиве и объясни граничные случаи.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer in Russian. User asks: \"Напиши на Python двоичный поиск в отсортированном массиве и объясни граничные случаи.\" Need provide code and explanation of edge cases. Need final only. Need be careful: binary search in sorted array. Could include iterative and recursive? Maybe one. Explain edge cases: empty array, single element, target at boundaries, duplicates? \"отсортированном массиве\" sorted array. Binary search finds index or -1. Edge cases: empty array, target not present, target equals first/last, duplicates (any occurrence? binary search finds one of possibly many; if need first/last occurrence explain). Also integer overflow? In Python no overflow. Could mention if array is not sorted, undefined. Need maybe", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
4
- {"id": "pilot-000004", "stage": "pilot", "split": "eval", "language": "ru", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000292.txt", "source_sha256": "be2f799b27019cf49c5d4ea678dd93d8e857dd50e011abca19393b7b80994ff0", "sampling_group": "project_replay/ru", "prompt": "<|im_start|>user\nОбъясни, зачем нужен индекс базы данных, и в каких случаях он замедляет запись.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer in Russian. User asks: \"Объясни, зачем нужен индекс базы данных, и в каких случаях он замедляет запись.\" Need explain purpose of DB index, when it slows down writes. Need likely include examples, trade-offs, types maybe B-tree, hash, covering, etc. Need be clear. Let's craft thorough but concise. Need maybe mention index is data structure for fast lookup, not just speed, also query planner, join, range, foreign keys, constraints. Write slowdown: index maintenance overhead, lock contention, fragmentation, write amplification, space, update cost, partitioning, replication, caching, etc. Also cases: single column, low cardinality, high write frequency, many indexes, wide indexes, large values, sparse indexes, etc.", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
5
- {"id": "pilot-000005", "stage": "pilot", "split": "train", "language": "en", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000293.txt", "source_sha256": "b3036777012a652bc00047145c57d46164f8d758110781621110550015d8b7ea", "sampling_group": "project_replay/en", "prompt": "<|im_start|>user\nWrite a Python function that merges two sorted lists. Explain how it handles empty lists and duplicate elements.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer user: \"Write a Python function that merges two sorted lists. Explain how it handles empty lists and duplicate elements.\" Need provide code and explanation. Need final. Need likely include function, maybe test. Need be careful: merge two sorted lists, handles empty lists and duplicate elements. Could use heapq.merge? Or simple two-pointer. Need explain. Maybe mention if lists are sorted ascending. For empty lists: if one empty return other. For duplicates: preserves duplicates because when equal, take from first then second (or either). If want unique, use set. But function merges sorted lists, duplicates preserved. Could include example. Need maybe Pythonic: def merge_sorted_lists(list1, list2): if not list1: return list2; if not list2: return list1", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
6
- {"id": "pilot-000006", "stage": "pilot", "split": "train", "language": "en", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000294.txt", "source_sha256": "64f2f4f93433ed63fd6120f7ee7578125a1c1799fab59c6bca2d6b6910df23d1", "sampling_group": "project_replay/en", "prompt": "<|im_start|>user\nExplain how a database transaction prevents a partial update. Give a short example involving two account balances.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer user: \"Explain how a database transaction prevents a partial update. Give a short example involving two account balances.\" Need provide concise but thorough. Need final only. Need explain transaction atomicity, isolation, ACID. Partial update prevented by transaction not committing until all operations succeed; if any fails, rollback. Example: two accounts A and B, transfer $100 from A to B. Transaction: debit A 100, credit B 100. If crash after debit A but before credit B, rollback: A unchanged, B unchanged. If crash after credit B but before commit, rollback: A unchanged, B unchanged. If both succeed, commit: A -100, B +100. Also mention isolation prevents other transactions from see", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
7
- {"id": "pilot-000007", "stage": "pilot", "split": "train", "language": "en", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000295.txt", "source_sha256": "789b9ec2d15b13a8c69041389d1337da93a9089d6334bbde192b5daef5b4d22d", "sampling_group": "project_replay/en", "prompt": "<|im_start|>user\nImplement an asynchronous task queue with a concurrency limit in Python. Explain exception handling and cancellation.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer user: \"Implement an asynchronous task queue with a concurrency limit in Python. Explain exception handling and cancellation.\" Need provide code and explanation. Need likely include Python async queue with concurrency limit, maybe using asyncio, semaphore, maybe a TaskQueue class. Need explain exception handling and cancellation. Need be careful: async task queue with concurrency limit. Could implement using asyncio.Queue, asyncio.Semaphore, maybe a Task class. Need handle exceptions: tasks that raise exceptions should be caught, maybe propagate to queue? Need cancellation: use asyncio.Event or asyncio.Task.cancel(), maybe a stop event. Need maybe mention Python 3.7+? Could use asyncio.gather? But concurrency limit: semaphore. Need maybe include example. Need explain exception handling: tasks can raise exceptions; if using gather,", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
8
- {"id": "pilot-000008", "stage": "pilot", "split": "train", "language": "en", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000296.txt", "source_sha256": "15728fe44ebb7dd8eeafd67a26bca4c18d14962b81c345e0fe30e356b2e1acda", "sampling_group": "project_replay/en", "prompt": "<|im_start|>user\nReview this function and fix its bug: def add_item(x, items=[]): items.append(x); return items. Explain the shared default argument.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer user's request: Review function and fix bug: def add_item(x, items=[]): items.append(x); return items. Explain shared default argument. Need provide final answer. Need likely explain mutable default argument bug: default list is created once at function definition, shared across calls, so items accumulates. Fix: use None as default and create new list inside: def add_item(x, items=None): if items is None: items = []; items.append(x); return items. Or use default argument as list? Need explain. Could also mention if want to add to existing list, pass list. Need maybe code. Ensure concise but thorough.\n</think>\n\nThe bug is the **mutable default argument** `items=[]`.\n\nIn Python, default arguments are evaluated **once** when", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
9
- {"id": "pilot-000009", "stage": "pilot", "split": "train", "language": "ru", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000297.txt", "source_sha256": "aebc0a85571aae412b2c0ade30d88d6f8cdc4e531de8e6250332af3abe1159f1", "sampling_group": "project_replay/ru", "prompt": "<|im_start|>user\nОбъясни, как работает кэш LRU. Приведи короткий пример на Python и разберись со случаем повторяющихся ключей.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer in Russian. User asks: Explain how LRU cache works. Provide short Python example and handle case of repeated keys. Need final. Need be careful: \"разберись со случаем повторяющихся ключей\" means handle repeated keys. Provide Python example. Could show OrderedDict or collections.OrderedDict, or custom. Need explain LRU: least recently used, on access move to most recent, evict oldest when full. Python example: from collections import OrderedDict; class LRUCache: def __init__(self, maxsize): self.cache = OrderedDict(); self.maxsize = maxsize; def __getitem__(self, key): if key in self.cache: self.cache.move_to_end(key); return self.cache[key]; raise KeyError; def __setitem__(self, key", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
10
- {"id": "pilot-000010", "stage": "pilot", "split": "train", "language": "ru", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000298.txt", "source_sha256": "acd1d3ad40b5a9107484ad07173621429f7932f54fc5849cb504b3185edb7eb1", "sampling_group": "project_replay/ru", "prompt": "<|im_start|>user\nНапиши функцию Python, которая удаляет дубликаты событий по id, сохраняя порядок. Затем объясни сложность и обработку отсутствующего id.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer in Russian. User asks: \"Напиши функцию Python, которая удаляет дубликаты событий по id, сохраняя порядок. Затем объясни сложность и обработку отсутствующего id.\" Need provide Python function, complexity, handling missing id. Need likely code. Need be careful: \"событа\" typo events. Need maybe function remove_duplicates_by_id(events) preserving order. Could use dict.fromkeys? But by id, preserving order of first occurrence. If events list of dicts or objects with id. Need handle missing id: maybe skip or raise? Explain. Could provide robust: def remove_duplicates_by_id(events): seen = set(); result = []; for e in events: eid = e.get('id') if isinstance(e, dict) else e.id; if", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
11
- {"id": "pilot-000011", "stage": "pilot", "split": "train", "language": "ru", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000299.txt", "source_sha256": "7f3223720fceac5761280826b3ae28ec3fcf7205bf94a51ac840f0b1f71c5bcb", "sampling_group": "project_replay/ru", "prompt": "<|im_start|>user\nВ HTTP-клиенте иногда возникает тайм-аут. Опиши понятный алгоритм повторов с экспоненциальной задержкой и объясни, какие запросы повторять безопасно.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer in Russian. User asks: \"В HTTP-клиенте иногда возникает тайм-аут. Опиши понятный алгоритм повторов с экспоненциальной задержкой и объясни, какие запросы повторять безопасно.\" Need provide clear algorithm for retries with exponential backoff and explain which requests are safe to retry. Need likely discuss HTTP status codes, idempotent vs non-idempotent, timeouts, 4xx vs 5xx, 200, 3xx, 404, 408, 422, 429, 500, 502, 503, 504, 505, 507, 50", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
12
- {"id": "pilot-000012", "stage": "pilot", "split": "train", "language": "ru", "domain": "project_replay", "project": "public_prompt_mixture", "source_path": "source_000300.txt", "source_sha256": "08f814761f2d8aaf8f22a304b9a9eb458ef20dc40b60f55a0a36a56ce46cb199", "sampling_group": "project_replay/ru", "prompt": "<|im_start|>user\nОбъясни разницу между процессом и потоком на примере веб-сервера. Пиши по-русски, конкретно и без длинного вступления.<|im_end|>\n<|im_start|>assistant\n<think>\n", "completion": "We need answer in Russian. User asks: \"Объясни разницу между процессом и потоком на примере веб-сервера. Пиши по-русски, конкретно и без длинного вступления.\" Need explain difference between process and thread on example of web server. Concrete, no long intro. Need likely concise but detailed enough. Need final only.\n\nNeed think in Russian. Process: separate memory space, OS-level, heavy, independent. Thread: lighter, shares memory, within process, context switch cheap. Web server example: each connection handled by thread (or process). Process per connection: each client gets separate process, each has own memory, separate CPU time, isolation, crash doesn't kill others. Thread per connection: all share memory, can share connection pool,", "post_training_anonymized": true, "eligible_for_original_loader": true, "source_kind": "private_project"}
 
 
 
 
 
 
 
 
 
 
 
 
 
project.jsonl DELETED
The diff for this file is too large to render. See raw diff