Views
No views yet

elm-v0.1 (named Rambutan) was pre-trained (an intermediate checkpoint was used) and then instruction fine-tuned for downstream tasks.models folder) in this repository come in three sizes (elm-1.0, elm-0.75 and elm-0.25). All these different slices are extracted from the same ELM finetuned checkpoint for inference and supports the following use-case.GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/slicexai/elm-v0.11cd elm-v0.1
2pip install -r requirements.txt1sudo apt-get install git-lfs
2git lfs installsudo apt-get install git-lfs with brew install git-lfs1wget https://github.com/git-lfs/git-lfs/releases/download/v3.2.0/git-lfs-linux-amd64-v3.2.0.tar.gz
2tar -xzf git-lfs-linux-amd64-v3.2.0.tar.gz
3PATH=$PATH:/<absolute-path>/git-lfs-3.2.0/
4git lfs installgit lfs pullNOTE: Please allow a few minutes for the full download of all model checkpoints.1git lfs pull -I elm-1.0_news_classification/ckpt.pt
2git lfs pull -I elm-1.0_toxicity_detection/ckpt.pt
3git lfs pull -I elm-1.0_news_content_generation/ckpt.pt
4git lfs pull -I elm-1.0_news_summarization/ckpt.pt1git lfs pull -I elm-0.75_news_classification/ckpt.pt
2git lfs pull -I elm-0.75_toxicity_detection/ckpt.pt
3git lfs pull -I elm-0.75_news_content_generation/ckpt.pt
4git lfs pull -I elm-0.75_news_summarization/ckpt.pt1git lfs pull -I elm-0.25_news_classification/ckpt.pt
2git lfs pull -I elm-0.25_toxicity_detection/ckpt.pt
3git lfs pull -I elm-0.25_news_content_generation/ckpt.pt1python run.py <elm-model-directory>
2E.g. python run.py elm-0.75_news_classificationmodels/elm-0.75_news_classification/example_prompts.json.1{
2 "inputs": ["GM May Close Plant in Europe DETROIT (Reuters) - General Motors Corp. <A HREF=\"http://www.investor.reuters.com/FullQuote.aspx?ticker=GM.N target=/stocks/quickinfo/fullquote\">GM.N</A> will likely cut some jobs in Europe and may close a plant there as part of a restructuring plan under development to try to return the region to profitability, the U.S. automaker said on Wednesday."],
3 "template": "[INST]Below is a news article. Please classify it under one of the following classes (World, Business, Sports, Sci/Tech). Please format your response as a JSON payload.\n\n### Article: {input}\n\n### JSON Response:[/INST]"
4}1{
2 "prompt": "[INST]Below is a news article. Please classify it under one of the following classes (World, Business, Sports, Sci/Tech). Please format your response as a JSON payload.\n\n### Article: GM May Close Plant in Europe DETROIT (Reuters) - General Motors Corp. <A HREF=\"http://www.investor.reuters.com/FullQuote.aspx?ticker=GM.N target=/stocks/quickinfo/fullquote\">GM.N</A> will likely cut some jobs in Europe and may close a plant there as part of a restructuring plan under development to try to return the region to profitability, the U.S. automaker said on Wednesday.\n\n### JSON Response:[/INST]",
3 "response": "{'text_label': 'Business'}"
4}