morgul commited on
Commit
80aaa11
1 Parent(s): fe9dc95

Upload folder using huggingface_hub (#1)

Browse files

- d1ccbe0952aa9f649479e505c0905ab90be0dbae02403e94429636006374048e (67f3ecf3016bd3948f0df3607df3791c546d2ad4)
- 60fbfd651ea64ab8a189e4192c1b70cef6a5309fb6759cb7f5d0bd9adaed8ed6 (71fe608fbaa84b3909d4286287afe544c164f42f)
- c0a8ec2e3855b64698fddde571292a044fc5f291f7c17ddb916a1696b7d936c1 (5c9a1923cd1ae9d399f27a15e06d675e5f10d8eb)
- eb07346fc2ce743e5980a6188cacab23e0d404c59eb4bbf8e0a4e09132c94164 (8c618469bd93a2918597b18513027936459fdd01)
- 0267538732cd46bb4bb6a67752086d0def57c836e39b90fb55433d27d0eebc4b (951153e469a2d382a8b573c00d92db4637232b33)
- 973782e2c7a8ca4dddce088f5c07d0ef80e611caf954ca249606ff7cfc49b07a (2531f68aad141db098c117a90274ef83dc1f522c)
- 456805fc77a68670de23f1f88cb78a7a7ad2b3c86a37886efa5ccf4f85e3eea4 (cdefdc6a22b0947d77bf6f30e0acc55d58233098)
- 24f2ee55609163a695f8218405b7286d555a0997dbcc6bac28c9475022fc4290 (a14c496fbb40bcf833ee1265728bf0f6284e5541)

README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: ausboss/llama-30b-supercot
3
+ tags:
4
+ - mlx
5
+ ---
6
+
7
+ # mlx-community/llama-30b-supercot
8
+
9
+ The Model [mlx-community/llama-30b-supercot](https://huggingface.co/mlx-community/llama-30b-supercot) was converted to MLX format from [ausboss/llama-30b-supercot](https://huggingface.co/ausboss/llama-30b-supercot) using mlx-lm version **0.19.0**.
10
+
11
+ ## Use with mlx
12
+
13
+ ```bash
14
+ pip install mlx-lm
15
+ ```
16
+
17
+ ```python
18
+ from mlx_lm import load, generate
19
+
20
+ model, tokenizer = load("mlx-community/llama-30b-supercot")
21
+
22
+ prompt="hello"
23
+
24
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
25
+ messages = [{"role": "user", "content": prompt}]
26
+ prompt = tokenizer.apply_chat_template(
27
+ messages, tokenize=False, add_generation_prompt=True
28
+ )
29
+
30
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
31
+ ```
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "bos_token_id": 1,
6
+ "eos_token_id": 2,
7
+ "hidden_act": "silu",
8
+ "hidden_size": 6656,
9
+ "initializer_range": 0.02,
10
+ "intermediate_size": 17920,
11
+ "max_position_embeddings": 2048,
12
+ "max_sequence_length": 2048,
13
+ "model_type": "llama",
14
+ "num_attention_heads": 52,
15
+ "num_hidden_layers": 60,
16
+ "pad_token_id": 0,
17
+ "quantization": {
18
+ "group_size": 64,
19
+ "bits": 8
20
+ },
21
+ "quantization_config": {
22
+ "group_size": 64,
23
+ "bits": 8
24
+ },
25
+ "rms_norm_eps": 1e-06,
26
+ "tie_word_embeddings": false,
27
+ "torch_dtype": "float16",
28
+ "transformers_version": "4.28.0",
29
+ "use_cache": true,
30
+ "vocab_size": 32000
31
+ }
model-00001-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d7ba66ecd12ab77e4fb81ea675d09c5e30361ab60dbdcbe5c88891bb1f91bc6
3
+ size 5342848326
model-00002-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb5c72b2174cd0088f91cb5163d4726914a305fffc926383b4670b7b0a227431
3
+ size 5304830522
model-00003-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7120ef7a134b1e9bd8f885b224d3a3c7fa467d85f4ef110c0c56c139daed518d
3
+ size 5366277919
model-00004-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9242e89f7c1709f2d6d9f814c7fa14494468fa855393cd01e40e764e4c32c97
3
+ size 5341172272
model-00005-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd8151a3848c0ae9dc477d8e3d25f6540badaf153a96d462cccb72935ce9288f
3
+ size 5337417936
model-00006-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc344519bc94aa91d7908636cf9f491c0c5df7f8ed4cd3e106ad9adf582942ff
3
+ size 5366277920
model-00007-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:408fd2d472e181173e0f5a23a7777c32566e89bfdfb19dc97e39b0fdfcb69486
3
+ size 2504091644
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,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "</s>",
33
+ "model_max_length": 2048,
34
+ "pad_token": null,
35
+ "sp_model_kwargs": {},
36
+ "tokenizer_class": "LlamaTokenizer",
37
+ "unk_token": "<unk>",
38
+ "use_default_system_prompt": false
39
+ }