The calflops is designed to calculate FLOPs、MACs and Parameters in all various neural networks, such as Linear、 CNN、 RNN、 GCN、Transformer(Bert、LlaMA etc Large Language Model)
Traceback (most recent call last):
File "/home/melisarussak/based-research/count_flops.py", line 20, in <module>
flops, macs, params = calculate_flops_hf(model_name, input_shape=(batch_size, max_seq_length))
File "/home/melisarussak/based-research/venv/lib/python3.10/site-packages/calflops/flops_counter_hf.py", line 77, in calculate_flops_hf
empty_model = create_empty_model(model_name=model_name,
File "/home/melisarussak/based-research/venv/lib/python3.10/site-packages/calflops/estimate.py", line 133, in create_empty_model
raise ValueError(
ValueError: Library `gpt-neox` is not supported yet, please open an issue on GitHub for us to add support.
I am trying to run:
Here is the full error traceback: