Inserloft commited on
Commit
303c115
·
verified ·
1 Parent(s): e918784

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -17
README.md CHANGED
@@ -1,19 +1,22 @@
1
  ---
2
  license: mit
3
  language:
4
- - es
5
  - en
6
- tags:
7
- - Dataset
8
- - Datasets
9
- - Esp
10
- - Eng
11
- - Tiny
12
- - PyMini
13
- - Mini
14
- pretty_name: PyMini
15
  size_categories:
16
  - 10K<n<100K
 
 
 
 
 
 
 
 
17
  ---
18
 
19
  # PyMini – A Compact Python Instruction Dataset for Small Language Models
@@ -25,8 +28,8 @@ size_categories:
25
  PyMini provides a **high-quality, compact, and fully synthetic** dataset for fine-tuning models that need a solid grasp of Python without unnecessary complexity. Every example is generated programmatically, avoiding license issues and giving exact control over difficulty and coverage.
26
 
27
  - **Languages:** English (`en`), Spanish (`es`), or mixed (`both`)
28
- - **Number of examples:** Configurable; default release contains **50,000 examples** (balanced across task types)
29
- - **Format:** JSON Lines (`.jsonl`), easily convertible to Parquet
30
  - **Generated with:** Python script (no web scraping, no copyrighted code)
31
 
32
  ## Dataset Structure
@@ -78,12 +81,13 @@ dataset = load_dataset("inserloft/PyMini", split="train")
78
  print(dataset[0])
79
  ```
80
 
81
- ### Loading from a local JSONL file
82
 
83
  ```python
84
- from datasets import load_dataset
85
 
86
- dataset = load_dataset("json", data_files="PyMini.jsonl", split="train")
 
87
  ```
88
 
89
  ## Data Fields
@@ -108,7 +112,7 @@ PyMini is entirely synthetic, generated by a Python script that randomly combine
108
  - **Safety:** All code snippets are evaluated in a restricted environment (no file system access, limited built-ins).
109
  - **Customization:** Adjust the number of examples, language (`--lang es/en/both`), and task weights by modifying the script.
110
 
111
- The generation script is included in the repository (`generate_pymini.py`).
112
 
113
  ## Intended Use
114
 
@@ -158,4 +162,4 @@ Feel free to open issues or pull requests if you have suggestions for new task t
158
 
159
  ## Contact
160
 
161
- For questions, reach out via the Hugging Face community tab or through [Inserloft](https://inserloft.com/).
 
1
  ---
2
  license: mit
3
  language:
 
4
  - en
5
+ - es
6
+ task_categories:
7
+ - text-generation
8
+ - fill-mask
9
+ - code-generation
 
 
 
 
10
  size_categories:
11
  - 10K<n<100K
12
+ pretty_name: PyMini
13
+ tags:
14
+ - python
15
+ - code
16
+ - education
17
+ - small-models
18
+ - fine-tuning
19
+ - synthetic
20
  ---
21
 
22
  # PyMini – A Compact Python Instruction Dataset for Small Language Models
 
28
  PyMini provides a **high-quality, compact, and fully synthetic** dataset for fine-tuning models that need a solid grasp of Python without unnecessary complexity. Every example is generated programmatically, avoiding license issues and giving exact control over difficulty and coverage.
29
 
30
  - **Languages:** English (`en`), Spanish (`es`), or mixed (`both`)
31
+ - **Number of examples:** Configurable; default release contains **~49,200 examples** (balanced across task types)
32
+ - **Format:** Parquet (native), auto-converted from the original generation output
33
  - **Generated with:** Python script (no web scraping, no copyrighted code)
34
 
35
  ## Dataset Structure
 
81
  print(dataset[0])
82
  ```
83
 
84
+ The dataset is stored natively in **Parquet** format, so it loads quickly and works out of the box with the `datasets` library, Dataset Viewer, and any Parquet-based tooling (pandas, DuckDB, Polars, etc.):
85
 
86
  ```python
87
+ import pandas as pd
88
 
89
+ df = pd.read_parquet("hf://datasets/inserloft/PyMini/train.parquet")
90
+ print(df.head())
91
  ```
92
 
93
  ## Data Fields
 
112
  - **Safety:** All code snippets are evaluated in a restricted environment (no file system access, limited built-ins).
113
  - **Customization:** Adjust the number of examples, language (`--lang es/en/both`), and task weights by modifying the script.
114
 
115
+ The generation script is included in the repository (`generate_pymini.py`). Output is converted to Parquet for storage and distribution on the Hub.
116
 
117
  ## Intended Use
118
 
 
162
 
163
  ## Contact
164
 
165
+ For questions, reach out via the Hugging Face community tab or through [inserloft.com](https://inserloft.com).