合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

        代做CS 839、代寫python/Java設計編程
        代做CS 839、代寫python/Java設計編程

        時間:2024-10-05  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



        CS 839: FOUNDATION MODELS HOMEWORK 1
        Instructions: Read the two problems below. Type up your results and include your plots in LaTeX. Submit your answers in two weeks (i.e., Oct. 3 2024, end of day). You will need a machine for this assignment, but a laptop (even without GPU) should still work. You may also need an OpenAI account to use ChatGPT, but a free account should work.
        1. NanoGPT Experiments. We will experiment with a few aspects of GPT training. While this normally requires significant resources, we will use a mini-implementation that can be made to run (for the character level) on any laptop. If you have a GPU on your machine (or access to one), even better, but no resources are strictly required.
        • 1. Clone Karpathy’s nanoGPT repo (https://github.com/karpathy/nanoGPT). We will use this repo for all the experiments in this problem. Read and get acquainted with the README.
        • 2. Setup and Reproduction. Run the Shakespeare character-level GPT model. Start by running the prep code, then a basic run with the default settings. Note that you will use a different command line if you have a GPU versus a non-GPU. After completing training, produce samples. In your answer, include the first two lines you’ve generated.
        • 3. Hyperparameter Experimentation. Modify the number of layers and heads, but do not take more than 10 minutes per run. What is the lowest loss you can obtain? What settings produce it on your machine?
        • 4. Evaluation Metrics. Implement a specific and a general evaluation metric. You can pick any that you would like, but with the following goals: Your specific metric is meant to capture how close your generated data distribution is to the training distribution. Your general metric need not necessarily do this and should be applicable without comparing against the training dataset. Explain your choices and report your metrics on the settings above.
        • 5.Dataset.Obtainyourfavoritetextdataset.Thismightbecollecteddatabyawriter(butnotShakespeare!), text in a different language, or whatever you would prefer. Scrape and format this data. Train nanoGPT on your new data. Vary the amount of characters of your dataset. Draw a plot on number of training characters versus your metrics from the previous part. How much data do you need to produce a reasonable score according to your metrics?
        • 6. Fine-tuning. Fine-tune the trained Shakespeare model on the dataset you built above. How much data and training do you need to go from Shakesperean output to something that resembles your dataset?
        2. Prompting. We will attempt to see how ChatGPT can cope with challenging questions.
        • 1. Zero-shot vs. Few-shot. Find an example of a prompt that ChatGPT cannot answer in a zero-shot manner,
        but can with a few-shot approach.
        • 2. Ensembling and Majority Vote. Use a zero-shot question and vary the temperature parameter to obtain multiple samples. How many samples are required before majority vote recovers the correct answer?
        • 3. Rot13. In this problem our goal is to use Rot13 encoding and ‘teach’ ChatGPT how to apply it. You can use rot13.com to quickly encode and decode. Also read about it at https://en.wikipedia.org/wiki/ROT13. Our goal is to ask questions like
        but encoded with Rot13, i.e.,
        What is the capital of France?, Jung vf gur pncvgny bs Senapr?,
        1

        Homework 1 CS 839: Foundation Models
         – What do you obtain if you ask a question like this zero-shot? Note: you may need to decode back. – What do you obtain with a few-shot variant?
        – Provide the model with additional instructions. What can you obtain?
        – Find a strategy to ultimately produce the correct answer to an encoded geographic (or other) question like this one.
        2

        請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp







         

        掃一掃在手機打開當前頁
      1. 上一篇:CPSC 219代做、代寫Java語言設計
      2. 下一篇:UMEECS542代做、代寫Java/c++編程語言
      3. 無相關信息
        合肥生活資訊

        合肥圖文信息
        出評 開團工具
        出評 開團工具
        挖掘機濾芯提升發動機性能
        挖掘機濾芯提升發動機性能
        戴納斯帝壁掛爐全國售后服務電話24小時官網400(全國服務熱線)
        戴納斯帝壁掛爐全國售后服務電話24小時官網
        菲斯曼壁掛爐全國統一400售后維修服務電話24小時服務熱線
        菲斯曼壁掛爐全國統一400售后維修服務電話2
        美的熱水器售后服務技術咨詢電話全國24小時客服熱線
        美的熱水器售后服務技術咨詢電話全國24小時
        海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
        海信羅馬假日洗衣機亮相AWE 復古美學與現代
        合肥機場巴士4號線
        合肥機場巴士4號線
        合肥機場巴士3號線
        合肥機場巴士3號線
      4. 上海廠房出租 短信驗證碼 酒店vi設計

        主站蜘蛛池模板: 国产精品无码AV一区二区三区| 三级韩国一区久久二区综合| 亚洲熟女乱色一区二区三区| 精品视频在线观看一区二区| 日韩高清国产一区在线| 无码人妻一区二区三区在线水卜樱 | 国产一区二区三区在线观看影院| 精品一区二区三区中文字幕| 视频在线观看一区二区| 另类ts人妖一区二区三区| 中文字幕乱码一区久久麻豆樱花| 亚洲不卡av不卡一区二区| 秋霞午夜一区二区| 日本一区二区三区在线观看 | 动漫精品第一区二区三区| 亚洲高清一区二区三区| 日本激情一区二区三区| 免费无码毛片一区二区APP| 人妻少妇一区二区三区| 亚洲综合色自拍一区| 久久精品无码一区二区日韩AV| 一区二区三区高清视频在线观看| 国产福利一区二区精品秒拍| 精品国产一区二区二三区在线观看| 国产大秀视频在线一区二区| 在线中文字幕一区| 激情内射亚洲一区二区三区爱妻| 色国产精品一区在线观看| 日产精品久久久一区二区| 亚洲一区无码中文字幕乱码| 国产精品一区二区不卡| 在线播放偷拍一区精品| 欧美日韩综合一区二区三区| 亚洲丰满熟女一区二区哦| 亚洲综合一区无码精品| 在线精品自拍亚洲第一区| 精品一区二区三区中文| 亚洲一区二区三区偷拍女厕| 一区二区免费视频| 成人久久精品一区二区三区| eeuss鲁片一区二区三区|