Saravanan666/pypi-org huggingface dataset:
Package: cpimgs-yzhang250
#cpimgs1. Installationpip install cpimgs2. InstructionUse this package to check drug corresponding plates and wells. \The output is a python dictionary. \The dict can be viewed in console byprintfunction.\The plates and wells info can be viewed in console as well.Images will be shown automatically by functiongetPlotsByNameAndChn3. NoteThe package is still actively under dev. The data is far from curated. Chemical names is a huge problem.4. DisclaimerThe DMSO plots shown are random DMSO plots in the same well from the drug, not necessarily the representative ones.
Package: cping
cPingcPing concurrently checks if hosts are responding using ICMP echo or TCP SYN.Installationpip3 install cpingUsagecPing uses unprivileged sockets; no need for root privileges.cping host1 host2Tip: When you launch cPing, look at the footer; it's got some useful actions.HelpSee the available arguments to adjust the behavior of cPing or use a different protocol.cping -hIf you found a bug, or just have a question/suggestion, please open anissue(greatly appreciated).Sparkline on WindowsThe sparkline (right part of the screenshot) is simplified on Windows as it doesn't support the requiredblock characters. If you know of any substitutes, let me know.Unprivileged ICMP SocketsIf you're getting aPermission deniedexception, it is likely that your OS is
too old to haveunprivileged ICMP socketsenabled by default. You can enable
this with:sudosh-c'echo net.ipv4.ping_group_range = 0 2147483647 >> /etc/sysctl.conf'sudosysctl-p
Package: cpinyin
Rewritelxneng’sxpinyinby cython since by commit3599c101f659bb7cfbc7e5c5c5684206e4fab5f9 <https://github.com/lxneng/xpinyin/commit/3599c101f659bb7cfbc7e5c5c5684206e4fab5f9>.The interfaces are completely consistent and can be seamlessly switched withxpinyin;Installpip install cpinyinUsageReplace xpinyin.Pinyin with cpinyin.Pinyin>>> import cpinyin
>>> cpinyin.install()
>>> from xpinyin import Pinyin
>>> p = Pinyin()
>>> p.get_pinyin(u"上海")
'shang-hai'Consistent with thexpinyinApi.>>> from cpinyin import Pinyin
>>> p = Pinyin()
>>> # default splitter is `-`
>>> p.get_pinyin(u"上海")
'shang-hai'
>>> # show tone marks
>>> p.get_pinyin(u"上海", tone_marks=u'marks')
'shàng-hǎi'
>>> p.get_pinyin(u"上海", tone_marks=u'numbers')
>>> 'shang4-hai3'
>>> # remove splitter
>>> p.get_pinyin(u"上海", u'')
'shanghai'
>>> # set splitter as whitespace
>>> p.get_pinyin(u"上海", u' ')
'shang hai'
>>> p.get_initial(u"上")
'S'
>>> p.get_initials(u"上海")
'S-H'
>>> p.get_initials(u"上海", u'')
'SH'
>>> p.get_initials(u"上海", u' ')
'S H'Please enter Chinese characters encoding by utf8.>>> wordvalue = '中国'
>>> wordvalue= unicode(wordvalue, 'utf-8')
>>> s = p.get_initials(wordvalue, u'').lower()
'zg'
Package: cpi-tools
CPI Data ToolsA repository of commonly used tools across CPIInstructionsInstall:pip install cpi_toolsAWS Toolsfromcpi_toolsimportaws_tools#S3 Bucketbucket='YOUR_BUCKET'#Path within S3path='PATH_IN_BUCKET'#S3 File namefile_name='FILE_NAME'#Read file from S3df=aws_tools.read_from_s3(bucket,path,file_name)#Write file to S3aws_tools.write_to_s3(df,bucket,path,file_name)
Package: cpix
cpixPython library for working with CPIX 2.2 (DASH-IF Content Protection Information Exchange) documentsFor more details on CPIX see:https://dashif.org/guidelines/https://dash-industry-forum.github.io/docs/CPIX2.2/Cpix.htmlSupported featuresCreation of CPIX documentsContent keysUsage rulesDRM systemsParsing of CPIX documentsValidation against CPIX XSDNot yet implementedValidation of document correctness (e.g. kid referenced by usage rule matches a content key)Not supportedEncryption, decryption and signing are not supported.InstallationInstall usingpip:pip install cpixExamplesScriptsExample scripts which can be used with Widevine and Playready test servers to
get or create keys and produce CPIX documents are available inexample.Simple CPIXTo create a simple CPIX document with a single key:importcpixfull_cpix=cpix.CPIX(content_keys=cpix.ContentKeyList(cpix.ContentKey(kid="0DC3EC4F-7683-548B-81E7-3C64E582E136",cek="WADwG2qCqkq5TVml+U5PXw==")),drm_systems=cpix.DRMSystemList(cpix.DRMSystem(kid="0DC3EC4F-7683-548B-81E7-3C64E582E136",system_id="EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED",pssh=("AAAAxnBzc2gBAAAA7e+LqXnWSs6jyCfc1R0h7QAAAAINw+xPdoNUi4HnPGT""lguE2FEe37S9mVyu9EwbOfPNhDQAAAIISEBRHt+0vZlcrvRMGznzzYQ0SEF""rGoR6qL17Vv2aMQByBNMoSEG7hNRbI51h7rp9+zT6Zom4SEPnsEqYaJl1Hj""4MzTjp40scSEA3D7E92g1SLgec8ZOWC4TYaDXdpZGV2aW5lX3Rlc3QiEXVu""aWZpZWQtc3RyZWFtaW5nSOPclZsG"))))This can then be printed as a formatted XML document:print(str(full_cpix.pretty_print(xml_declaration=True),"utf-8'"))<?xml version='1.0' encoding='utf-8'?><CPIXxmlns:pskc="urn:ietf:params:xml:ns:keyprov:pskc"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="urn:dashif:org:cpix"xsi:schemaLocation="urn:dashif:org:cpix cpix.xsd"><ContentKeyList><ContentKeykid="0dc3ec4f-7683-548b-81e7-3c64e582e136"><Data><pskc:Secret><pskc:PlainValue>WADwG2qCqkq5TVml+U5PXw==</pskc:PlainValue></pskc:Secret></Data></ContentKey></ContentKeyList><DRMSystemList><DRMSystemkid="0dc3ec4f-7683-548b-81e7-3c64e582e136"systemId="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"><PSSH>AAAAxnBzc2gBAAAA7e+LqXnWSs6jyCfc1R0h7QAAAAINw+xPdoNUi4HnPGTlguE2FEe37S9mVyu9EwbOfPNhDQAAAIISEBRHt+0vZlcrvRMGznzzYQ0SEFrGoR6qL17Vv2aMQByBNMoSEG7hNRbI51h7rp9+zT6Zom4SEPnsEqYaJl1Hj4MzTjp40scSEA3D7E92g1SLgec8ZOWC4TYaDXdpZGV2aW5lX3Rlc3QiEXVuaWZpZWQtc3RyZWFtaW5nSOPclZsG</PSSH></DRMSystem></DRMSystemList></CPIX>
Package: cpkg
cPkgThis is a package that generates packagesinstallpipinstallcpkguseimportcpkgcpkg.create(path='',dirName='',pkgName='',author='',author_email='',description='',url='',project_urls={},classifiers=[],python_requires=3.6,install_requires=[])orcreatepkgoptionalFor more information, seecreatepkg-hupdata0.0.6 2021 1 19Update command:See details:python3-mcpkg-h0.0.7 2021 1 19Update Info0.0.8 2021 1 19Repair Bug0.0.9 2021 1 19Repair Bug0.0.13 2021 1 24Repair Bug0.0.18 2022 3 27Convert module to command line tool0.1.9 2022 3 27Updata README.md0.1.10 2022 4 9Repair Bug0.1.11 2022 4 19Add new elements from setup.py0.2.14 2022 5 19Repair Bug0.3.19 2022 7 7Add the functions of creating templates and identifying templates(Command is not supported temporarily)0.4.19 2022 7 13Add The createmod command supports the functions of creating and identifying templates0.4.21 2022 7 13Repair Bug
Package: cplay-ng
Descriptioncplayis a minimalist music player with a textual user interface
written in Python. It aims to provide a power-user-friendly interface
with simple filelist and playlist control.Instead of building an elaborate database of your music library,cplayallows you to quickly browse the filesystem and enqueue
files, directories, and playlists.The original cplay was started by Ulf Betlehem in 1998 and is no longer
maintained.  This is a rewrite that aims to stay true to the original design
while evolving with a shifting environment.Requirementspython3mpvInstallation$ pip install cplay-ngUsage$ cplay-ngPresshto get a list of available keys.
Package: cpld-img-tools
cpld_img_toolsThis is a set of tools to convert.jedfuse files for Lattice CPLDs into binary files that theDMMC-STAMPcan use for in-application update of a CPLD.jed_convThis is a tool to convert a.jedfuse file into a binary format e.g. for embedding in the MMC firmware image as used in theDMMC-STAMP SDK.Usage$ jed_conv --help
usage: jed_conv [-h] [-o OUTFILE] [-b BLKSIZE] infile

