FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

Colab notebook for demo

Open markwsac opened this issue 1 year ago • 16 comments

Thanks a ton team for the release of model. Any notebook for demo? Some steps about mentioning model paths are a bit confusing. thanks

markwsac avatar Apr 04 '23 00:04 markwsac

me too

shuentang avatar Apr 04 '23 04:04 shuentang

+1

eran-barkai avatar Apr 05 '23 19:04 eran-barkai

contributions are welcome

merrymercy avatar Apr 07 '23 00:04 merrymercy

I found working code here along with Colab notebook - Vicuna

markwsac avatar Apr 09 '23 09:04 markwsac

Hey @merrymercy If you assignee to me. I can do a notebook

EnesGumuskaynak avatar Apr 09 '23 09:04 EnesGumuskaynak

@EnesGumuskaynak Please go ahead

merrymercy avatar Apr 09 '23 10:04 merrymercy

@markwsac We cannot distribute merged weights because of the LLaMA model license. We encourage you to use our recommended way to run Vicuna.

merrymercy avatar Apr 09 '23 10:04 merrymercy

@EnesGumuskaynak any updates?

GeorvityLabs avatar Apr 10 '23 12:04 GeorvityLabs

I've just started

EnesGumuskaynak avatar Apr 10 '23 13:04 EnesGumuskaynak

@EnesGumuskaynak hope you make one using vicuna-7b , 8bit? with chat interface

GeorvityLabs avatar Apr 10 '23 13:04 GeorvityLabs

I'm working on it but colab free not offer much ram and dont allow to create swap file. 3 step need more than colab offer.

  1. LLama weights to hugging face version convert ()
  2. Hugging face version to vicuna version applying delta
  3. Start vicuna model "Loading checkpoint " part

The common aspect of all 3 steps is to first load the model into ram and then start the process.

EnesGumuskaynak avatar Apr 11 '23 11:04 EnesGumuskaynak

since we cannot share the model weights, people will need to upload the original llama weights or the huggingface version into Colab. This will further complicate the process of running the demo on Google Colab. It seems more reasonable to create notebooks with documentation for local use. I am open to other suggestions as well.

EnesGumuskaynak avatar Apr 11 '23 11:04 EnesGumuskaynak

since we cannot share the model weights, people will need to upload the original llama weights or the huggingface version into Colab. This will further complicate the process of running the demo on Google Colab. It seems more reasonable to create notebooks with documentation for local use. I am open to other suggestions as well.

yea, you can use vicuna models already available on huggingface model hub , people have converted the delta weights to usable weights.

GeorvityLabs avatar Apr 11 '23 12:04 GeorvityLabs

@GeorvityLabs It is not recommended to use these weights due to the following reasons:

  1. Respect the LLaMA license
  2. We did not verify the correctness of any of these weights.
  3. We will have future updates but these weights won't be updated because they are not released by us.

merrymercy avatar Apr 11 '23 17:04 merrymercy

@GeorvityLabs It is not recommended to use these weights due to the following reasons:

  1. Respect the LLaMA license
  2. We did not verify the correctness of any of these weights.
  3. We will have future updates but these weights won't be updated because they are not released by us.

thanks for the clarification.

GeorvityLabs avatar Apr 11 '23 17:04 GeorvityLabs

#427 I created a PR. You can review it. Unfortunately, I couldn't make a special work for Colab as I mentioned before.

EnesGumuskaynak avatar Apr 14 '23 08:04 EnesGumuskaynak

Perhaps one could do a notebook with a less restrictive model, say, Mistral?

surak avatar Oct 21 '23 15:10 surak

A colab demo for FastChat will be great. we welcome contribution.

infwinston avatar Oct 21 '23 15:10 infwinston

Any updates on FastChat working with free version of Colab?

Yamazaki85 avatar Nov 14 '23 03:11 Yamazaki85

Hi @merrymercy !

I have a notebook in which I am able to run the FastChat API in Google Colab free tier. As examples I've included the code snippets for accessing embeddings, contributed by @andy-yang-1. These code examples, part of the PR #663.

The notebook is deployed locally into the playground directory, but this is the link:

https://colab.research.google.com/drive/1aosMOb0vltjdlAha2-_y2tKgZ1srBFxL?usp=sharing

ggcr avatar Jan 20 '24 12:01 ggcr