当前位置: 首页 > wzjs >正文

关于网站建设的讲话php做网站架构图

关于网站建设的讲话,php做网站架构图,凡科建站自助建站平台,企业门户平台设计方案文章目录 一、准备工作1.1 下载模型1.2 依赖安装1.3 训练数据二、Transformers 库介绍2.1 使用分词器进行预处理2.2 将预处理好的输入送入模型三、lora微调模型3.1 微调训练3.2 推理测试一、准备工作 1.1 下载模型 Huggingface是一个开放的人工智能模型库,提供了大量经过预训…

文章目录

  • 一、准备工作
    • 1.1 下载模型
    • 1.2 依赖安装
    • 1.3 训练数据
  • 二、Transformers 库介绍
    • 2.1 使用分词器进行预处理
    • 2.2 将预处理好的输入送入模型
  • 三、lora微调模型
    • 3.1 微调训练
    • 3.2 推理测试

一、准备工作

1.1 下载模型

Huggingface是一个开放的人工智能模型库,提供了大量经过预训练的模型供用户下载和使用。要下载模型访问Huggingface网站: https://huggingface.co/models

如果huggingface无法下载,可以使用下面的地址下载:

  • 模型下载地址:https://pan.quark.cn/s/a22f5a9e3490 (deepseek-r1-1.5b)
  • 数据集准备:https://pan.quark.cn/s/a220f415b35c

确保模型目录 deepseekr1-1.5b 下包含以下关键文件:

config.json
pytorch_model.bin  # 或 model.safetensors(必须存在至少一个)
tokenizer.json     # 或其他分词器文件(如 tokenizer_config.json)

1.2 依赖安装

# 在安装命令后添加 -i 参数指定镜像源:
pip install transformers datasets -i https://mirrors.aliyun.com/pypi/simple/# Transformers 库需要依赖 PyTorch、TensorFlow 或 Flax 中的一个才能加载模型
# 通用安装命令(CPU版)
pip install torch
# 如果有NVIDIA显卡(CUDA,如果下载包无cuXXX后缀表示是CPU版本)
pip install torch torchvision torchaudio --index-url https://mirrors.aliyun.com/pypi/simple/# 其他依赖(device_map="auto"、quantization_config)
pip install bitsandbytes accelerate>=0.26.0 --index-url https://mirrors.aliyun.com/pypi/simple/# Windows 官方不提供预编译的 CUDA 版 bitsandbytes,windows场景:卸载现有版本,安装社区维护的预编译版本
# 关于其他版本可自行查看下载:https://github.com/jllllll/bitsandbytes-windows-webui/releases/
pip uninstall bitsandbytes -y
pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.43.0-py3-none-win_amd64.whl

ps:常用镜像源:

阿里云:https://mirrors.aliyun.com/pypi/simple/
豆瓣:  https://pypi.doubanio.com/simple/
华为云:https://repo.huaweicloud.com/repository/pypi/simple/

永久配置镜像源:

pip config set global.index-url  https://mirrors.aliyun.com/pypi/simple/
pip config list

查看 CUDA 版本(需提前安装 NVIDIA 驱动):

nvidia-smi  # 右上角显示最高支持的 CUDA 版本(如 12.6)

1.3 训练数据

data_prepare.py:

