Implement a function that generates training pairs for a language model using a sliding window approach over a sequence of token IDs.
Given a list of token IDs, a max_length (the context window size), and a stride (the step size between windows), produce all (input_chunk, target_chunk) pairs where:
The window starts at index 0 and advances by stride each step. Only generate pairs where the target_chunk fits entirely within the token list (i.e., i + max_length + 1 <= len(token_ids) is satisfied; equivalently, iterate i from 0 while i + max_length < len(token_ids)).
Return a list of (input_chunk, target_chunk) tuples, where each chunk is a plain Python list of integers.
If the token list is too short to produce even a single pair, return an empty list.