sharpenb commited on
Commit
ce0e3bd
1 Parent(s): 7b2f19c

Upload folder using huggingface_hub (#2)

Browse files

- 0e8e4986b49fefd6e01583a9a4c445e0573eaf984f6c60b0e6aa83d274c46a1a (8963e2ffed425c96642c22df2380276392086a4f)
- 68f13bcbf5ad4c2bbcd2eba00f390e5441b0a5f06cfc820c957c012d077faa1b (bbc47df20cac271412df388d89b3bbb9bf7e2b33)

Files changed (2) hide show
  1. README.md +8 -8
  2. results.json +17 -0
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  thumbnail: "https://assets-global.website-files.com/646b351987a8d8ce158d1940/64ec9e96b4334c0e1ac41504_Logo%20with%20white%20text.svg"
3
- base_model: ajibawa-2023/Scarlett-Llama-3-8B
4
  metrics:
5
  - memory_disk
6
  - memory_inference
@@ -38,7 +38,7 @@ tags:
38
  ![image info](./plots.png)
39
 
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.
@@ -52,18 +52,18 @@ tags:
52
 
53
  You can run the smashed model with these steps:
54
 
55
- 0. Check requirements from the original repo ajibawa-2023/Scarlett-Llama-3-8B installed. In particular, check python, cuda, and transformers versions.
56
  1. Make sure that you have installed quantization related packages.
57
  ```bash
58
- pip install autoawq
59
  ```
60
  2. Load & run the model.
61
  ```python
62
  from transformers import AutoModelForCausalLM, AutoTokenizer
63
- from awq import AutoAWQForCausalLM
64
 
65
- model = AutoAWQForCausalLM.from_quantized("PrunaAI/ajibawa-2023-Scarlett-Llama-3-8B-AWQ-4bit-smashed", trust_remote_code=True, device_map='auto')
66
- tokenizer = AutoTokenizer.from_pretrained("ajibawa-2023/Scarlett-Llama-3-8B")
67
 
68
  input_ids = tokenizer("What is the color of prunes?,", return_tensors='pt').to(model.device)["input_ids"]
69
 
@@ -77,7 +77,7 @@ The configuration info are in `smash_config.json`.
77
 
78
  ## Credits & License
79
 
80
- The license of the smashed model follows the license of the original model. Please check the license of the original model ajibawa-2023/Scarlett-Llama-3-8B before using this model which provided the base model. The license of the `pruna-engine` is [here](https://pypi.org/project/pruna-engine/) on Pypi.
81
 
82
  ## Want to compress other models?
83
 
 
1
  ---
2
  thumbnail: "https://assets-global.website-files.com/646b351987a8d8ce158d1940/64ec9e96b4334c0e1ac41504_Logo%20with%20white%20text.svg"
3
+ base_model: PrunaAI/ajibawa-2023-Scarlett-Llama-3-8B-AWQ-4bit-smashed
4
  metrics:
5
  - memory_disk
6
  - memory_inference
 
38
  ![image info](./plots.png)
39
 
40
  **Frequently Asked Questions**
41
+ - ***How does the compression work?*** The model is compressed with [.
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.
 
52
 
53
  You can run the smashed model with these steps:
54
 
55
+ 0. Check requirements from the original repo PrunaAI/ajibawa-2023-Scarlett-Llama-3-8B-AWQ-4bit-smashed installed. In particular, check python, cuda, and transformers versions.
56
  1. Make sure that you have installed quantization related packages.
57
  ```bash
58
+ REQUIREMENTS_INSTRUCTIONS
59
  ```
60
  2. Load & run the model.
61
  ```python
62
  from transformers import AutoModelForCausalLM, AutoTokenizer
63
+ IMPORTS
64
 
65
+ MODEL_LOAD
66
+ tokenizer = AutoTokenizer.from_pretrained("PrunaAI/ajibawa-2023-Scarlett-Llama-3-8B-AWQ-4bit-smashed")
67
 
68
  input_ids = tokenizer("What is the color of prunes?,", return_tensors='pt').to(model.device)["input_ids"]
69
 
 
77
 
78
  ## Credits & License
79
 
80
+ The license of the smashed model follows the license of the original model. Please check the license of the original model PrunaAI/ajibawa-2023-Scarlett-Llama-3-8B-AWQ-4bit-smashed before using this model which provided the base model. The license of the `pruna-engine` is [here](https://pypi.org/project/pruna-engine/) on Pypi.
81
 
82
  ## Want to compress other models?
83
 
results.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "current_gpu_type": "NVIDIA A100-PCIE-40GB",
3
+ "current_gpu_total_memory": 40339.3125,
4
+ "perplexity": 7.473793029785156,
5
+ "token_generation_latency_sync": 17.71582670211792,
6
+ "token_generation_latency_async": 17.533245496451855,
7
+ "token_generation_throughput_sync": 0.05644670253409345,
8
+ "token_generation_throughput_async": 0.057034506258545614,
9
+ "token_generation_CO2_emissions": null,
10
+ "token_generation_energy_consumption": null,
11
+ "inference_latency_sync": 190.38822326660156,
12
+ "inference_latency_async": 46.19624614715576,
13
+ "inference_throughput_sync": 0.005252425716477721,
14
+ "inference_throughput_async": 0.02164678049412395,
15
+ "inference_CO2_emissions": null,
16
+ "inference_energy_consumption": null
17
+ }