michaelfeil / ct2fast-dolly-v2-3b

huggingface.co
Total runs: 14
24-hour runs: 0
7-day runs: 1
30-day runs: 8
Model's Last Updated: May 03 2023

Introduction of ct2fast-dolly-v2-3b

Model Details of ct2fast-dolly-v2-3b

Fast-Inference with Ctranslate2

Speedup inference by 2x-8x using int8 inference in C++

quantized version of databricks/dolly-v2-12b

pip install hf_hub_ctranslate2>=1.0.0 ctranslate2>=3.13.0

Checkpoint compatible to ctranslate2 and hf-hub-ctranslate2

  • compute_type=int8_float16 for device="cuda"
  • compute_type=int8 for device="cpu"
from hf_hub_ctranslate2 import TranslatorCT2fromHfHub, GeneratorCT2fromHfHub

model_name = "michaelfeil/ct2fast-dolly-v2-12b"
model = GeneratorCT2fromHfHub(
        # load in int8 on CUDA
        model_name_or_path=model_name, 
        device="cuda",
        compute_type="int8_float16"
)
outputs = model.generate(
    text=["How do you call a fast Flan-ingo?", "User: How are you doing?"],
)
print(outputs)

Licence and other remarks:

This is just a quantized version. Licence conditions are intended to be idential to original huggingface repo.

Usage of Dolly-v2:

According to the Intruction Pipeline of databricks/dolly-v2-12b

# from https://huggingface.co/databricks/dolly-v2-12b
def encode_prompt(instruction):
  INSTRUCTION_KEY = "### Instruction:"
  RESPONSE_KEY = "### Response:"
  END_KEY = "### End"
  INTRO_BLURB = (
      "Below is an instruction that describes a task. Write a response that appropriately completes the request."
  )
  
  # This is the prompt that is used for generating responses using an already trained model.  It ends with the response
  # key, where the job of the model is to provide the completion that follows it (i.e. the response itself).
  PROMPT_FOR_GENERATION_FORMAT = """{intro}
  {instruction_key}
  {instruction}
  {response_key}
  """.format(
      intro=INTRO_BLURB,
      instruction_key=INSTRUCTION_KEY,
      instruction="{instruction}",
      response_key=RESPONSE_KEY,
  )
  return PROMPT_FOR_GENERATION_FORMAT.format(instruction=instruction)

Runs of michaelfeil ct2fast-dolly-v2-3b on huggingface.co

14
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
8
30-day runs

More Information About ct2fast-dolly-v2-3b huggingface.co Model

More ct2fast-dolly-v2-3b license Visit here:

https://choosealicense.com/licenses/mit

ct2fast-dolly-v2-3b huggingface.co

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

ct2fast-dolly-v2-3b huggingface.co Url

https://huggingface.co/michaelfeil/ct2fast-dolly-v2-3b

michaelfeil ct2fast-dolly-v2-3b online free

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

michaelfeil ct2fast-dolly-v2-3b online free url in huggingface.co:

https://huggingface.co/michaelfeil/ct2fast-dolly-v2-3b

ct2fast-dolly-v2-3b install

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

ct2fast-dolly-v2-3b install url in huggingface.co:

https://huggingface.co/michaelfeil/ct2fast-dolly-v2-3b

Url of ct2fast-dolly-v2-3b

ct2fast-dolly-v2-3b huggingface.co Url

Provider of ct2fast-dolly-v2-3b huggingface.co

michaelfeil
ORGANIZATIONS

Other API from michaelfeil