Describe the bug
I have fine-tuned the meta-llama/Meta-Llama-3.1-8B-Instruct model in different variants with mlx-lm and Lora to generate Dart-Unit-Tests. The tuning of the models was done with different versions of mlx-lm (0.19.0, 0.19.1 and 0.19.2). I also used mlx-lm to fuse the adapters to the LLM again. Now I have noticed that during inference/generation with 0.19.1 and 0.19.2 spaces are missing in the generated import-statements when they are followed by a ', for example: import'package:flutter/material.dart'; vs import 'package:flutter/material.dart';. Regardless of which version the model was fine-tuned with, if I downgrade to 0.19.0 the generation works correctly. In the training data the import are ok. Maybe a problem with tokenising?
For example
Generation-Response with 0.19.0
Here are the widget tests for the `ListTile`:
```dart
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_test/flutter_test.dart';
Generation-Response with 0.19.1
Here are the tests for the `ListTile` class:
```dart
import'package:flutter/material.dart';
import'package:flutter_bloc/flutter_bloc.dart';
import'package:flutter_test/flutter_test.dart';
Describe the bug I have fine-tuned the meta-llama/Meta-Llama-3.1-8B-Instruct model in different variants with mlx-lm and Lora to generate Dart-Unit-Tests. The tuning of the models was done with different versions of mlx-lm (0.19.0, 0.19.1 and 0.19.2). I also used mlx-lm to fuse the adapters to the LLM again. Now I have noticed that during inference/generation with 0.19.1 and 0.19.2 spaces are missing in the generated import-statements when they are followed by a ', for example:
import'package:flutter/material.dart';
vsimport 'package:flutter/material.dart';
. Regardless of which version the model was fine-tuned with, if I downgrade to 0.19.0 the generation works correctly. In the training data the import are ok. Maybe a problem with tokenising?For example
Generation-Response with 0.19.0
Generation-Response with 0.19.1
Generation-Response with 0.19.1
To Reproduce
code snippet used to genrate code
Expected behavior No missing spaces before '.
Desktop (please complete the following information):