Add files using upload-large-folder tool
Browse files- README.md +47 -0
- config.json +34 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +0 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- fr
|
| 5 |
+
- de
|
| 6 |
+
- es
|
| 7 |
+
- it
|
| 8 |
+
- pt
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
library_name: vllm
|
| 11 |
+
inference: false
|
| 12 |
+
extra_gated_description: If you want to learn more about how we process your personal
|
| 13 |
+
data, please read our <a href="https://www.almawave.com/privacy-policy/">Privacy
|
| 14 |
+
Policy</a>.
|
| 15 |
+
tags:
|
| 16 |
+
- transformers
|
| 17 |
+
- mlx
|
| 18 |
+
base_model: Almawave/Velvet-14B
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# moot20/Velvet-14B-MLX-4bits
|
| 22 |
+
|
| 23 |
+
The Model [moot20/Velvet-14B-MLX-4bits](https://huggingface.co/moot20/Velvet-14B-MLX-4bits) was
|
| 24 |
+
converted to MLX format from [Almawave/Velvet-14B](https://huggingface.co/Almawave/Velvet-14B)
|
| 25 |
+
using mlx-lm version **0.21.1**.
|
| 26 |
+
|
| 27 |
+
## Use with mlx
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
pip install mlx-lm
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
from mlx_lm import load, generate
|
| 35 |
+
|
| 36 |
+
model, tokenizer = load("moot20/Velvet-14B-MLX-4bits")
|
| 37 |
+
|
| 38 |
+
prompt = "hello"
|
| 39 |
+
|
| 40 |
+
if tokenizer.chat_template is not None:
|
| 41 |
+
messages = [{"role": "user", "content": prompt}]
|
| 42 |
+
prompt = tokenizer.apply_chat_template(
|
| 43 |
+
messages, add_generation_prompt=True
|
| 44 |
+
)
|
| 45 |
+
|
| 46 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
| 47 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"MistralForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 1,
|
| 7 |
+
"eos_token_id": 2,
|
| 8 |
+
"head_dim": 128,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"hidden_size": 5120,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 12544,
|
| 13 |
+
"max_position_embeddings": 131072,
|
| 14 |
+
"model_type": "mistral",
|
| 15 |
+
"num_attention_heads": 40,
|
| 16 |
+
"num_hidden_layers": 50,
|
| 17 |
+
"num_key_value_heads": 8,
|
| 18 |
+
"quantization": {
|
| 19 |
+
"group_size": 64,
|
| 20 |
+
"bits": 4
|
| 21 |
+
},
|
| 22 |
+
"quantization_config": {
|
| 23 |
+
"group_size": 64,
|
| 24 |
+
"bits": 4
|
| 25 |
+
},
|
| 26 |
+
"rms_norm_eps": 1e-05,
|
| 27 |
+
"rope_theta": 1000000.0,
|
| 28 |
+
"sliding_window": null,
|
| 29 |
+
"tie_word_embeddings": false,
|
| 30 |
+
"torch_dtype": "bfloat16",
|
| 31 |
+
"transformers_version": "4.44.2",
|
| 32 |
+
"use_cache": false,
|
| 33 |
+
"vocab_size": 126976
|
| 34 |
+
}
|
model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b889f2f944b2b45f603f4d479aab50191cde6a2704fe244a452c6cf6661bef3c
|
| 3 |
+
size 5362287772
|
model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:062827e035cbe14096b408d997518e9c57a511d80d49171150a41da56c2068f4
|
| 3 |
+
size 2558739711
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "</s>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<pad>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<unk>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
}
|
| 30 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|