在微信无法显示中文的情况,可以通过增加字体和设 Lang variable 的方式来解决。
具体看:https://askubuntu.com/questions/1019530/chinese-fonts-are-not-visible-in-programs-installed-in-wine
如果可以显示中文,但是输入框无法显示正在输入的文字或内容,则需要添加 dll 文件来解决。
具体看:https://zhuanlan.zhihu.com/p/76331687
| from langchain_core.prompts import PromptTemplate | |
| import re | |
| import traceback | |
| import sys | |
| import readline | |
| from langchain_huggingface import HuggingFacePipeline | |
| # This script only runs with GPU | |
| # | |
| # pip install transformers==4.32.0 accelerate tiktoken einops scipy transformers_stream_generator==0.0.4 peft deepspeed |
| from langchain_core.prompts import PromptTemplate | |
| import re | |
| import traceback | |
| import sys | |
| import readline | |
| from langchain_huggingface import HuggingFacePipeline | |
| # template = """Question: {question} | |
| # Answer: Let's think step by step.""" |
| from langchain_core.prompts import PromptTemplate | |
| import sys | |
| import readline | |
| from langchain_huggingface import HuggingFacePipeline | |
| hf = HuggingFacePipeline.from_model_id( | |
| model_id="TinyLlama/TinyLlama-1.1B-Chat-v1.0", | |
| task="text-generation", | |
| pipeline_kwargs={ | |
| "max_new_tokens": 150, |
| echo -e '\n'Initiating Spring Boot Starter | |
| echo -e '\n'Enter Artifact Name: | |
| read artName | |
| echo -e '\n'Enter Group Name: | |
| read groupName | |
| mkdir $artName && cd $artName | |
| curl https://start.spring.io/starter.zip -d language=java -d packageName=$groupName -d name=$artName -o $artName.zip |
| VERSION=1.4.2.Final | |
| echo -e '\n'Initiating Quarkus $VERSION Quick-Start Project | |
| echo -e '\n'Enter Group Id: | |
| read groupId | |
| echo -e '\n'Enter artifact Id: | |
| read artifactName | |
| echo -e '\n'Creating Project... |
| # msi-perkeyrgb --model GS65 -c ./msi-perkeyrpg-config | |
| # a-f | |
| 38-41 steady f54242 | |
| # j-; | |
| 44-47 steady f54242 | |
| # \ / # $ % & * | |
| 94,61,51,13,14,16,17 steady 00ff4c | |
| # arrow keys | |
| 111,113,114,116 steady f54242 | |
| # home, page up, page down, end |
| set completion-ignore-case on | |
| # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving | |
| "\e[1;5C": forward-word | |
| "\e[1;5D": backward-word |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.curtisnewbie</groupId> | |
| <artifactId>backend</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <packaging>war</packaging> |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |