Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProSparse can not be reproduced #22

Open
xh-yuan opened this issue Jul 8, 2024 · 0 comments
Open

ProSparse can not be reproduced #22

xh-yuan opened this issue Jul 8, 2024 · 0 comments

Comments

@xh-yuan
Copy link

xh-yuan commented Jul 8, 2024

I follow the description from prosparse-7B and test the Acc on MMLU with this repo. MMLU average Acc is 41.69 but paper reports 45.21.

Here is one sample eval configuration:

{
        "task_name": "mmlu_high-school-microeconomics_gen",
        "path": "datasets/mmlu/data/high-school-microeconomics.jsonl",
        "description": "The following are multiple choice questions (with answers) about high_school_microeconomics.\n\n",
        "transform": "datasets/mmlu/transform_gen_v1.py",
        "fewshot": 5,
        "generate": {
            "method": "generate",
            "params": ""
        },
        "postprocess": "",
        "metric": {
            "accuracy": {
                "evaluation": {
                    "type": "prefix_match"
                }
            }
        }
    }

generation_config:

{
    "bos_token_id": 1,
    "do_sample": true,
    "eos_token_id": 2,
    "pad_token_id": 0,
    "temperature": 0.6,
    "max_new_tokens": 10,
    "top_p": 0.9,
    "transformers_version": "4.31.0.dev0"
}

prosparse-7B configuration:

{
    "_name_or_path": "SparseLLM/prosparse-llama-2-7b",
    "architectures": [
        "SparseLlamaForCausalLM"
    ],
    "auto_map": {
        "AutoConfig": "configuration_sparsellama.SparseLlamaConfig",
        "AutoModel": "modeling_sparsellama.SparseLlamaForCausalLM",
        "AutoModelForCausalLM": "modeling_sparsellama.SparseLlamaForCausalLM"
    },
    "bos_token_id": 1,
    "eos_token_id": 2,
    "hidden_act": "relu",
    "hidden_act_param": 0.01,
    "hidden_size": 4096,
    "initializer_range": 0.02,
    "intermediate_size": 11008,
    "max_position_embeddings": 4096,
    "model_type": "sparsellama",
    "num_attention_heads": 32,
    "num_hidden_layers": 32,
    "num_key_value_heads": 32,
    "pad_token_id": 0,
    "pretraining_tp": 1,
    "rms_norm_eps": 1e-05,
    "rope_scaling": null,
    "tie_word_embeddings": false,
    "torch_dtype": "bfloat16",
    "transformers_version": "4.31.0.dev0",
    "use_cache": true,
    "vocab_size": 32000,
    "max_length": 4096
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant