LlamaAgent For CausalLM
parlai i -m hugging_face/llama --inference greedy --skip-generation False --llama-model-dir <MODEL_DIR>
ParlaiLlamaClassifierAgent for Sequence_level classification
parlai i -m parlai.agents.hugging_face.llama:ParlaiLlamaClassifierAgent --classes __notok__ __ok__ --llama-model-dir <MODEL_DIR>
Testing steps
7B model
parlai i -m hugging_face/llama --skip-generation False --llama-model-dir /checkpoint/jingxu23/genesis/7B_1T/hf_converted_resharded_mp2
1.5B model
parlai i -m hugging_face/llama --skip-generation False --llama-model-dir /checkpoint/jingxu23/genesis/1.5B_1T_v0/hf_convertedOther information
Patch description Add 2 agents:
LlamaAgent
For CausalLMparlai i -m hugging_face/llama --inference greedy --skip-generation False --llama-model-dir <MODEL_DIR>
ParlaiLlamaClassifierAgent
for Sequence_level classificationparlai i -m parlai.agents.hugging_face.llama:ParlaiLlamaClassifierAgent --classes __notok__ __ok__ --llama-model-dir <MODEL_DIR>
Testing steps
7B model
parlai i -m hugging_face/llama --skip-generation False --llama-model-dir /checkpoint/jingxu23/genesis/7B_1T/hf_converted_resharded_mp2
1.5B modelparlai i -m hugging_face/llama --skip-generation False --llama-model-dir /checkpoint/jingxu23/genesis/1.5B_1T_v0/hf_converted
Other information