Upload folder using huggingface_hub
Browse files- README.md +3 -1
- generation_utils.py +2 -0
README.md
CHANGED
|
@@ -52,4 +52,6 @@ generations = [
|
|
| 52 |
]
|
| 53 |
|
| 54 |
print(generations[0].split(tokenizer.eos_token)[0])
|
| 55 |
-
```
|
|
|
|
|
|
|
|
|
| 52 |
]
|
| 53 |
|
| 54 |
print(generations[0].split(tokenizer.eos_token)[0])
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
We adapt the original Dream-7B-Coder-Instruct with soft-masking (SM). More information on SM will be linked here in the future.
|
generation_utils.py
CHANGED
|
@@ -364,6 +364,8 @@ class DreamGenerationMixin:
|
|
| 364 |
)
|
| 365 |
#############################################
|
| 366 |
|
|
|
|
|
|
|
| 367 |
result = self._sample(
|
| 368 |
input_ids,
|
| 369 |
attention_mask=attention_mask,
|
|
|
|
| 364 |
)
|
| 365 |
#############################################
|
| 366 |
|
| 367 |
+
print(f"SM parameters used in generation: {sm_args}")
|
| 368 |
+
|
| 369 |
result = self._sample(
|
| 370 |
input_ids,
|
| 371 |
attention_mask=attention_mask,
|