crumb / FLAN-OPT-1.3b-LoRA

huggingface.co
Total runs: 11
24-hour runs: 0
7-day runs: -5
30-day runs: -1
Model's Last Updated: March 02 2023

Introduction of FLAN-OPT-1.3b-LoRA

Model Details of FLAN-OPT-1.3b-LoRA

FLAN-OPT-1.3b-LoRA

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI.

This model is facebook/opt-1.3b finetuned with low-rank adapters ( https://arxiv.org/abs/2106.09685 ) on the FLAN datasets ( https://arxiv.org/pdf/2210.11416.pdf ).

Low-rank adapters (r=16) finetuned over 4.2m new tokens of a FLAN task mixture, with the start of each example cut off if it was too large to fit within a 256 token context.

The model reaches a train ppl of 4.77 and an eval ppl of 4.19.

Inference Example (Chain-of-Thought prompt):
# %pip install -qq transformers git+https://github.com/huggingface/peft accelerate bitsandbytes
from peft import PeftModel, PeftConfig
from transformers import AutoModelForCausalLM, AutoTokenizer
peft_model_id = "crumb/FLAN-OPT-1.3b-LoRA"

config = PeftConfig.from_pretrained(peft_model_id)
model = AutoModelForCausalLM.from_pretrained(config.base_model_name_or_path, load_in_8bit=True, low_cpu_mem_usage=True, device_map='auto')
model = PeftModel.from_pretrained(model, peft_model_id)
tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)

import torch
prompt = """
Q: Answer the following yes/no question by reasoning step-by-step. Could a dandelion suffer from hepatitis?
A: Hepatitis only affects organisms with livers. Dandelions don’t have a liver. The answer is no.

Q: Answer the following yes/no question by reasoning step-by-step. Can you write a whole Haiku in a single tweet?
A: A haiku is a japanese three-line poem. That is short enough to fit in 280 characters. The answer is yes.

Q: Answer the following yes/no question by reasoning step-by-step. Can you reach space with a Cessna?
A: 
""".strip()
inputs = tokenizer([prompt], return_tensors='pt')

with torch.autocast("cuda", dtype=torch.float16):
    outputs = model.generate(
        input_ids=inputs.input_ids.cuda(),
        attention_mask=inputs.attention_mask.cuda(),
        max_new_tokens=32,
        top_k=4,
        penalty_alpha=0.6
    )
print("\n".join(tokenizer.decode(outputs[0]).split("\n")[:prompt.count("\n")+1]))
# Cessna is a type of aircraft. Space is beyond the reach of Cessna. The answer is no.

Runs of crumb FLAN-OPT-1.3b-LoRA on huggingface.co

11
Total runs
0
24-hour runs
-3
3-day runs
-5
7-day runs
-1
30-day runs

More Information About FLAN-OPT-1.3b-LoRA huggingface.co Model

FLAN-OPT-1.3b-LoRA huggingface.co

FLAN-OPT-1.3b-LoRA huggingface.co is an AI model on huggingface.co that provides FLAN-OPT-1.3b-LoRA's model effect (), which can be used instantly with this crumb FLAN-OPT-1.3b-LoRA model. huggingface.co supports a free trial of the FLAN-OPT-1.3b-LoRA model, and also provides paid use of the FLAN-OPT-1.3b-LoRA. Support call FLAN-OPT-1.3b-LoRA model through api, including Node.js, Python, http.

FLAN-OPT-1.3b-LoRA huggingface.co Url

https://huggingface.co/crumb/FLAN-OPT-1.3b-LoRA

crumb FLAN-OPT-1.3b-LoRA online free

FLAN-OPT-1.3b-LoRA huggingface.co is an online trial and call api platform, which integrates FLAN-OPT-1.3b-LoRA's modeling effects, including api services, and provides a free online trial of FLAN-OPT-1.3b-LoRA, you can try FLAN-OPT-1.3b-LoRA online for free by clicking the link below.

