eagle0504 commited on
Commit
6d24aae
β€’
1 Parent(s): a458c56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -28
app.py CHANGED
@@ -29,16 +29,15 @@ for message in st.session_state.messages:
29
 
30
 
31
  # Sidebar
32
- with st.expander("Instructions"):
33
- st.sidebar.markdown(
34
- r"""
35
- # 🌟 Streamlit + Hugging Face Demo πŸ€–
36
 
37
- ## Introduction πŸ“–
38
 
39
- This demo showcases how to interact with Large Language Models (LLMs) on Hugging Face using Streamlit.
40
- """
41
- )
42
 
43
 
44
  option = st.sidebar.selectbox(
@@ -52,37 +51,36 @@ st.sidebar.write("---")
52
  st.sidebar.markdown("Yiqiao Yin: [Site](https://www.y-yin.io/) | [LinkedIn](https://www.linkedin.com/in/yiqiaoyin/)")
53
 
54
 
55
- with st.sidebar.expander("More Detailed Tutorials"):
56
- st.sidebar.markdown(
57
- r"""
58
- To fine-tune LLM such as Llama2 on custom data, please use the following tutorials as resources. For the options above such as `Llama2 on YSA` and `Llama2 on BRK Letters`, they are developed based on the content of the following videos.
59
 
60
- ## Video Series Overview
61
 
62
- ### Video 1: Process Your Own PDF Doc into LLM Finetune-Ready Format
63
 
64
- Learn how to transform PDF documents into AI model fine-tuning ready formats. This video will take you through the steps to make your PDF data AI-ready.
65
 
66
- - [Watch Video](https://youtu.be/hr2kSC1evQM)
67
- - [Tutorial Notebook](https://github.com/yiqiao-yin/WYNAssociates/blob/main/docs/ref-deeplearning/ex24f%20-%20process%20custom%20data%20from%20pdf%20and%20push%20to%20huggingface%20to%20prep%20for%20fine%20tune%20task%20of%20llama%202%20using%20lora.ipynb)
68
 
69
- ### Video 2: Fine-tune Llama2-7b LLM Using Custom Data
70
 
71
- Dive into customizing the Llama-2 model with your unique dataset. This installment turns your data into a bespoke AI model.
72
 
73
- - [Watch Video](https://youtu.be/tDkY2gpvylE)
74
- - [Guide to Fine-Tuning](https://github.com/yiqiao-yin/WYNAssociates/blob/main/docs/ref-deeplearning/ex24f%20-%20fine%20tune%20Llama%202%20using%20ysa%20data%20in%20colab.ipynb)
75
 
76
- ### Video 3: Deploy Inference Endpoint on HuggingFace!
77
 
78
- Discover how to make your AI model accessible to the world by deploying it on HuggingFace. This video turns your project into a global phenomenon.
79
 
80
- - [Watch Video](https://youtu.be/382yy-mCeCA)
81
- - [Deployment Guide](https://github.com/yiqiao-yin/WYNAssociates/blob/main/docs/ref-deeplearning/ex24f%20-%20inference%20endpoint%20interaction%20from%20huggingface.ipynb)
82
- - [HuggingFace Space](https://huggingface.co/spaces/eagle0504/streamlit-demo)
83
 
84
- """
85
- )
86
 
87
 
88
  # Reset everything
 
29
 
30
 
31
  # Sidebar
32
+ st.sidebar.markdown(
33
+ r"""
34
+ # 🌟 Streamlit + Hugging Face Demo πŸ€–
 
35
 
36
+ ## Introduction πŸ“–
37
 
38
+ This demo showcases how to interact with Large Language Models (LLMs) on Hugging Face using Streamlit.
39
+ """
40
+ )
41
 
42
 
43
  option = st.sidebar.selectbox(
 
51
  st.sidebar.markdown("Yiqiao Yin: [Site](https://www.y-yin.io/) | [LinkedIn](https://www.linkedin.com/in/yiqiaoyin/)")
52
 
53
 
54
+ st.sidebar.markdown(
55
+ r"""
56
+ To fine-tune LLM such as Llama2 on custom data, please use the following tutorials as resources. For the options above such as `Llama2 on YSA` and `Llama2 on BRK Letters`, they are developed based on the content of the following videos.
 
57
 
58
+ ## Video Series Overview
59
 
60
+ ### Video 1: Process Your Own PDF Doc into LLM Finetune-Ready Format
61
 
62
+ Learn how to transform PDF documents into AI model fine-tuning ready formats. This video will take you through the steps to make your PDF data AI-ready.
63
 
64
+ - [Watch Video](https://youtu.be/hr2kSC1evQM)
65
+ - [Tutorial Notebook](https://github.com/yiqiao-yin/WYNAssociates/blob/main/docs/ref-deeplearning/ex24f%20-%20process%20custom%20data%20from%20pdf%20and%20push%20to%20huggingface%20to%20prep%20for%20fine%20tune%20task%20of%20llama%202%20using%20lora.ipynb)
66
 
67
+ ### Video 2: Fine-tune Llama2-7b LLM Using Custom Data
68
 
69
+ Dive into customizing the Llama-2 model with your unique dataset. This installment turns your data into a bespoke AI model.
70
 
71
+ - [Watch Video](https://youtu.be/tDkY2gpvylE)
72
+ - [Guide to Fine-Tuning](https://github.com/yiqiao-yin/WYNAssociates/blob/main/docs/ref-deeplearning/ex24f%20-%20fine%20tune%20Llama%202%20using%20ysa%20data%20in%20colab.ipynb)
73
 
74
+ ### Video 3: Deploy Inference Endpoint on HuggingFace!
75
 
76
+ Discover how to make your AI model accessible to the world by deploying it on HuggingFace. This video turns your project into a global phenomenon.
77
 
78
+ - [Watch Video](https://youtu.be/382yy-mCeCA)
79
+ - [Deployment Guide](https://github.com/yiqiao-yin/WYNAssociates/blob/main/docs/ref-deeplearning/ex24f%20-%20inference%20endpoint%20interaction%20from%20huggingface.ipynb)
80
+ - [HuggingFace Space](https://huggingface.co/spaces/eagle0504/streamlit-demo)
81
 
82
+ """
83
+ )
84
 
85
 
86
  # Reset everything