Discover Issues, Share Solutions.

ChatGPT Fine-Tuning

ChatGPT GPT-3.5 Turbo Model Fine-Tuning - Chinese Version

OpenAI officially announced GPT-3.5 Turbo fine-tuning and API updates some time ago. Today, I tried out the training process briefly. By following the steps on the official website, you can successfully complete the training in four steps. The training process takes about 10 minutes, though the duration depends on the amount of training data you have. The first step is to prepare the fine-tuning data by saving it as a text file with a .json extension (such as turbo35.json). Each line must be a complete JSON object, and the file needs to contain at least 10 lines of training data. {"messages": [{ "role": "system", "content": "你是一个故事大王,能讲很多小故事" }, { "role": "user", "content": "给我讲一个故事" }, { "role": "assistant", "content": "一天,一个学生去学校上课" }]} {"messages": [{ "role": "user", "content": "给我讲一个关于小狗的故事" }, { "role": "assistant", "content": "一天,一只小狗溜进了动物园" }]} {"messages": [{ "role": "user", "content": "给我讲一个关于小猫的故事" }, { "role": "assistant", "content": "一天,一只小猫溜进了厨房" }]} {"messages": [{ "role": "user", "content": "给我讲一个关于小猪的故事" }, { "role": "assistant", "content": "一天,一只小猪睡了一整天" }]} {"messages": [{ "role": "user", "content": "给我讲一个关于小鸡的故事" }, { "role": "assistant", "content": "一天,一只小鸡飞了起来" }]} {"messages": [{ "role": "user", "content": "给我讲一个关于小鸭的故事" }, { "role": "assistant", "content": "一天,一只小鸭有过了一条河" }]} {"messages": [{ "role": "user", "content": "给我讲一个关于小鸟的故事" }, { "role": "assistant", "content": "一天,一只小鸟站在一颗大树上" }]} {"messages": [{ "role": "user", "content": "给我讲一个关于小虫的故事" }, { "role": "assistant", "content": "一天,一只小虫吃了一大片树叶" }]} {"messages": [{ "role": "user", "content": "给我讲一个关于小女孩的故事" }, { "role": "assistant", "content": "一天,一个小女孩跳了一支舞" }]} {"messages": [{ "role": "user", "content": "给我讲一个关于小男孩的故事" }, { "role": "assistant", "content": "一天,一小男孩踢了一场球" }]} The second step is to call the v1/files endpoint to upload the fine-tuning data file prepared in the first step (@turbo35.json, which can be a relative or absolute path). curl https://www.openai-api.top/v1/files -H "Authorization: Bearer 这里填入你自己的ChatGPT API Key" -F "purpose=fine-tune" -F "[email protected]" After calling the endpoint, you will receive a response with data in a format similar to the following:

How to Remove kdevtmpfsi Mining Virus on VPS Hosting: A Step-by-Step Guide

Have you noticed your VPS server’s CPU usage spiking close to 100%? This could be caused by the kdevtmpfsi mining virus, a malicious software that hijacks your server resources for cryptocurrency mining. In this article, we will walk you through how to identify and remove this virus from your VPS hosting, ensuring your server runs smoothly again. What is kdevtmpfsi Mining Virus? The kdevtmpfsi virus is a type of malware that secretly installs on your Linux-based VPS server to mine cryptocurrency. It often infiltrates through unsecured Docker containers or other vulnerable points. Once installed, it consumes a significant amount of CPU, leading to poor server performance, high energy usage, and potential financial losses.
VPS

Why Megalayer VPS is the Key to Smoothly Accessing ChatGPT?

If you’re looking for a reliable and fast VPS provider to ensure smooth access to services like ChatGPT, Megalayer is a great option to consider. In this article, we’ll dive into why Megalayer is ideal for maintaining a stable ChatGPT connection, focusing on its speed, native IPs, and optimized performance features. Speed: Low Latency and High Performance Megalayer’s server infrastructure is built for speed and reliability, with data centers distributed globally to ensure low latency and high-performance connections. Whether you’re using ChatGPT for daily interactions or performing other tasks that demand a steady connection, Megalayer’s high-speed network guarantees a smooth experience. Regardless of your location, you’ll enjoy fast, uninterrupted interactions with the server.
macOS Big Sur

When executing sudo mkdir xxx in the root directory of macOS Monterey, the error message Read-only file system is returned.