crumb FLAN-OPT-1.3b-LoRA online free url in huggingface.co:

https://huggingface.co/crumb/FLAN-OPT-1.3b-LoRA

FLAN-OPT-1.3b-LoRA install

FLAN-OPT-1.3b-LoRA is an open source model from GitHub that offers a free installation service, and any user can find FLAN-OPT-1.3b-LoRA on GitHub to install. At the same time, huggingface.co provides the effect of FLAN-OPT-1.3b-LoRA install, users can directly use FLAN-OPT-1.3b-LoRA installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

FLAN-OPT-1.3b-LoRA install url in huggingface.co:

https://huggingface.co/crumb/FLAN-OPT-1.3b-LoRA

Url of FLAN-OPT-1.3b-LoRA

FLAN-OPT-1.3b-LoRA huggingface.co Url

Provider of FLAN-OPT-1.3b-LoRA huggingface.co

crumb
ORGANIZATIONS

Other API from crumb

huggingface.co

Total runs: 2.9K
Run Growth: 1.1K
Growth Rate: 38.02%
Updated:March 10 2024
huggingface.co

Total runs: 154
Run Growth: 21
Growth Rate: 13.64%
Updated:January 05 2024
huggingface.co

Total runs: 114
Run Growth: 45
Growth Rate: 39.47%
Updated:March 18 2024
huggingface.co

Total runs: 73
Run Growth: 0
Growth Rate: 0.00%
Updated:August 15 2024
huggingface.co

Total runs: 46
Run Growth: 15
Growth Rate: 32.61%
Updated:July 21 2023
huggingface.co

Total runs: 32
Run Growth: 26
Growth Rate: 81.25%
Updated:November 25 2023
huggingface.co

Total runs: 26
Run Growth: 11
Growth Rate: 42.31%
Updated:February 13 2024
huggingface.co

Total runs: 25
Run Growth: 11
Growth Rate: 44.00%
Updated:May 06 2023
huggingface.co

Total runs: 24
Run Growth: 19
Growth Rate: 79.17%
Updated:March 02 2024
huggingface.co

Total runs: 23
Run Growth: 15
Growth Rate: 65.22%
Updated:August 27 2024
huggingface.co

Total runs: 18
Run Growth: 10
Growth Rate: 55.56%
Updated:January 07 2024
huggingface.co

Total runs: 15
Run Growth: 8
Growth Rate: 53.33%
Updated:January 04 2024
huggingface.co

Total runs: 14
Run Growth: 8
Growth Rate: 57.14%
Updated:November 25 2023
huggingface.co

Total runs: 13
Run Growth: 5
Growth Rate: 38.46%
Updated:November 25 2023
huggingface.co

Total runs: 13
Run Growth: 6
Growth Rate: 46.15%
Updated:November 30 2023
huggingface.co

Total runs: 12
Run Growth: 5
Growth Rate: 41.67%
Updated:October 19 2023
huggingface.co

Total runs: 12
Run Growth: 4
Growth Rate: 33.33%
Updated:November 30 2023
huggingface.co

Total runs: 12
Run Growth: 5
Growth Rate: 41.67%
Updated:September 27 2023
huggingface.co

Total runs: 11
Run Growth: 3
Growth Rate: 27.27%
Updated:October 12 2023
huggingface.co

Total runs: 11
Run Growth: 2
Growth Rate: 18.18%
Updated:October 11 2023
huggingface.co

Total runs: 10
Run Growth: 7
Growth Rate: 70.00%
Updated:November 25 2023
huggingface.co

Total runs: 10
Run Growth: -6
Growth Rate: -60.00%
Updated:November 07 2023
huggingface.co

Total runs: 9
Run Growth: -3
Growth Rate: -33.33%
Updated:October 17 2023
huggingface.co

Total runs: 9
Run Growth: -4
Growth Rate: -57.14%
Updated:October 16 2023
huggingface.co

Total runs: 9
Run Growth: 1
Growth Rate: 11.11%
Updated:October 15 2023