You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the SythesizRR on the Polarity task from the example main.py.
My main file is:
fromtypingimport*fromsynthesizrr.base.data.FileMetadataimportFileMetadatafromsynthesizrr.base.frameworkimportChainExecution, Trackerfromsynthesizrr.base.constantsimportStatusfromsynthesizrr.expt.commonimportModelName, Experiment, DatasetName, Retriever, Corpus, RESULTS_DIRfromsynthesizrr.expt.driverimportrun_chainimportsynthesizrrimportrayfromray.util.daskimportray_dask_get, enable_dask_on_ray, disable_dask_on_rayfrompprintimportpprintpprint(ray.init(
# address='ray://127.0.0.1:6379', ## MODIFY THISignore_reinit_error=True,
_temp_dir=str('/tmp/ray/'),
runtime_env={"py_modules": [
synthesizrr,
]},
))
enable_dask_on_ray()
pprint(ray.cluster_resources()) ## Shows you number of cpus and gpus to make sure it is setup properly.TRACKER=Tracker.of('log', path='./synthesizrr_run.log') ## Execution outputs will get logged to this file.BACKGROUND: bool=FalseCART_FRAC: Optional[float] =0.83## Make None to Cartography filtering.if__name__=='__main__':
""" ___ _ _ _ | _ \ ___ | | __ _ _ _ (_)| |_ _ _ | _// _ \| |/ _` || '_|| || _|| || | |_| \___/|_|\__,_||_| |_| \__| \_, | |__/ """SYNTHESIZRR_NUM_SHOTS_LIST= [32]
synthesizrr_no_retr_icl_amazon_polarity_llama_2_13b_chat_exn=run_chain(
results_dir=RESULTS_DIR,
expt=Experiment.SynthesizRR,
dataset_name=DatasetName.AmazonReviewsPolarity,
model_name=ModelName.LLaMa_2_13B_Chat,
num_shots_list=SYNTHESIZRR_NUM_SHOTS_LIST,
corpus=Corpus.AmazonProducts,
retriever=Retriever.Contriever,
#retriever=Retriever.BM25Okapi,num_samples_per_label=5_000,
seed_type='train_set',
seed_set_stratify_on_ground_truth=False,
icl_type='seed',
llm_batch_size=1,
llm_submission_batch_size=12,
llm_num_models=48,
llm_num_concurrent_preds=2,
metrics_overall_num_samples_per_label=4_000,
metrics_max_parallel=3,
metrics_label_distribution='train_set',
# metrics_to_evaluate=None,icl_and_prompt_template=dict(
icl_template="""Review: {{icl[example_text]}}""".strip() +' ',
prompt_template="""{{icl_examples}}Product details:{{retrieved_context}}Write a review about the above product on Amazon which discusses {label_verbalization}. Include relevant product details which are mentioned above. The review should only be a single short sentence, or a single paragraph of 3 to 4 sentences. Add very minor typos.Review: """.strip() +' ',
),
tracker=TRACKER,
background=BACKGROUND,
verbosity=5,
step_wait=5,
cart_frac=CART_FRAC,
# dry_run=True,notifier=None
)
The error I'm getting is from the RetrieveFromSeedSet step:
ERROR_LITMUS:root:[ERROR]: ValueError: "No file ending in ".predictions-params.json" was found in "~/Experiments/synthesizrr/src/results/retrieval-corpus/amazon_products/contriever-embeddings/"; this file is required to create a Predictions object; please check the directory is correct."
It seems the predicition-params.json file really doesn't get created.
My results tree structure looks like this:
I'm trying to run the SythesizRR on the Polarity task from the example
main.py
.My main file is:
The error I'm getting is from the
RetrieveFromSeedSet
step:It seems the
predicition-params.json
file really doesn't get created.My results tree structure looks like this:
Attaching full log including the debug messages - synthesizrr-error.log
The text was updated successfully, but these errors were encountered: