Delete .ipynb_checkpoints
Browse files
.ipynb_checkpoints/README-checkpoint.md
DELETED
|
@@ -1,95 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
language:
|
| 3 |
-
- en
|
| 4 |
-
pipeline_tag: text-generation
|
| 5 |
-
tags:
|
| 6 |
-
- enigma
|
| 7 |
-
- valiant
|
| 8 |
-
- valiant-labs
|
| 9 |
-
- llama
|
| 10 |
-
- llama-3.2
|
| 11 |
-
- llama-3.2-instruct
|
| 12 |
-
- llama-3.2-instruct-3b
|
| 13 |
-
- llama-3
|
| 14 |
-
- llama-3-instruct
|
| 15 |
-
- llama-3-instruct-3b
|
| 16 |
-
- 3b
|
| 17 |
-
- code
|
| 18 |
-
- code-instruct
|
| 19 |
-
- python
|
| 20 |
-
- conversational
|
| 21 |
-
- chat
|
| 22 |
-
- instruct
|
| 23 |
-
base_model: meta-llama/Llama-3.2-3B-Instruct
|
| 24 |
-
datasets:
|
| 25 |
-
- sequelbox/Tachibana
|
| 26 |
-
- sequelbox/Supernova
|
| 27 |
-
model_type: llama
|
| 28 |
-
license: llama3.2
|
| 29 |
-
---
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-

|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
Enigma is a code-instruct model built on Llama 3.2 3b.
|
| 36 |
-
- High quality code instruct performance with the Llama 3.2 Instruct chat format
|
| 37 |
-
- Finetuned on synthetic code-instruct data generated with Llama 3.1 405b. [Find the current version of the dataset here!](https://huggingface.co/datasets/sequelbox/Tachibana)
|
| 38 |
-
- Overall chat performance supplemented with [generalist synthetic data.](https://huggingface.co/datasets/sequelbox/Supernova)
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
## Version
|
| 42 |
-
|
| 43 |
-
This is the **2024-09-30** release of Enigma for Llama 3.2 3b, enhancing code-instruct and general chat capabilities.
|
| 44 |
-
|
| 45 |
-
Help us and recommend Enigma to your friends! We're excited for more Enigma releases in the future.
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
## Prompting Guide
|
| 49 |
-
Enigma uses the [Llama 3.2 Instruct](meta-llama/Llama-3.2-3B-Instruct) prompt format. The example script below can be used as a starting point for general chat:
|
| 50 |
-
|
| 51 |
-
```python
|
| 52 |
-
import transformers
|
| 53 |
-
import torch
|
| 54 |
-
|
| 55 |
-
model_id = "ValiantLabs/Llama3.2-3B-Enigma"
|
| 56 |
-
|
| 57 |
-
pipeline = transformers.pipeline(
|
| 58 |
-
"text-generation",
|
| 59 |
-
model=model_id,
|
| 60 |
-
model_kwargs={"torch_dtype": torch.bfloat16},
|
| 61 |
-
device_map="auto",
|
| 62 |
-
)
|
| 63 |
-
|
| 64 |
-
messages = [
|
| 65 |
-
{"role": "system", "content": "You are Enigma, a highly capable code assistant."},
|
| 66 |
-
{"role": "user", "content": "Can you explain virtualization to me?"}
|
| 67 |
-
]
|
| 68 |
-
|
| 69 |
-
outputs = pipeline(
|
| 70 |
-
messages,
|
| 71 |
-
max_new_tokens=1024,
|
| 72 |
-
)
|
| 73 |
-
|
| 74 |
-
print(outputs[0]["generated_text"][-1])
|
| 75 |
-
```
|
| 76 |
-
|
| 77 |
-
## The Model
|
| 78 |
-
Enigma is built on top of Llama 3.2 3b Instruct, using high quality code-instruct data and general chat data in Llama 3.2 Instruct prompt style to supplement overall performance.
|
| 79 |
-
|
| 80 |
-
Our current version of Enigma is trained on code-instruct data from [sequelbox/Tachibana](https://huggingface.co/datasets/sequelbox/Tachibana) and general chat data from [sequelbox/Supernova.](https://huggingface.co/datasets/sequelbox/Supernova)
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-

|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
Enigma is created by [Valiant Labs.](http://valiantlabs.ca/)
|
| 87 |
-
|
| 88 |
-
[Check out our HuggingFace page for Shining Valiant 2 and our other Build Tools models for creators!](https://huggingface.co/ValiantLabs)
|
| 89 |
-
|
| 90 |
-
[Follow us on X for updates on our models!](https://twitter.com/valiant_labs)
|
| 91 |
-
|
| 92 |
-
We care about open source.
|
| 93 |
-
For everyone to use.
|
| 94 |
-
|
| 95 |
-
We encourage others to finetune further from our models.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|