Moonxc commited on
Commit
cbe33e7
·
verified ·
1 Parent(s): f4ae04a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -0
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - text-generation
5
+ - question-answering
6
+ language:
7
+ - en
8
+ size_categories:
9
+ - n<1K
10
+ tags:
11
+ - bmw
12
+ - corporate
13
+ - press-release
14
+ - automotive
15
+ pretty_name: BMW Press Releases Dataset (1K)
16
+ ---
17
+
18
+ # BMW Press Releases Dataset (1K)
19
+
20
+ ## Dataset Description
21
+
22
+ * **Repository:** [Moonxc/bmw-press-1k](https://huggingface.co/Moonxc/bmw-press-1k)
23
+ * **Source:** [BMW Group PressClub](https://www.press.bmwgroup.com/global/)
24
+ * **Language:** English
25
+ * **Size:** ~1,000 processed press releases
26
+
27
+ ### Dataset Summary
28
+
29
+ This dataset consists of approximately 1,000 press releases scraped from the official BMW Group PressClub. It focuses on recent corporate news, vehicle launches (especially EVs and Neue Klasse), financial results, and sustainability initiatives. The data has been processed to filter out non-informative content (like simple photo descriptions) and formatted into Qwen/ChatML style for instruction tuning.
30
+
31
+ This dataset was created for the "LLM Fine-tuning Pipeline" assignment, specifically to fine-tune a Qwen3-8B model to adopt the corporate tone and factual knowledge of BMW.
32
+
33
+ ## Dataset Structure
34
+
35
+ The dataset contains the complete data pipeline artifacts, organized into the following directories:
36
+
37
+ * **`all_articles.json`**: Metadata for all collected articles (URLs, titles, dates).
38
+ * **`scraped/`**: Raw HTML content scraped from the press site.
39
+ * **`pdfs/`**: Raw PDF attachments downloaded from the articles.
40
+ * **`preprocessed_regex/`**: text extracted from PDFs and cleaned via Regex.
41
+ * **`preprocessed_llm/`**: Text content after LLM-based filtering (removing irrelevant files).
42
+ * **`processed/`**: Final, formatted datasets ready for training:
43
+ * `train_instruct.jsonl`
44
+ * `val_instruct.jsonl`
45
+
46
+ ### Data Instances
47
+
48
+ **Processed Data (`processed/`)** follows the ChatML format:
49
+
50
+ ```json
51
+ {
52
+ "messages": [
53
+ {
54
+ "role": "user",
55
+ "content": "Tell me about the BMW iX5 Hydrogen pilot fleet."
56
+ },
57
+ {
58
+ "role": "assistant",
59
+ "content": "Munich. The BMW Group is actively driving the transformation... [Full Press Release Content]"
60
+ }
61
+ ]
62
+ }
63
+ ```
64
+
65
+ ## Data Collection & Processing
66
+
67
+ ### 1. Scraping
68
+ * **Tools:** Custom Python scraper using `Crawl4AI`.
69
+ * **Source:** `press.bmwgroup.com/global`.
70
+ * **Method:** Async scraping of article URLs followed by PDF attachment downloading.
71
+
72
+ ### 2. Preprocessing Pipeline
73
+ The raw PDFs went through a multi-stage cleaning pipeline:
74
+ 1. **Text Extraction**: `pypdf` extracted raw text from PDF attachments.
75
+ 2. **Regex Cleaning**: Removed headers, footers, page numbers, and standard boilerplate text.
76
+ 3. **LLM Filtering**: Used `gpt-oss-120b` (simulated) to filter out "empty" content files that contained only images or media contacts without substantial text.
77
+ 4. **Formatting**: Converted valid text into User/Assistant pairs. The "User" prompt is derived from the article title, and the "Assistant" response is the full article text.
78
+
79
+ ## Intended Use
80
+
81
+ * **Fine-tuning**: Ideal for Domain Adaptation of SLMs (Small Language Models) like Qwen, Llama, or Mistral.
82
+ * **RAG**: Can be used as a knowledge base for Retrieval-Augmented Generation systems focused on BMW.
83
+
84
+ ## Limitations
85
+
86
+ * **Knowledge Cutoff**: Contains press releases up to the date of scraping (early 2026 or late 2025).
87
+ * **Domain Specific**: Highly specific to BMW's corporate voice; not suitable for general-purpose chat.