sosoai commited on
Commit
51530f8
·
verified ·
1 Parent(s): 28c305a

56c9fe76b2b0879a8e85351344d698eb4754be6becb5abb66f4dd3301b1e7b33

Browse files
Files changed (3) hide show
  1. README.md +25 -0
  2. config.json +36 -0
  3. model-00002-of-00002.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ko
5
+ license: gemma
6
+ tags:
7
+ - mlx
8
+ ---
9
+
10
+ # sosoai/hansoldeco-gemma-2-2b-v0.1-mlx
11
+
12
+ The Model [sosoai/hansoldeco-gemma-2-2b-v0.1-mlx](https://huggingface.co/sosoai/hansoldeco-gemma-2-2b-v0.1-mlx) was converted to MLX format from [sosoai/hansoldeco-gemma-2-2b-v0.1](https://huggingface.co/sosoai/hansoldeco-gemma-2-2b-v0.1) using mlx-lm version **0.16.1**.
13
+
14
+ ## Use with mlx
15
+
16
+ ```bash
17
+ pip install mlx-lm
18
+ ```
19
+
20
+ ```python
21
+ from mlx_lm import load, generate
22
+
23
+ model, tokenizer = load("sosoai/hansoldeco-gemma-2-2b-v0.1-mlx")
24
+ response = generate(model, tokenizer, prompt="hello", verbose=True)
25
+ ```
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma2ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "attn_logit_softcapping": 50.0,
8
+ "bos_token_id": 2,
9
+ "cache_implementation": "hybrid",
10
+ "eos_token_id": 1,
11
+ "final_logit_softcapping": 30.0,
12
+ "head_dim": 256,
13
+ "hidden_act": "gelu_pytorch_tanh",
14
+ "hidden_activation": "gelu_pytorch_tanh",
15
+ "hidden_size": 2304,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 9216,
18
+ "max_position_embeddings": 8192,
19
+ "model_type": "gemma2",
20
+ "num_attention_heads": 8,
21
+ "num_hidden_layers": 26,
22
+ "num_key_value_heads": 4,
23
+ "pad_token_id": 1,
24
+ "quantization": {
25
+ "group_size": 64,
26
+ "bits": 4
27
+ },
28
+ "query_pre_attn_scalar": 256,
29
+ "rms_norm_eps": 1e-06,
30
+ "rope_theta": 10000.0,
31
+ "sliding_window": 4096,
32
+ "torch_dtype": "bfloat16",
33
+ "transformers_version": "4.44.0.dev0",
34
+ "use_cache": true,
35
+ "vocab_size": 256000
36
+ }
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c124c6d0dadeec6288162e72d03bbe26e5b6619dda43b8510d08cd9b0e800ec9
3
+ size 1130832644