%global _empty_manifest_terminate_build 0 Name: python-Q-snippets-Qing25 Version: 0.0.8 Release: 1 Summary: My working code snippets License: MIT License URL: https://github.com/Qing25/Q-snippets Source0: https://mirrors.aliyun.com/pypi/web/packages/56/c3/7a89865fe630dc72bc277503e12df607c4cb3d14f313ea63cc81014329bd/Q-snippets-Qing25-0.0.8.tar.gz BuildArch: noarch %description # Q-snippets https://pypi.org/project/Q-snippets-Qing25/0.0.7/ My working code snippets ```python . ├── q_snippets │ ├── adversarial.py │ ├── data.py │ ├── __init__.py │ ├── metrics.py │ ├── object.py │ ├── optim.py │ ├── pretrains.py │ └── tensor_ops.py ``` ### adversarial - FGM - PGD ### objects - RoPE - CircleLoss - FocalLoss - TrainerProcess - Config - RNNWrapper - MultiHeadAttnWrapper ### data - timeit - save_json - load_json - load_yaml - BaseData - MRCSample - MRCBatch - load_data - MRCDataset - span_decode - DataProcessor - gen_uid - `sequence_padding` - `dict2list` - `SegmentUtility` - `prepare_inputs` - `prepare_batch_inputs` ### optim pass ### metrics pass ### tensor_ops - safesoftmax - feature_transform - select_span_rep - select_func - get_max_startend - label_smoothing - mean_pooling( seq_vecs, attention_mask) ### Pretrains - get_model_url 获得本地路径,本地没有则保存到本地后返回 - save_pretrains 查看模型列表中保存到本地的情况 %package -n python3-Q-snippets-Qing25 Summary: My working code snippets Provides: python-Q-snippets-Qing25 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-Q-snippets-Qing25 # Q-snippets https://pypi.org/project/Q-snippets-Qing25/0.0.7/ My working code snippets ```python . ├── q_snippets │ ├── adversarial.py │ ├── data.py │ ├── __init__.py │ ├── metrics.py │ ├── object.py │ ├── optim.py │ ├── pretrains.py │ └── tensor_ops.py ``` ### adversarial - FGM - PGD ### objects - RoPE - CircleLoss - FocalLoss - TrainerProcess - Config - RNNWrapper - MultiHeadAttnWrapper ### data - timeit - save_json - load_json - load_yaml - BaseData - MRCSample - MRCBatch - load_data - MRCDataset - span_decode - DataProcessor - gen_uid - `sequence_padding` - `dict2list` - `SegmentUtility` - `prepare_inputs` - `prepare_batch_inputs` ### optim pass ### metrics pass ### tensor_ops - safesoftmax - feature_transform - select_span_rep - select_func - get_max_startend - label_smoothing - mean_pooling( seq_vecs, attention_mask) ### Pretrains - get_model_url 获得本地路径,本地没有则保存到本地后返回 - save_pretrains 查看模型列表中保存到本地的情况 %package help Summary: Development documents and examples for Q-snippets-Qing25 Provides: python3-Q-snippets-Qing25-doc %description help # Q-snippets https://pypi.org/project/Q-snippets-Qing25/0.0.7/ My working code snippets ```python . ├── q_snippets │ ├── adversarial.py │ ├── data.py │ ├── __init__.py │ ├── metrics.py │ ├── object.py │ ├── optim.py │ ├── pretrains.py │ └── tensor_ops.py ``` ### adversarial - FGM - PGD ### objects - RoPE - CircleLoss - FocalLoss - TrainerProcess - Config - RNNWrapper - MultiHeadAttnWrapper ### data - timeit - save_json - load_json - load_yaml - BaseData - MRCSample - MRCBatch - load_data - MRCDataset - span_decode - DataProcessor - gen_uid - `sequence_padding` - `dict2list` - `SegmentUtility` - `prepare_inputs` - `prepare_batch_inputs` ### optim pass ### metrics pass ### tensor_ops - safesoftmax - feature_transform - select_span_rep - select_func - get_max_startend - label_smoothing - mean_pooling( seq_vecs, attention_mask) ### Pretrains - get_model_url 获得本地路径,本地没有则保存到本地后返回 - save_pretrains 查看模型列表中保存到本地的情况 %prep %autosetup -n Q-snippets-Qing25-0.0.8 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-Q-snippets-Qing25 -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 0.0.8-1 - Package Spec generated