medmekk HF staff commited on
Commit
5736223
·
verified ·
1 Parent(s): df06465

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +21 -0
  2. config.json +38 -0
  3. pytorch_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - medmekk/testing_repo_name
4
+ ---
5
+
6
+ # medmekk/testing_repo_name (Quantized)
7
+
8
+ ## Description
9
+ This model is a quantized version of the original model `medmekk/testing_repo_name`. It has been quantized using int4_weight_only quantization with torchao.
10
+
11
+ ## Quantization Details
12
+ - **Quantization Type**: int4_weight_only
13
+ - **Group Size**: 128
14
+
15
+ ## Usage
16
+ You can use this model in your applications by loading it directly from the Hugging Face Hub:
17
+
18
+ ```python
19
+ from transformers import AutoModel
20
+
21
+ model = AutoModel.from_pretrained("medmekk/testing_repo_name")
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "meta-llama/Meta-Llama-3-8B",
3
+ "architectures": [
4
+ "LlamaModel"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 128000,
9
+ "eos_token_id": 128001,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 4096,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 14336,
15
+ "max_position_embeddings": 8192,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 32,
19
+ "num_hidden_layers": 32,
20
+ "num_key_value_heads": 8,
21
+ "pretraining_tp": 1,
22
+ "quantization_config": {
23
+ "modules_to_not_convert": null,
24
+ "quant_method": "torchao",
25
+ "quant_type": "int4_weight_only",
26
+ "quant_type_kwargs": {
27
+ "group_size": 128
28
+ }
29
+ },
30
+ "rms_norm_eps": 1e-05,
31
+ "rope_scaling": null,
32
+ "rope_theta": 500000.0,
33
+ "tie_word_embeddings": false,
34
+ "torch_dtype": "bfloat16",
35
+ "transformers_version": "4.46.0.dev0",
36
+ "use_cache": true,
37
+ "vocab_size": 128256
38
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:859b700ec5260a6b232882e8cbdd6d66446ceab6352b82be5b24ddff466467e5
3
+ size 4759189518