This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: Apache-2.0 | |
| # SPDX-FileCopyrightText: Copyright contributors to the vLLM project | |
| """ | |
| GLM-4.7 Tool Call Parser with true streaming support (v2). | |
| This is a fixed version of the parser from PR #32888 that addresses: | |
| - Bug 1: Missing partial token buffering | |
| - Bug 2: Incorrect key/value parsing order | |
| - Bug 3: Long value content not streamed incrementally (added in v2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: dev | |
| channels: | |
| - main | |
| dependencies: | |
| - python=3.11 | |
| - blas=*=openblas | |
| - ipython | |
| - numpy | |
| - openai | |
| - orjson |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: fenics18 | |
| channels: | |
| - conda-forge | |
| dependencies: | |
| - python=3.7 | |
| - ipython | |
| - fenics=2018 | |
| - mshr=2018 | |
| --- | |
| name: fenics19 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| P1. | |
| Let A is the former and B is the latter. | |
| (a) No. r1r1r1r1r2r1 is in B but not in A. | |
| (b) No. r1r2r2 is in A but not in B. | |
| (c) No. empty string is in B but not in A. | |
| (d) Yes. A is all strings that contains at least one r2 or one r1; B is the same. | |
| (e) Yes. Let's prove all strings s is in A. Consider the length of the string `s`: | |
| 0: s = empty. s is in r1*r2* obviously. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: coffee | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: coffee | |
| template: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # stolen from http://stackoverflow.com/questions/27590039/running-ansible-playbook-using-python-api | |
| import os | |
| import sys | |
| from collections import namedtuple | |
| from ansible.parsing.dataloader import DataLoader | |
| from ansible.vars import VariableManager | |
| from ansible.inventory import Inventory |