Upload folder using huggingface_hub (#1)
Browse files- bb6bb3a6873860ddd5f2d90cc6ab93f47dccaded68552ca2e02813ec394ed618 (582f73ab0ea72247b40ab1ef1db6bcaf5c3eebe5)
- 2678c2eb2830fac9e133a6a40b0f4b9ae9b08261fb8f00fcd82acb3ad33c5c47 (e7ed454e1ab47ac20a395fefc0d4149ade531685)
- 8062e396a95daef96b8a3a22f671371868f7d1c8aaf66c59d9b920bad4e826e0 (f710d3975d14ede3de5583a6e51467a022604ada)
- 634f3980ca853a060d999e41f9a4d7f1c35f04b7ed56f938448800935a9a4eaf (c3aa8a4b2d584eca5519e82fddcaf464f5c956e4)
- 410171d34b0ae794e7e4b62ef26ccef084a2fb3a0933f8819385ee20c9828386 (38f5846820f0961622f8084457b34adab9e21f63)
- 3d7a55d6f139f2c976f9c886b92d72236de786886fcc4f00e9e9998d53e3797a (2263f24a5edc01924f795711b782a62e7eda71c3)
- 1c37e15f8c1eb06fd0e9dc8d41ae7eba25d5e2007f78bfad83a0a62e7c793534 (29e2081570cf5a451bd7715317e1794e12623d48)
- 474d9466957ad7f06bb89016ecc6a6d6cd38d8a5024d11731e18f61e1ac9162e (e44582f1463199750ff0505346927f79e10bf3b7)
- a56f4b37df594f974a515d51f5310b25b4856da6685fbf039fc27b577c1afb89 (7c0ef5dc209c5c3fed4fd70c76da5179dc91baa1)
- cc7a1304661dce1a394a26f35c30426fed2accc6ab417c092c61f6169acff8a8 (deead3950628b810d24f48a774651e4978e133d7)
- 84cfc8ac7f9ce19e9dcb84d41b5b8fc73273e2868ab4de51eb425fee5a686085 (e6f99c91eb036c9f199f9a8f14343f4656cca7be)
- 7055da1a91311de9d48069104f8ce3c01e0be65195f6b7d00a0e8b396d8f7f82 (27ff8c98c521220e560b59b1ee649b5f35d4bcad)
- c8ed771e29dac32841ddbf466a20f13ab97dfd4158277779acde63a55c65324e (403fb622e962c0dc50ecd321fe97f1d24a927d92)
- 8c4956c7ba83076a372e638e7687f0b052984113fedd2819bb17fad5e40f26d2 (d7e861f13895c2d8c009e75f2f2c7aeed5448938)
- README.md +47 -0
- config.json +34 -0
- model-00001-of-00014.safetensors +3 -0
- model-00002-of-00014.safetensors +3 -0
- model-00003-of-00014.safetensors +3 -0
- model-00004-of-00014.safetensors +3 -0
- model-00005-of-00014.safetensors +3 -0
- model-00006-of-00014.safetensors +3 -0
- model-00007-of-00014.safetensors +3 -0
- model-00008-of-00014.safetensors +3 -0
- model-00009-of-00014.safetensors +3 -0
- model-00010-of-00014.safetensors +3 -0
- model-00011-of-00014.safetensors +3 -0
- model-00012-of-00014.safetensors +3 -0
- model-00013-of-00014.safetensors +3 -0
- model-00014-of-00014.safetensors +3 -0
- model.safetensors.index.json +0 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +0 -0
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: other
|
3 |
+
license_name: mrl
|
4 |
+
language:
|
5 |
+
- en
|
6 |
+
tags:
|
7 |
+
- chat
|
8 |
+
- mlx
|
9 |
+
pipeline_tag: text-generation
|
10 |
+
library_name: transformers
|
11 |
+
datasets:
|
12 |
+
- anthracite-org/c2_logs_16k_mistral-large_v1.2
|
13 |
+
- anthracite-org/kalo-opus-instruct-22k-no-refusal
|
14 |
+
- lodrick-the-lafted/kalo-opus-instruct-3k-filtered
|
15 |
+
- anthracite-org/nopm_claude_writing_fixed
|
16 |
+
- anthracite-org/kalo_opus_misc_240827
|
17 |
+
- anthracite-org/kalo_misc_part2
|
18 |
+
base_model: anthracite-org/magnum-v4-123b
|
19 |
+
---
|
20 |
+
|
21 |
+
# mlx-community/magnum-v4-123b-4bit
|
22 |
+
|
23 |
+
The Model [mlx-community/magnum-v4-123b-4bit](https://huggingface.co/mlx-community/magnum-v4-123b-4bit) was
|
24 |
+
converted to MLX format from [anthracite-org/magnum-v4-123b](https://huggingface.co/anthracite-org/magnum-v4-123b)
|
25 |
+
using mlx-lm version **0.20.4**.
|
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("mlx-community/magnum-v4-123b-4bit")
|
37 |
+
|
38 |
+
prompt="hello"
|
39 |
+
|
40 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
41 |
+
messages = [{"role": "user", "content": prompt}]
|
42 |
+
prompt = tokenizer.apply_chat_template(
|
43 |
+
messages, tokenize=False, add_generation_prompt=True
|
44 |
+
)
|
45 |
+
|
46 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
47 |
+
```
|
@@ -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": 12288,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 28672,
|
13 |
+
"max_position_embeddings": 131072,
|
14 |
+
"model_type": "mistral",
|
15 |
+
"num_attention_heads": 96,
|
16 |
+
"num_hidden_layers": 88,
|
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.45.0.dev0",
|
32 |
+
"use_cache": false,
|
33 |
+
"vocab_size": 32768
|
34 |
+
}
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c40b146644a695ed432a449976339e7cb8c4b552f0965435d85b344859a0e3c4
|
3 |
+
size 5280417174
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e0f09560cb9e28368663c97dea13ff335e3a56347b91ba3c8ee18bcbff426a6c
|
3 |
+
size 5252155112
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:81635677322f1825e07e039cd8703f3b03bbafe59e4998417476b5a69baa292b
|
3 |
+
size 5365401340
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1cd0d235d82244950ebfd20d619ae1068e156e5d9946b053733badfa27c4331c
|
3 |
+
size 5351244918
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4b01f4129d6710650747f307e4845393271504c6ff6b10c4c6a4b1ff6b98e737
|
3 |
+
size 5252105782
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d22fec84d71c4f3199272f0d54e52f31e01ddabbc39b923ee2009ce470ea6e19
|
3 |
+
size 5252155191
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e31aa80f7e9d2f76ddd171a011e645e72779bfe840904c55a153e1e8d3009161
|
3 |
+
size 5252155163
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9baaad029fe8311aa39118f44f6f4071f3ca0f7cbfc2e4b3d2a444c9e68a82ea
|
3 |
+
size 5365401396
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2e649e255ff7ed8ebd3c643b77f0459e82359446efd8323481306e64c2c96610
|
3 |
+
size 5351244926
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d492ea5a5fdbd99b5eb7c3cccfd7aea850b0cd4dfb2fc326191e378dec83580
|
3 |
+
size 5252105812
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6e4b27bbb4abb307db708c49ab0c56a773ca34923fa8f84c3fece57df55e9789
|
3 |
+
size 5252155155
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a3fe69fcb3066e3ed204b293be10a69514ce6ff097a05c7869f80499cb02a747
|
3 |
+
size 5252155191
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:094551270300dc92943922fb86026b58acabbf54ce12eb4a3bcbf19520ffc65c
|
3 |
+
size 5266334573
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:45d3bf58940ceeca88ced1b1b63bd3b2046b018cdbbd75fa8a41c6bd5a777a4f
|
3 |
+
size 226492716
|
The diff for this file is too large to render.
See raw diff
|
|
@@ -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": "</s>",
|
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 |
+
}
|
The diff for this file is too large to render.
See raw diff
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:59f95e28944c062244741268596badc900df86c7f5ded05088d2da22a7379e06
|
3 |
+
size 587583
|
The diff for this file is too large to render.
See raw diff
|
|