sosoai commited on
Commit
c42d062
·
verified ·
1 Parent(s): 10488d9

6d562baf2c3232d18d7f93bf1ec336c418efb89df83542d074c0cff435e16796

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