# -*- coding: utf-8 -*-
# here is list of 50 examples of prompt and completions focused on singing skills
samples = [{"prompt": "Question 1: What is the first step to improving your singing voice?","completion": "Answer 1: Begin by warming up your vocal cords with gentle exercises like humming or lip trills."},{"prompt": "Question 2: How can you improve your breath control while singing?","completion": "Answer 2: Practice diaphragmatic breathing by inhaling deeply through your nose and controlling your exhale while singing sustained notes."},{"prompt": "Question 3: What are common mistakes beginners make when learning to sing?","completion": "Answer 3: Common mistakes include straining the voice, neglecting to warm up, and improper breathing techniques."},{"prompt": "Question 4: How do you find your vocal range?","completion": "Answer 4: Experiment by singing scales up and down to identify the lowest and highest note you can comfortably sustain."},{"prompt": "Question 5: What exercises help improve pitch accuracy?","completion": "Answer 5: Practice scales, use a piano or digital tuner for reference, and try interval training to enhance pitch precision."},{"prompt": "Question 6: How can you protect your vocal cords from strain?","completion": "Answer 6: Avoid over-singing, stay hydrated, and limit exposure to irritants like smoke or excessively dry air."},{"prompt": "Question 7: What role does posture play in singing?","completion": "Answer 7: Proper posture opens up the diaphragm and throat, allowing for better breath support and vocal projection."},{"prompt": "Question 8: How do you improve vocal tone quality?","completion": "Answer 8: Focus on resonance and placement, and practice vocal exercises like sirens to achieve a smoother tone."},{"prompt": "Question 9: What techniques help develop vibrato in singing?","completion": "Answer 9: Practice sustaining notes while gently oscillating your pitch; focus on relaxation and consistent airflow."},{"prompt": "Question 10: How can you overcome stage fright while singing?","completion": "Answer 10: Prepare thoroughly, practice mindfulness techniques, and start performing in smaller, supportive settings."},{"prompt": "Question 11: What warm-up exercises are essential for singers?","completion": "Answer 11: Lip trills, humming, and singing scales are effective warm-up exercises that prepare your voice for singing."},{"prompt": "Question 12: How do you sing high notes without straining?","completion": "Answer 12: Use proper breath support, relax your throat, and place the sound forward in your mask (resonance areas)."},{"prompt": "Question 13: What is the importance of ear training for singers?","completion": "Answer 13: Ear training helps singers recognize pitches, harmonies, and intervals, improving overall musicality and pitch accuracy."},{"prompt": "Question 14: How do you maintain vocal health during a busy singing schedule?","completion": "Answer 14: Stay hydrated, get adequate rest, and avoid overuse by incorporating regular vocal breaks and proper warm-ups."},{"prompt": "Question 15: What foods and drinks should singers avoid?","completion": "Answer 15: Avoid dairy, caffeine, and spicy foods before singing, as they can cause mucus buildup or throat irritation."},{"prompt": "Question 16: How can you improve diction while singing?","completion": "Answer 16: Practice enunciation exercises like tongue twisters and focus on shaping vowels and consonants clearly."},{"prompt": "Question 17: What are the benefits of working with a vocal coach?","completion": "Answer 17: A vocal coach provides personalized feedback, helps identify areas for improvement, and teaches proper technique."},{"prompt": "Question 18: How do you transition smoothly between vocal registers?","completion": "Answer 18: Practice blending your chest and head voice through exercises like sirens and scales to achieve a seamless transition."},{"prompt": "Question 19: What is the purpose of singing scales during practice?","completion": "Answer 19: Singing scales improves pitch accuracy, strengthens the voice, an
http://www.dtcms.com/wzjs/792410.html

相关文章:

  • 三水网站开发建设工程合同通用条款范本2017
  • 在百度上怎么做网站金华市建设监理协会网站
  • linux 国外网站seo大神做的网站
  • 网站开发毕设文档wordpress改密码
  • 沈阳企业免费建站能免费建手机网站吗
  • 网站建设流程笔记企业站系统
  • 大连市建设工程老网站怎么用flashfxp上传网站
  • 医院网站制作公司杭州的网站建设公司
  • 东莞市网站建设怎么样广西网站建设介绍
  • 保定市城市规划建设局网站郴州刚刚发生的事
  • 网站设计公司 南京大型外包公司有哪些
  • 如何向百度提交网站地图proxy网页在线代理
  • 建立网站目录结构时应注意哪几个方面?生成静态网站
  • 可信网站可信站点福州网站建设的公司哪家好
  • 网站友链好的设计作品网站
  • 乐从容桂网站建设拥有域名后怎么搭建网站
  • 做企业网站的广告词邯郸封控最新消息
  • 做优化网站怎么优化代码wordpress 传值
  • 最容易被收录的网站深圳网络推广代运营
  • 佛山网站建设推荐wordpress 汉化 主题
  • 做网站要领郑州网站外包哪家好
  • 贵阳网站建设服务wordpress 首页不显示文章
  • 网站建设中颜色的感染力培训机构软件开发
  • 网站页面设计说明怎么写ios微信上的pdf乱码
  • 计算机网站建设策划书深圳企业馆设计公司
  • 网站建设乚金手指花总15西安营销网站
  • 做网站需要什么许可证东营市城乡建设局网站
  • 有没有专门做ppt的网站江苏城乡建设教育网站
  • 邢路桥建设总公司网站公司注册名称怎么起
  • 做网站推广弊端wordpress文章字体样式