Instructions to use Duke-CEI-SVD/traj-mc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Duke-CEI-SVD/traj-mc with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Duke-CEI-SVD/traj-mc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download code/eval/lm_tasks/code_instruct/humaneval_instruct.yaml from Duke-CEI-SVD/traj-mc: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/Duke-CEI-SVD/traj-mc/resolve/main/code/eval/lm_tasks/code_instruct/humaneval_instruct.yaml
- Command line
-
hf download hf://Duke-CEI-SVD/traj-mc/code/eval/lm_tasks/code_instruct/humaneval_instruct.yaml
-
curl -L -o humaneval_instruct.yaml https://huggingface.co/Duke-CEI-SVD/traj-mc/resolve/main/code/eval/lm_tasks/code_instruct/humaneval_instruct.yaml
1.13 kB
| # Chat-aware HumanEval for LLaDA-8B-Instruct. Identical to lm-eval's stock | |
| # humaneval.yaml EXCEPT the two things a chat model breaks (see utils.py): | |
| # until: <|eot_id|> instead of Python-keyword stops, which decapitate a | |
| # fenced answer the moment the model writes "\ndef". | |
| # filter_fn: build_predictions_chat, which pulls the program out of the | |
| # markdown fence instead of concatenating prose onto the signature. | |
| # Filter NAME stays "create_test" so analysis/lmeval_to_items.py keeps selecting it. | |
| task: humaneval_instruct | |
| dataset_path: openai/openai_humaneval | |
| unsafe_code: true | |
| output_type: generate_until | |
| test_split: test | |
| doc_to_text: "{{prompt}}" | |
| doc_to_target: "{{test}}\ncheck({{entry_point}})" | |
| metric_list: | |
| - metric: !function utils.pass_at_k | |
| aggregation: mean | |
| higher_is_better: true | |
| k: [1] | |
| generation_kwargs: | |
| until: | |
| - "<|eot_id|>" | |
| max_gen_toks: 1024 | |
| do_sample: false | |
| repeats: 1 | |
| num_fewshot: 0 | |
| filter_list: | |
| - name: "create_test" | |
| filter: | |
| - function: "custom" | |
| filter_fn: !function utils.build_predictions_chat | |
| metadata: | |
| version: 1.0 | |