Upload folder using huggingface_hub

#6
README.md CHANGED
@@ -40,7 +40,7 @@ tags:
40
  **Frequently Asked Questions**
41
  - ***How does the compression work?*** The model is compressed with awq.
42
  - ***How does the model quality change?*** The quality of the model output might vary compared to the base model.
43
- - ***How is the model efficiency evaluated?*** These results were obtained on NVIDIA A100-PCIE-40GB with configuration described in `model/smash_config.json` and are obtained after a hardware warmup. The smashed model is directly compared to the original base model. Efficiency results may vary in other settings (e.g. other hardware, image size, batch size, ...). We recommend to directly run them in the use-case conditions to know if the smashed model can benefit you.
44
  - ***What is the model format?*** We use safetensors.
45
  - ***What calibration data has been used?*** If needed by the compression method, we used WikiText as the calibration data.
46
  - ***What is the naming convention for Pruna Huggingface models?*** We take the original model name and append "turbo", "tiny", or "green" if the smashed model has a measured inference speed, inference memory, or inference energy consumption which is less than 90% of the original base model.
@@ -65,7 +65,7 @@ You can run the smashed model with these steps:
65
  model = AutoAWQForCausalLM.from_quantized("PrunaAI/gradientai-Llama-3-8B-Instruct-262k-AWQ-4bit-smashed", trust_remote_code=True, device_map='auto')
66
  tokenizer = AutoTokenizer.from_pretrained("gradientai/Llama-3-8B-Instruct-262k")
67
 
68
- input_ids = tokenizer("What is the color of prunes?,", return_tensors='pt').to("cuda")["input_ids"]
69
 
70
  outputs = model.generate(input_ids, max_new_tokens=216)
71
  tokenizer.decode(outputs[0])
 
40
  **Frequently Asked Questions**
41
  - ***How does the compression work?*** The model is compressed with awq.
42
  - ***How does the model quality change?*** The quality of the model output might vary compared to the base model.
43
+ - ***How is the model efficiency evaluated?*** These results were obtained on HARDWARE_NAME with configuration described in `model/smash_config.json` and are obtained after a hardware warmup. The smashed model is directly compared to the original base model. Efficiency results may vary in other settings (e.g. other hardware, image size, batch size, ...). We recommend to directly run them in the use-case conditions to know if the smashed model can benefit you.
44
  - ***What is the model format?*** We use safetensors.
45
  - ***What calibration data has been used?*** If needed by the compression method, we used WikiText as the calibration data.
46
  - ***What is the naming convention for Pruna Huggingface models?*** We take the original model name and append "turbo", "tiny", or "green" if the smashed model has a measured inference speed, inference memory, or inference energy consumption which is less than 90% of the original base model.
 
65
  model = AutoAWQForCausalLM.from_quantized("PrunaAI/gradientai-Llama-3-8B-Instruct-262k-AWQ-4bit-smashed", trust_remote_code=True, device_map='auto')
66
  tokenizer = AutoTokenizer.from_pretrained("gradientai/Llama-3-8B-Instruct-262k")
67
 
68
+ input_ids = tokenizer("What is the color of prunes?,", return_tensors='pt').to(model.device)["input_ids"]
69
 
70
  outputs = model.generate(input_ids, max_new_tokens=216)
71
  tokenizer.decode(outputs[0])
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "/tmp/tmp20qpnlyz",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
@@ -27,7 +27,7 @@
27
  },
28
  "rms_norm_eps": 1e-05,
29
  "rope_scaling": null,
30
- "rope_theta": 207112184.0,
31
  "tie_word_embeddings": false,
32
  "torch_dtype": "float16",
33
  "transformers_version": "4.40.0",
 
1
  {
2
+ "_name_or_path": "/ceph/hdd/staff/charpent/.cache/modelsyf0kn793ujmhrtd3",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
 
27
  },
28
  "rms_norm_eps": 1e-05,
29
  "rope_scaling": null,
30
+ "rope_theta": 283461213.0,
31
  "tie_word_embeddings": false,
32
  "torch_dtype": "float16",
33
  "transformers_version": "4.40.0",
model-00001-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:84ab8b47f1d71da312bc07c07ac762ac85d5f5b551b035192b2957cd6b904df6
3
  size 4677265296
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24aa0cb2f928c91b53a2a3e2439f9e53119cf1f5e4fb1341cee47df2f08eb088
3
  size 4677265296
model-00002-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e0aea05bca78be54606d48eac33a9618198a32be23db2c61912505a1d4bd5dd4
3
  size 1050673280
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec014febf7538d1a05633750105e38d0c83d611b139ae615e02a2700862ea5ca
3
  size 1050673280
smash_config.json CHANGED
@@ -14,7 +14,7 @@
14
  "controlnet": "None",
15
  "unet_dim": 4,
16
  "device": "cuda",
17
- "cache_dir": "/ceph/hdd/staff/charpent/.cache/models2b2csjlm",
18
  "batch_size": 1,
19
  "model_name": "gradientai/Llama-3-8B-Instruct-262k",
20
  "task": "text_text_generation",
 
14
  "controlnet": "None",
15
  "unet_dim": 4,
16
  "device": "cuda",
17
+ "cache_dir": "/ceph/hdd/staff/charpent/.cache/modelsyf0kn793",
18
  "batch_size": 1,
19
  "model_name": "gradientai/Llama-3-8B-Instruct-262k",
20
  "task": "text_text_generation",