.jed file parser / converter

positional arguments:
  infile                Source file for reading

optional arguments:
  -h, --help            show this help message and exit
  -o OUTFILE, --outfile OUTFILE
                        output file (derived from input file if not set)
  -b BLKSIZE, --blksize BLKSIZE
                        max. block size per packetcpld2hpmThis is a tool to convert a.jedfuse file into a HPM upgrade file that can be used to update a CPLD on the AMC payload, e.g. on theDAMC-FMC1Z7IO.Seebin2hpmfor HPM details.Usagecpld2hpm --help
usage: cpld2hpm [-h] [-o OUTFILE] [-v FILE_VERSION] [-c COMPONENT] [-m MANUFACTURER] [-p PRODUCT] infile

CPLD .jed to HPM converter

positional arguments:
  infile                Source file for reading

optional arguments:
  -h, --help            show this help message and exit
  -o OUTFILE, --outfile OUTFILE
                        output file (derived from input file if not set)
  -v FILE_VERSION, --file-version FILE_VERSION
                        file version information (format major.minor, e.g. 1.2)
  -c COMPONENT, --component COMPONENT
                        HPM component ID (default 2)
  -m MANUFACTURER, --manufacturer MANUFACTURER
                        IANA manufacturer ID (hex, 6 bytes max, default 53f)
  -p PRODUCT, --product PRODUCT
                        IANA product ID (hex, 4 bytes max)
