Apache Karaf 3.0.5 Guides
interactive mode. You will have to answer to some questions used to generate the project with the pom.xml: mvn archetype:generate Choose a number: (1/2/3/4/5/6/7/.../32/33/34/35/36) 15: : 15 Define Loading the project in your IDE We can use Maven to generate the needed files for your IDE: Inside the project, run the following command mvn eclipse:eclipse don't have the src/main/resources directory yet, create it. mkdir src/main/resources Then, re-generate the IDE project files and reload it so that this folder is now recognized as a source folder. Inside0 码力 | 203 页 | 534.36 KB | 1 年前3Apache Karaf Container 4.x - Documentation
Contributions 5.36.1. Introduction 5.36.2. Suggested Workflow 5.36.3. License Reminder 5.36.4. How to Generate a One-File-Patch Via Throw-Away Branch 1. Overview Apache Karaf is a modern polymorphic application extract the metadata from a features XML • karaf:features-generate-descriptor to generate a features XML • karaf:commands-generate-help to generate help/documentation on the commands • karaf:run to run these templates under the bin/contrib directory. Unix The karaf-service.sh utility helps you to generate ready to use scripts by automatically identifying the operating system, the default init system0 码力 | 370 页 | 1.03 MB | 1 年前3AI大模型千问 qwen 中文文档
from_pretrained("Qwen/Qwen1.5-7B-Chat") # Instead of using model.chat(), we directly use model.generate() # But you need to use tokenizer.apply_chat_template() to format your inputs as shown␣ �→below .to(device) # Directly use generate() and tokenizer.decode() to get the output. # Use `max_new_tokens` to control the maximum output length. generated_ids = model.generate( model_inputs.input_ids, max_new_tokens=512 以前,我们使用 model.chat() (有关更多详细信息,请参阅先前 Qwen 模型中的 modeling_qwen. py )。现在,我们遵循 transformers 的实践,直接使用 model.generate() 配合 tokenizer 中的 apply_chat_template() 方法。 如果你想使用 Flash Attention 2,你可以用下面这种方式读取模型: 4 Chapter0 码力 | 56 页 | 835.78 KB | 1 年前3《Efficient Deep Learning Book》[EDL] Chapter 3 - Learning Techniques
examples. Data Augmentation is a set of techniques which leverage the original training data to generate more training examples without having to label them. We’ll familiarize ourselves with these techniques identical to the original sample. A slightly tilted cat is still a cat! The label mixing transformations generate samples based on differently labeled inputs. The target label is a composite of the inputs that 30% and a ‘hamster’ with a probability of 70%. The sample generation techniques use models to generate samples for labels. Consider a training sample for English to Spanish translation: [English: “I0 码力 | 56 页 | 18.93 MB | 1 年前3AWS LAMBDA Tutorial
[--page-size] [--generate-cli-skeleton ] get-function get-function --function-name [-- qualifier ] [--cli-input-json ] [--generate-cli-skeleton ] g ] [--cli-input- json ] [--generate-cli-skeleton ] get-account-settings get-account-settings [--cli-input-json ] [--generate-cli-skeleton ] update-function-configuration ] [--tracing-config ] [--revision-id ] [--cli-input-json ] [--generate-cli-skeleton ] update-function-code update-function-code --function-name 0 码力 | 393 页 | 13.45 MB | 1 年前3OpenShift Container Platform 4.13 CLI 工具
Container Platform 中已弃用或删除的主要功能的最新列表,请参阅 OpenShift Container Platform 发行注记中已弃用和删除的功能部分。 6.2.1. generate 为声明性配置索引生成各种工件。 $ sudo mv ./opm /usr/local/bin/ C:\> path C:\> move opm.exe$ opm Container Platform 4.13 CLI 工具 工具 108 命令 命令语 语法 法 表 表 6.2. generate 子命令 子命令 子命令 子命令 描述 描述 dockerfile 为声明性配置索引生成 Dockerfile。 表 表 6.3. generate 标记 标记 标记 标记 描述 描述 -h,--help 生成帮助信息。 6.2.1.1. dockerfile Dockerfile,这个命令会失败。 当指定额外标签时,如果存在重复的键,则只有每个重复键的最后值都会添加到生成的 Dockerfile 中。 命令 命令语 语法 法 表 表 6.4. generate dockerfile 标记 标记 标记 标记 描述 描述 -i, --binary-image (字符串) 要构建目录的镜像。默认值为 quay.io/operator-framework/opm:latest。 0 码力 | 128 页 | 1.11 MB | 1 年前3OpenShift Container Platform 4.10 CLI 工具
'default' oc serviceaccounts get-token 'default' # Generate a new token for service account 'default' oc serviceaccounts new-token 'default' # Generate a new token for service account 'default' and apply --container-tool (字 符串) 与容器镜像交互的工具,如保存和构建:docker 或 podman。 -f,--from-index (字符 串) 要添加到的上一个索引。 --generate 如果启用,则仅创建 Dockerfile 并将其保存到本地磁盘。 --mode (字符串) 图形更新模式,用来定义通频道图形如何被更新: replaces(默认 值)、semver 或 semver-skippatch --container-tool (字 符串) 与容器镜像交互的工具,如保存和构建:docker 或 podman。 -f,--from-index (字符 串) 到修剪的索引。 --generate 如果启用,则仅创建 Dockerfile 并将其保存到本地磁盘。 -d,--out-dockerfile (字 符串) 可选:如果生成 Dockerfile,请指定一个文件名。 -p、--packages0 码力 | 120 页 | 1.04 MB | 1 年前3OpenShift Container Platform 4.14 Operator
检查是否有更新的捆绑包或目录镜像引用,目录镜像在集群中成功运行,来自该软件包的 Operator 可以成功安装。 自动合并通过之前检查的 PR。 自动重新构建和重新发布目录镜像。 opm alpha generate dockerfile "$name" indexImage=$(yq eval '.repo + ":" + .tag' catalog.yaml) docker build -t "$indexImage" 6 b. 运行 opm generate dockerfile 命令生成可构建目录镜像的 Dockerfile: 使用 -i 标志指定官方红帽基础镜像,否则 Dockerfile 使用默认的上游镜像。 Dockerfile 必须与您在上一步中创建的目录目录位于相同的父目录中: 目 目录结构示例 示例 父目录 Catalog 目录 opm generate dockerfile 命令生成的 YAML 创建目录配置文件的路径 此命令在指定的目录配置文件中生成 olm.package 声明性配置 blob。 2. 运行 opm render 命令向目录添加捆绑包: $ opm generate dockerfile\ -i registry.redhat.io/openshift4/ose-operator-registry:v4.14 1 0 码力 | 423 页 | 4.26 MB | 1 年前3OpenShift Container Platform 4.10 可伸缩性和性能
3.0 required: false - name: ENV_VALUE description: Value to use for environment variables generate: expression from: "[A-Za-z0-9]{255}" required: false labels: template: deployment-config-template 点和标准集群安装的特定方面。集群组也可以遵循区域、硬件变体等。 Sites 站点类别中存在的策略应用到特定的集群站点。任何集群都可以维护自己的特定策略。 其他 其他资 资源 源 有关从 ztp-site-generate 容器镜像中提取参考 SiteConfig 和 PolicyGenTemplate CR 的更多信 息,请参阅准备 ZTP Git 存储库。 19.2. 为 ZTP 准备 HUB 集群 要在断开连接的环境中使用 ZTP 部署受管集群。 流程 流程 1. 使用 SiteConfig 和 PolicyGenTemplate CR 的单独路径创建一个目录结构。 2. 使用以下命令,从 ztp-site-generate 容器镜像导出 argocd 目录: 3. 检查 out 目录是否包含以下子目录: out/extra-manifest 包含 SiteConfig 用来生成额外清单 configMap 的源0 码力 | 315 页 | 3.19 MB | 1 年前3OpenShift Container Platform 4.8 CLI 工具
'default' oc serviceaccounts get-token 'default' # Generate a new token for service account 'default' oc serviceaccounts new-token 'default' # Generate a new token for service account 'default' and apply 子命令的帮助输出。 7.2.5. generate operator-sdk generate 命令调用特定的生成器来生成代码或清单。 7.2.5.1. bundle generate bundle 子命令为您的 Operator 项目生成一组捆绑包清单、元数据和 bundle.Dockerfile 文 件。 注意 注意 通常,您首先运行 generate kustomize manifests manifests 子命令来生成由 generate bundle 子 命令使用的输入 Kustomize 基础。但是,您可以使用初始项目中的 make bundle 命令按 顺序自动运行这些命令。 表 表 7.6. generate bundle 标记 标记 标记 标记 描述 描述 --channels(字符串) 捆绑包所属频道的以逗号分隔的列表。默认值为 alpha。 --crds-dir(字符串)0 码力 | 152 页 | 1.24 MB | 1 年前3
共 257 条
- 1
- 2
- 3
- 4
- 5
- 6
- 26