For security and protection purposes, Apple has restricted the ability to create files in the root directory starting from macOS Big Sur. Even if you use sudo with root privileges, you cannot create files directly in the root directory. However, Apple has provided a workaround solution using Firmlinks, a link mechanism similar to Unix symbolic links, that can satisfy specific user requirements without compromising the system. Many online solutions require users to restart the computer and enter recovery mode, which is complicated. This article introduces a more convenient and secure solution that can be done in just two steps (or strictly speaking, just one step).
Github Logo

Resolved github REMOTE HOST IDENTIFICATION HAS CHANGED issue

How to fix the following issue when run the command pod update –verbose or pod install –verbose [!] Error installing XXX [!] Failed to download ‘XXX’: [!] /usr/bin/git clone [email protected]:username/XXX.git /var/folders/z5/qp2m0vpj35zdzlk6sfhhnhwh0000gn/T/d20230401-33779-1wmy5bk –template= –single-branch –depth 1 –branch 1.4.4 Cloning into ‘/var/folders/z5/qp2m0vpj35zdzlk6sfhhnhwh0000gn/T/d20230401-33779-1wmy5bk’… @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. Please contact your system administrator. Add correct host key in ~/.ssh/known_hosts to get rid of this message. Offending RSA key in ~/.ssh/known_hosts:4 Host key for github.com has changed and you have requested strict checking. Host key verification failed. fatal: Could not read from remote repository.
CocoaPods

CocoaPods Install

1、Check the gem version: gem --version 2、If the gem version is less than 2.6.14, it is recommended to upgrade to version 2.6.14 or higher: sudo gem update --system 3、Change the gem source: sudo gem --remove https://rubygems.org sudo gem --add http://gems.ruby-china.org 4、Use the Sudo-less install method to install CocoaPods: a)、Create a new directory in your Home directory, such as Vendor/ruby b)、export GEM_HOME=$HOME/Vendor/ruby c)、export PATH=$HOME/Vendor/ruby/bin:$PATH d)、gem install cocoapods -v 1.5 5、Add the environment variable from step 3b to the ~/.bash_profile file (if you have an Apple M1 chip, use the ~/.zshrc file) and execute: source ~/.bash_profile Files related to CocoaPods that are installed using the above method will be installed in the Vendor/ruby directory under your home directory.
CocoaPods

How to solve the Cocoapods CDN Error error when executing pod update or pod install.

When executing pod update or pod install with Cocoapods 1.8.5, the error message is as follows: Update all pods Updating local specs repositories [!] CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/ Response: 400 Solution: Follow the official documentation to add a source to the Podfile: # Uncomment the next line to define a global platform for your project source 'https://github.com/CocoaPods/Specs.git' platform :ios, '10.0' ... ... ... ...
Macbook

macOS Catalina 10.15 have not enough disk warning when install Xcode 11

When updating Xcode, it may appear as if you have sufficient disk space, yet you still receive a not enough disk space warning. The most straightforward and effective solution is to free up space by deleting previous Xcode builds and unnecessary simulated devices. This can instantly free up several gigabytes of space. You can perform the following steps in Finder or Terminal to free up space: 1.Delete previous Xcode builds in the /Library/Developer/Xcode/Archives directory, which stores the historical records of your app development builds.
macOS Catalina Photoanalysisd

macOS Catalina 10.15 cannot be opened because the developer cannot be verified

Due to the update of the permission system and the default system shell from bash to zsh in macOS Catalina 10.15, it was found that starting MongoDB from the command line was not working as before. After running the command, an error message was directly reported: “Developer cannot be verified”, as shown in the figure below: Solution: Open System Preferences and go to Security & Privacy, click on Allow Anyway on the right side of the red rectangle at the bottom to resolve the issue.
macOS Catalina Photoanalysisd

How to solve the problem of high CPU usage and frequent disk overheating after upgrading to macOS Catalina 10.15?

Today I upgraded my system to macOS Catalina 10.15 and found that the disk would heat up and the fan would start spinning loudly after using it for a while. Even if all applications were closed, this issue still occurred, and I suspected that the system was doing something in the background. I directly opened the system’s built-in Activity Monitor monitoring tool and found that a process called “photoanalysisd” was running in the background, causing the CPU usage to soar to 40% to 50%.