Package: cplot
Plot complex-valued functions with style.cplot helps plotting complex-valued functions in a visually appealing manner.Install withpip install cplotand use asimportnumpyasnpimportcplotdeff(z):returnnp.sin(z**3)/zplt=cplot.plot(f,(-2.0,+2.0,400),(-2.0,+2.0,400),# abs_scaling=lambda x: x / (x + 1),  # how to scale the lightness in domain coloring# contours_abs=2.0,# contours_arg=(-np.pi / 2, 0, np.pi / 2, np.pi),# emphasize_abs_contour_1: bool = True,# add_colorbars: bool = True,# add_axes_labels: bool = True,# saturation_adjustment: float = 1.28,# min_contour_length = None,# linewidth = None,)plt.show()Historically, plotting of complex functions was in one of three waysOnly show the absolute value; sometimes as a 3D plotOnly show the phase/the argument in a color wheel (phase portrait)Show contour lines for both arg and absCombining all three of them gives you acplot:See alsoWikipedia: Domain coloring.Features of this software:cplot usesOKLAB, a perceptually
uniform color space for the argument colors.
This avoids streaks of colors occurring with other color spaces, e.g., HSL.The contourabs(z) == 1is emphasized, other abs contours are at 2, 4, 8, etc. and
1/2, 1/4, 1/8, etc., respectively. This makes it easy to tell the absolte value
precisely.Forarg(z) == 0, the color is green, forarg(z) == pi/2it's blue, forarg(z) = -pi / 2it's orange, and forarg(z) = piit's pink.Other useful functions:# There is a tripcolor function as well for triangulated 2D domainscplot.tripcolor(triang,z)# The function get_srgb1 returns the SRGB1 triple for every complex input value.# (Accepts arrays, too.)z=2+5jval=cplot.get_srgb1(z)Riemann spherecplot can also plot functions on theRiemann
sphere, a mapping of the complex
plane to the unit ball.importcplotimportnumpyasnpcplot.riemann_sphere(np.log)GalleryThis way to the gallery!TestingTo run the cplot unit tests, check out this repository and runtoxSimilar projects and further readingTristan Needham,Visual Complex
Analysis, 1997François Labelle,A Gallery of Complex
Functions, 2002Douglas Arnold and Jonathan Rogness,Möbius transformations
revealed, 2008Konstantin Poelke and Konrad Polthier,Lifted Domain Coloring,
2009Elias Wegert and Gunter Semmler,Phase Plots of Complex Functions:
a Journey in Illustration, 2011Elias Wegert,
CalendarsComplex Beauties, 2011-Elias Wegert,Visual Complex
Functions, 2012empet,Visualizing complex-valued functions with Matplotlib and Mayavi, Domain coloring method, 2014John D. Cook,Visualizing complex
functions, 2017endolith,complex-colormap, 2017Anthony Hernandez,dcolor, 2017Juan Carlos Ponce Campuzano,DC
gallery, 20183Blue1Brown,Winding numbers and domain coloring, 2018Ricky Reusser,Domain Coloring with Adaptive
Contouring, 2019Ricky Reusser,Locally Scaled Domain Coloring, Part 1: Contour
Plots, 2020David Lowry-Duda,Visualizing modular forms, 2020LicenseThis software is published under theGPL-3.0 license. In cases where the
constraints of the GPL prevent you from using this software, feel free contact the
author.
Package: cplusplus
what this isThis is a javascript package to turn python into c++importhow to import: import cpppackages requiredNonesample codeimportcppcpp.cout("cpp")cpp.cin("cpp: ")cpp.public.static.void.Main("setup.py")cpp.c_return(0)cpp.printf("hi")cpp.compiler.clang()cpp.using.namespace.std()#thats all for nowchange logadded cout and cinadded returnadded public static void mainadded using namespace stdadded compiler.clang()added printfadded returnc++ functionscout>>>"dawd">>>endl;cin>>>"dwad">>>endl;return0;usingnamespacestd;compiler(clang);publicstaticvoidMain(){}printf()
Package: cpm-aids
The Card Package ManagerWhat problem does this software solve?Gives a centralized tool to manage packages (file + image + metadata) and makes them easy to findRequirementsTo install all requirements, use the following snippet after installing python on your machine.pip install -r requirements.txtOr just:pip install cpmPortabilityDepending on what platform you are on, the executable is different.cpmIs intended for GNU/Linux distributionscpm.binShould work on Windows. But I don't have a Windows machine/VN to test the package, so expect trouble.Quick guidecpm -hShows the help
cpm searchLists the packages hosted on the remote repositorycpm info [name]Shows information about the package [name]cpm download [name]Downloads the package [name] and all its dependencies.cpm compile [name]Downloads the package [name], and all its dependencies; and compiles the files (.lorebook) into a single file that can be imported....Problems?Be sure you are using the correct executable for your OS.cpm.binFor WindowscpmFor GNU/Linux.LogsThere is a helpful commandcpm debugThat will print the logs on the terminal screen. Be sure to include either the output or the client.audit file with you when reporting a bug.Use quotes when using spaces on the terminalcpm info "Hakurei Reimu"

cpm download "Hakurei Reimu, Kirisame Marisa"Although using spaces or long names when naming packages is not recommended.Avoid commas in the package name and tagsSince blank characters are supported, multiple items need to be comma separated. So don't use them anywhere else. (especially on the name or the tags)Third-party filesUse the full URL for files, including the scheme "https". Also, make sure the URL doesn't point to an insecure website served with HTTPS.
Package: cpm-analytics
CPM AnalyticsADD EMOTICONScpm-analyticsgoal is to provide insights on major relationships in a tabular dataset. The package analyzes the data by computing the following scores: Correlation levels, Power Predictive Score (PPS) and Maximal Information Coefficient (MIC).
Next, for each variable's pair, it plots the scatterplot, boxplot or bar plot.
Finally, it shows a heatmap for each score and each variable pair.
That gives insights on how variables relate to each other, and is useful in the Exploratory Data Analysis workflow. From there on, you can decide to which additional data visualizations to look after,By the way, CPM is a short forCorrelation,PPS andMIC.The overall logic is
LogicIt calculates correlation (Spearman and Person) using with all columns pairs,
then filters correlation levels based on pre-defined threshold.
As a result, only relevant column pairs for Corrlaion remain.It calculates PPS using all columns pairs,
then filter PPS levels based on pre-defined threshold.
As a result, only relevant column pairs for PPS remain.The list of relevant pairs for both Correlation and PPS are merged, and used as
reference to compute MIC.
Computing MIC is expensive, and depending on your resources (time, processing etc),
it would worth to compute MIC only in the most promising columns pairs. However, the
most complete analysis is made considerin all possible columns pairs combinations,
although that is more expensiveThe outputsit reports the variables pairs with most interesting relationshipsas well as a scatter plot for each pairPlease visit the documentationExample usagefrom cpm_analytics import CorrPpsMicAnalytics
analytics = CorrPpsMicAnalytics() #corr_threshold=0.4, pps_threshold=0.2)
analytics.compute_score(df_raw)
analytics.summary_report()
analytics.plot_relationships()
analytics.plot_heatmaps(figsize=(20,5))
Package: cpm-cli
cpm: A modern project management tool for C/C++ projectsYou can find thedocumentationin thecpmbits website.Installationpip3 install cpm-cliCPM depends onCMakeandninjafor the build process.Getting startedcpm create DeathStartLaserBackend
cd DeathStartLaserBackend
cpm buildAfter creating the project, the binary will be available in the projectbuilddirectory../build/DeathStartLaserBackendManage dependenciesCPM manages your project dependencies through CPM-Hub. In order to install a bit, declare it in the project descriptor:build:bits:sqlite3:'3.32.3'test:bits:cest:'1.0'Then use the command line to install all dependencies.cpm installRun your testscpm testTest sources reside in thetestsdirectory.cpmwill consider as test suites any files that match the expressiontest_*.cpp.
Package: cpmel
CPMel一个现代的maya python库ta有以下设计目标相对较快地初始化速度易于与maya-api1、maya-api2交互易于扩展够用的性能目录快速开始安装测试使用教程命令调用获得选择列表创建关节创建UI与api交互获得节点的函数集对象获得属性的MPlug对象一些其他的常用的对象方法名称相关操作dag相关操作附加特性属性相关操作版权说明快速开始安装注意下方的python是你的Python, 正常情况下可以直接通过python调用, 而Maya的python一般是"C:\ProgramFiles\Autodesk\<Maya版本>\bin\mayapy.exe"python -m pip install cpmel在windows下maya的安装例子注意:请将Maya路径替换为自己的。请使用cmd"C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe" -m pip install cpmel测试执行以下程序应当可以获得选择列表，如果正确那么恭喜你安装完成！# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionimportcpmel.cmdsasccsel=cc.ls(sl=True)使用教程命令调用获得选择列表# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionimportcpmel.cmdsasccsel=cc.ls(sl=True)创建关节# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionimportcpmel.cmdsascccc.select(cl=True)jin=cc.joint()创建UI# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionimportcpmel.cmdsasccwindow_name='your_window_name'ifcc.window(window_name,ex=True):cc.deleteUI(window_name)cc.window(window_name)withcc.flowLayout():cc.button()cc.button()cc.button()cc.showWindow()与api交互获得节点的函数集对象# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionimportcpmel.cmdsasccnode=cc.createNode('transform')# api1版本的函数集对象node.api1_m_fn()# api2版本的函数集对象node.api2_m_fn()获得属性的MPlug对象# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionimportcpmel.cmdsasccnode=cc.createNode('transform')attr=node.tx# api1版本的attr.api1_m_plug()# api2版本的attr.api2_m_plug()一些其他的# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionimportcpmel.cmdsasccnode=cc.createNode('transform')# api1版本node.api1_m_fn_dependency_node()node.api1_node_object()node.api1_m_dag_path()# api2版本node.api2_m_fn_dependency_node()node.api2_node_object()node.api2_m_dag_path()常用的对象方法名称相关操作# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionimportcpmel.cmdsasccnode=cc.createNode('transform')# 获得最短名称node.name()# 仅获得节点名称node.node_name()# 获得完整路径node.full_path_name()dag相关操作# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionimportcpmel.cmdsasccnode_a=cc.createNode('transform')node_b=cc.createNode('transform')node_c=cc.createNode('transform')# 设置父对象node_a.parent=node_b# or node_a.set_parent(node_b)# 获得父对象print('获得父对象',node_a.parent)# or node_a.get_parent()# 添加子对象node_c.add_child(node_b)# 获得子对象print('获得子对象',node_c.childs)# or node_c.get_childs()附加特性属性相关操作# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionimportcpmel.cmdsasccnode=cc.createNode('transform')# 获得属性# 方法1tx_attr=node.tx# 方法2 ps: 在节点属性名称与对象属性冲突时可以使用这个tx_attr=node.attr('tx')# 读写属性# 方法1# 写node['tx']=1.0# 读tx_val=node['tx']# 方法2# 写node.tx.set_value(1.0)# 读tx_val=node.tx.get_value()# 连接属性# 方法1node.tx>>node.ty# 方法2node.tx.connect(node.ty)# 断开属性连接node.tx.disconnect(node.ty)版权说明该项目签署了Apache-2.0 授权许可，详情请参阅 LICENSE
Package: cpmerge
# Descriptioncpmerge is a simple clipboard manager to synchronize CLIPBOARD and PRIMARY.Linux has two types of clipboards:
- PRIMARY: Copy by selecting text, paste by middle mouse click
- CLIPBOARD: Copy by using the copy command (usually: CTRL+c), paste by using the paste command (usually: CTRL+v)cpmerge merges these two clipboards into one. Whenever you copy something into the CLIPBOARD it will automatically be copied into PRIMARY. However when you select something into PRIMARY it waits until you’ve moved the mouse a little bit before copying it into CLIPBOARD. The reason for this that a lot of people select some text and press CTRL+v to overwrite the selected text. If PRIMARY got copied into CLIPBOARD straight away this would just replace the selected text with itself.If run with GUI it also keeps track of the last 10 clipboard entries. A taskbar icon allows to copy those old values into the clipboard again.# InstallationPython 2.7 should already be installed on most systems.
wxPython and pip need to be installed as well. On my Ubuntu machine (with Universe activated) this can be done with:` sudoapt-getinstallpython-pip-ysudoapt-getinstallpython-wxgtk2.8-y`After those requirements are installed, just run:` sudo pip install cpmerge `cpmerge can be started by simply running:` cpmerge `# ConfigurationTo run it without tray icon and history:` cpmerge--nogui`Depending on your screen resolution (and how nervous your mouse hand is) you may need to tweak the distance the mouse needs to be moved before copying from PRIMARY to CLIPBOARD. You can do this with:` cpmerge--distance=20`For debugging information regarding the mouse distance, run:` cpmerge-vv`# Other stuffPy_mem.py tells me that cpmerge uses 35.8 MB of memory. While this is not a huge amount by todays standard I still consider it a lot for the simple task. If you know a tool with similar features which uses less resources, please let me know.Similar tools (none of them supports the mouse movement before PRIMARY -> CLIPBOARD as far as I’m aware) are listed on:https://wiki.archlinux.org/index.php/clipboardHomepage:http://jonaspfannschmidt.com/cpmergeCode:http://github.com/jonaspf/cpmergeIcon from:http://led24.de/iconset/
Package: cpm-live
🔥ChatLLM 基于知识库🔥Installpipinstall-UchatllmDocsUsagesfromchatllm.applicationsimportChatBaseqa=ChatBase()qa.load_llm(model_name_or_path="THUDM/chatglm-6b")foriinqa(query='周杰伦是谁',knowledge_base='周杰伦是傻子'):print(i,end='')# 根据已知信息无法回答该问题，因为周杰伦是中国内地流行歌手、演员、音乐制作人、导演，# 是具有一定的知名度和专业能力的人物，没有提供足够的信息无法判断他是傻子。OpenaiEcosystemClick to 无缝对接openai生态# 服务端pipinstall"chatllm[openai]"&&chatllm-runopenai<本地模型地址># 客户端importopenaiopenai.api_base='http://0.0.0.0:8000/v1'openai.api_key='chatllm'prompt="你好"completion=openai.Completion.create(prompt=prompt,stream=True,model="text-davinci-003")forcincompletion:print(c.choices[0].text,end='')# 你好👋!我是人工智能助手 ChatGLM-6B,很高兴见到你，欢迎问我任何问题。openai_keys:不定期更新免费keysChatPDFClick to ChatPDFpipinstall"chatllm[pdf]"&&chatllm-runwebui--namechatpdfpython交互fromchatllm.applications.chatpdfimportChatPDFqa=ChatPDF(encode_model='nghuyong/ernie-3.0-nano-zh')qa.load_llm(model_name_or_path="THUDM/chatglm-6b")qa.create_index('财报.pdf')# 构建知识库foriinqa(query='东北证券主营业务'):print(i,end='')# 根据已知信息，东北证券的主营业务为证券业务。公司作为证券公司，主要从事证券经纪、证券投资咨询、与证券交易、# 证券投资活动有关的财务顾问、证券承销与保荐、证券自营、融资融券、证券投资基金代销和代销金融产品待业务。支持召回结果查看DeployClick to DeployChatGLM-6B 模型硬件需求|量化等级|最低 GPU 显存（推理） |最低 GPU 显存（高效参数微调） |
| -------------- | ------------------------- | --------------------------------- |
| FP16（无量化） | 13 GB                     | 14 GB                             |
| INT8           | 8 GB                     | 9 GB                             |
| INT4           | 6 GB                      | 7 GB                              |从本地加载模型安装指南ChatGLM-6B Mac 本地部署实操记录THUDM/ChatGLM-6B#从本地加载模型TODOClick to TODOChatLLM 应用接入非结构化文档（已支持 md、pdf、docx、txt 文件格式）搜索引擎与本地网页接入结构化数据接入（如 csv、Excel、SQL 等）知识图谱/图数据库接入增加 ANN 后端，ES/RedisSearch【确保生产高可用】增加多级缓存缓存多路召回问标量匹配多种向量化，向量匹配增加相似问，换几个问法高置信度直接返回答案【匹配标准问】答高置信度篇章增加上下文信息增加夸篇章信息增加召回信息的相似信息提前生成标准问，匹配问拒绝推断增加更多 LLM 模型支持THUDM/chatglm-6bTHUDM/chatglm-6b-int8THUDM/chatglm-6b-int4THUDM/chatglm-6b-int4-qeClueAI/ChatYuan-large-v2增加更多 Embedding 模型支持nghuyong/ernie-3.0-nano-zhnghuyong/ernie-3.0-base-zhshibing624/text2vec-base-chineseGanymedeNil/text2vec-large-chinese增加一键启动 webui利用 streamlit 实现 ChatPDF，一键启动chatllm-run webui --name chatpdf利用 gradio 实现 Web UI DEMO添加输出内容及错误提示引用标注增加知识库管理选择知识库开始问答上传文件/文件夹至知识库删除知识库中文件增加 API 支持利用 Fastapi/Flask/Grpc
实现流式接口chatllm-run openai <本地模型地址> --host 127.0.0.1 --port 8000前后端分离，实现调用 API 的 Web UI Demo交流群若二维码失效加微信拉群 313303303