repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/live_test/clean.py | null | null | null | null | null | null | Python | 2026-05-04T01:58:59.457177 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/live_test/clean_policy.py | null | null | null | null | null | null | Python | 2026-05-04T01:58:59.486005 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/dump_help.py | null | null | null | null | null | null | Python | 2026-05-04T01:58:59.496840 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/live_test/gen.py | null | null | null | null | null | null | Python | 2026-05-04T01:58:59.522767 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/live_test/generate_index.py | null | null | null | null | null | null | Python | 2026-05-04T01:58:59.590224 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/live_test/monitor.py | null | null | null | null | null | null | Python | 2026-05-04T01:58:59.975197 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/live_test/upload.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.041044 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/performance/measure.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.046676 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/live_test/sendemail.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.048716 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/release/homebrew/docker/formula_generate.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.101208 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/release/debian/test_deb_package.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.104774 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/live_test/test_data.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.153955 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/regression_test/update_api_profile.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.159364 | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/release/generate_history_notes.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.205277 | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/release/homebrew/test_homebrew_package.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.266476 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/release/macos/build_binary_tar_gz.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.669318 | #!/usr/bin/env python3
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/release/macos/cask_generate.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.704708 | #!/usr/bin/env python3
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/sdk_process/patch_models.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.763940 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/temp_help/convert_all.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.801377 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/temp_help/help_convert.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.817441 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/release/rpm/test_rpm_package.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.834567 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | scripts/trim_sdk.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.855290 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | src/azure-cli-core/azure/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:00.857271 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | src/azure-cli-core/azure/cli/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:01.008941 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
Azure/azure-cli | https://github.com/Azure/azure-cli | null | null | null | null | 4,521 | null | null | mit | null | null | null | null | null | null | null | src/azure-cli-core/azure/cli/core/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:01.024114 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | eval/humaneval.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:08.661063 | from __future__ import annotations
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from human_eval.data import write_jsonl, read_problems
from exllamav2 import model_init
from exllamav2 import ExLlamaV2Cache, ExLlamaV2Cache_Q4, ExLlamaV2Cache_Q6, ExLlamaV2Cache_Q8
from exlla... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/chat_formatting.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:08.662917 |
import re, regex
from io import StringIO
from pygments import highlight
from pygments.formatter import Formatter
from pygments.formatters.terminal import TerminalFormatter
from pygments.lexers import get_lexer_by_name, guess_lexer
from pygments.style import Style
# from pygments.styles.default import DefaultStyle
fro... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | eval/util.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:08.664943 | from datasets import load_dataset
from rich.progress import Progress, BarColumn, TextColumn, TimeRemainingColumn
import os, json
# Rich progress bar format
def get_progress():
return Progress(
TextColumn("[bold blue]{task.fields[name]}", justify = "left"),
BarColumn(bar_width = None),
"[p... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | eval/mmlu.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:08.666108 | from __future__ import annotations
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import model_init
from exllamav2 import ExLlamaV2Cache, ExLlamaV2Cache_Q4, ExLlamaV2Cache_Q6, ExLlamaV2Cache_Q8
from exllamav2.generator import ExLlamaV2DynamicGenerator, ExLlama... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/chat.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:08.667169 |
import sys, os, time, math
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import(
ExLlamaV2,
ExLlamaV2Config,
ExLlamaV2Cache,
ExLlamaV2Cache_8bit,
ExLlamaV2Cache_Q4,
ExLlamaV2Cache_Q6,
ExLlamaV2Cache_Q8,
ExLlamaV2Cache_TP,
ExLlamaV2Token... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/deprecated/banned_strings.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:08.673537 | import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer
from exllamav2.generator import ExLlamaV2Streamin... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/deprecated/batched_inference.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:08.702218 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from exllamav2 import(
ExLlamaV2,
ExLlamaV2Config,
ExLlamaV2Cache,
ExLlamaV2Tokenizer,
)
from exllamav2.generator i... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/bulk_inference.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:08.703148 | from __future__ import annotations
import sys, os, json, time
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from util import get_dataset, format_prompt, get_stop_conditions
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer
from exllamav2.generator import... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/chat_prompts.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:08.778324 |
class PromptFormat:
botname = "Chatbort"
username = "User"
def __init__(self):
pass
#
def default_system_prompt(self):
raise NotImplementedError
def first_prompt(self, sysprompt: bool):
raise NotImplementedError
def subs_prompt(self):
raise NotImplement... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/deprecated/minimal_chat.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:09.570350 | from exllamav2 import *
from exllamav2.generator import *
import sys, torch
print("Loading model...")
config = ExLlamaV2Config("/mnt/str/models/mixtral-8x7b-instruct-exl2/3.0bpw/")
model = ExLlamaV2(config)
cache = ExLlamaV2Cache(model, lazy = True)
model.load_autosplit(cache)
tokenizer = ExLlamaV2Tokenizer(config)
... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/deprecated/cfg.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:09.571343 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from exllamav2 import *
from exllamav2.generator import *
# Initialize model and cache
model_directory = "/mnt/str/models/llama2-7... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/deprecated/lora.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:09.572574 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from exllamav2 import (
ExLlamaV2,
ExLlamaV2Config,
ExLlamaV2Cache,
ExLlamaV2Tokenizer,
ExLlamaV2Lora,
)
from e... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/deprecated/lm_format_enforcer.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:09.600665 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from pydantic import BaseModel, conlist
from typing import Literal
from lmformatenforcer.integrations.exllamav2 import ExLlamaV2Toke... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/deprecated/streaming.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:09.657955 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from exllamav2 import (
ExLlamaV2,
ExLlamaV2Config,
ExLlamaV2Cache,
ExLlamaV2Tokenizer,
)
from exllamav2.generator ... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/deprecated/inference.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:09.659342 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from exllamav2 import(
ExLlamaV2,
ExLlamaV2Config,
ExLlamaV2Cache,
ExLlamaV2Tokenizer,
)
from exllamav2.generator i... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_async.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:10.107183 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer
from exllamav2.generator import ExLlamaV2DynamicGeneratorAsync, ExLlamaV2DynamicJobAsync
import asyncio
async def main():
model_dir = "/... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.248138 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer, Timer
from exllamav2.generator import ExLlamaV2DynamicGenerator
model_dir = "/mnt/str/models/mistral-7b-exl2/4.0bpw"
config = ExLlamaV2Conf... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_banned_strings.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.269543 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer
from exllamav2.generator import ExLlamaV2DynamicGenerator, ExLlamaV2DynamicJob
from util import format_prompt, get_stop_conditions
import ppr... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_formatron.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.270469 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer
from exllamav2.generator import ExLlamaV2DynamicGenerator
from formatron.schemas.pydantic import ClassSchema
from formatron.integrations.exll... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/deprecated/speculative.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.298672 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from exllamav2 import (
ExLlamaV2,
ExLlamaV2Config,
ExLlamaV2Cache,
ExLlamaV2Tokenizer,
)
from exllamav2.generator ... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/dynamic_gen.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.320752 | import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer
from exllamav2.generator import ExLlamaV2DynamicGenerator, ExLlamaV2DynamicJob, ExLlamaV2Sampler
from blessed import Terminal
from util import... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_lora.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.378884 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer, ExLlamaV2Lora
from exllamav2.generator import ExLlamaV2Sampler, ExLlamaV2DynamicGenerator
model_dir = "/mnt/str/models/llama2-7b-exl2/5.0bp... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_speculative.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.860675 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer, Timer
from exllamav2.generator import ExLlamaV2DynamicGenerator, ExLlamaV2Sampler
from util import format_prompt, get_stop_conditions
# Loa... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_stream.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.887627 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer
from exllamav2.generator import ExLlamaV2DynamicGenerator, ExLlamaV2DynamicJob
import pprint
model_dir = "/mnt/str/models/mistral-7b-exl2/4.... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/minimal_chat.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.888907 | from exllamav2 import *
from exllamav2.generator import *
import sys, torch
print("Loading model...")
config = ExLlamaV2Config("/mnt/str/models/mixtral-8x7b-instruct-exl2/3.0bpw/")
model = ExLlamaV2(config)
cache = ExLlamaV2Cache(model, lazy = True)
model.load_autosplit(cache)
tokenizer = ExLlamaV2Tokenizer(config)
... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_tp.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.925298 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache_TP, ExLlamaV2Tokenizer, Timer
from exllamav2.generator import ExLlamaV2DynamicGenerator, ExLlamaV2Sampler
model_dir = "/mnt/str/models/llama3.1-70b-instruct-exl... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/multimodal.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:11.933579 | import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import (
ExLlamaV2,
ExLlamaV2Config,
ExLlamaV2Cache,
ExLlamaV2Tokenizer,
ExLlamaV2VisionTower,
)
from exllamav2.generator import (
ExLlamaV2DynamicGenerator,
ExLlamaV2DynamicJob,
... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/multimodal_grounding_qwen.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:12.019169 | import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import sys
from PyQt5.QtWidgets import (
QApplication,
QMainWindow,
QVBoxLayout,
QHBoxLayout,
QLabel,
QPushButton,
QTextEdit,
QFileDialog,
QWidget,
QMessageBox,
)
from PyQt5.QtGui import ... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/util.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:12.485156 | import os, json
from datasets import load_dataset
def format_prompt(prompt_format, sp, p):
if prompt_format == "llama":
return f"<s>[INST] <<SYS>>\n{sp}\n<</SYS>>\n\n{p} [/INST]"
elif prompt_format == "llama3":
return (
f"<|begin_of_text|>"
f"<|start_header_id|>system<|e... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/multimodal_video.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:12.513671 | import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import (
ExLlamaV2,
ExLlamaV2Config,
ExLlamaV2Cache,
ExLlamaV2Tokenizer,
ExLlamaV2VisionTower,
)
from exllamav2.generator import (
ExLlamaV2DynamicGenerator,
ExLlamaV2DynamicJob,
... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:12.514236 | from exllamav2.version import __version__
from exllamav2.model import ExLlamaV2
from exllamav2.cache import ExLlamaV2CacheBase
from exllamav2.cache import ExLlamaV2Cache
from exllamav2.cache import ExLlamaV2Cache_Q4
from exllamav2.cache import ExLlamaV2Cache_Q6
from exllamav2.cache import ExLlamaV2Cache_Q8
from exllam... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/ws_server.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:12.516024 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2Cache, model_init
from exllamav2.server import ExLlamaV2WebSocketServer
import argparse
# Configure and init model
parser = argparse.ArgumentParser(description = "WebSocket server example")
pa... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/architecture.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:12.645737 | from dataclasses import dataclass, field
from enum import IntEnum
# Common keys
layer_keys_llama_norms = [["input_layernorm"],
["post_attention_layernorm"]]
layer_keys_cohere_norms = [["input_layernorm"]]
layer_keys_gpt2_norms = [["ln_1"],
["ln_2"]]
layer_keys_yi_nor... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/attn.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:13.125672 | from __future__ import annotations
import torch
from torch import nn
from exllamav2.module import ExLlamaV2Module
from exllamav2.rmsnorm import ExLlamaV2RMSNorm
from exllamav2.layernorm import ExLlamaV2LayerNorm
from exllamav2.headnorm import ExLlamaV2HeadNorm
from exllamav2.linear import ExLlamaV2Linear
from exllamav... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/compat.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:13.365049 | from __future__ import annotations
import torch
import itertools
from exllamav2.device import get_device_stream
# Emulate pairwise on Python <3.10
try:
pairwise = itertools.pairwise
except AttributeError:
def pairwise(iterable):
a, b = itertools.tee(iterable)
next(b, None)
return zip(a... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/cache.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:13.368731 | from __future__ import annotations
import torch
from exllamav2.ext import exllamav2_ext as ext_c, none_tensor
from exllamav2.tensor_p import BROADCAST_KV
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from exllamav2.model import ExLlamaV2
from exllamav2 import ExLlamaV2Tokenizer
class ExLlamaV2CacheBase:... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/config.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:13.391126 | from __future__ import annotations
import torch
import math
from exllamav2.stloader import STFile, cleanup_stfiles
from exllamav2.architecture import ExLlamaV2ArchParams, no_default
import os, glob, json
from typing import Any, Dict, List, TypeVar, Union, cast
T = TypeVar('T')
def read(
input_dict: dict[str, Any... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/attn_params.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:13.497994 | from __future__ import annotations
import torch
from exllamav2.compat import safe_move_tensor
from exllamav2.tensor_p import BROADCAST_KV
class Params:
batch_size: int
seq_len: int
past_len: int | None
past_len_tp: list[torch.Tensor | None] | None
past_lens: list[int] | None
input_mask: torch.T... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/conv.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:13.499401 | from __future__ import annotations
import torch
import torch.nn.functional as F
from torch import nn
from exllamav2 import ext
from exllamav2.ext import exllamav2_ext as ext_c, none_tensor
from exllamav2.module import ExLlamaV2Module
from exllamav2.compat import safe_move_tensor
from exllamav2.tensor_p import BROADCAST... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/conversion/adaptivegptq.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:14.010251 | from __future__ import annotations
import gc
import torch
from torch import nn
import torch.nn.functional as F
import math
from exllamav2.ext import exllamav2_ext as ext_c, none_tensor
from exllamav2.util import list_live_tensors
import sys
class AdaptiveQuantizer:
norm: float = 3.5
max_p: float = 1.2
mi... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/conversion/convert_exl2.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:14.374224 | from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Tokenizer
from exllamav2.architecture import RopeStyle
import argparse, os, shutil
import sys
import json
from exllamav2.conversion.tokenize import tokenize
from exllamav2.conversion.measure import embeddings, measure_quant
from exllamav2.conversion.quantize im... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/conversion/bot_status.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:14.995316 |
import json
def print_stage(
job: dict,
stage: str,
progress: int,
max_progress: int,
):
if not job["status_output"]: return
status = {
"stage": stage,
"completion": round(progress / max_progress, 4)
}
print("[STATUS]" + json.dumps(status) + "[/STATUS]")
|
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_cfg.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:15.126946 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer, Timer
from exllamav2.generator import ExLlamaV2DynamicGenerator, ExLlamaV2Sampler
from util import format_prompt, get_stop_conditions
model... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/conversion/compile.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:15.137561 | from exllamav2.model import \
(
ExLlamaV2Embedding,
ExLlamaV2PosEmbedding,
ExLlamaV2Attention,
ExLlamaV2MLP,
ExLlamaV2MoEMLP,
ExLlamaV2ParallelDecoder,
ExLlamaV2Linear,
ExLlamaV2RMSNorm,
ExLlamaV2LayerNorm
)
from exllamav2.version import __version__
import torch
import os, glob, sh... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_lmfe.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:15.239068 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer
from exllamav2.generator import ExLlamaV2DynamicGenerator
from exllamav2.generator.filters import ExLlamaV2PrefixFilter
from inference_lmfe_w... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_lmfe_wrapper.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:15.239699 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Tokenizer
from exllamav2.generator.filters import ExLlamaV2Filter
from functools import lru_cache
from lmformatenforcer.integrations.exllamav2 import build_token_enforcer_tokenizer_dat... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | examples/inference_dedup.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:15.330484 |
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from exllamav2 import ExLlamaV2, ExLlamaV2Config, ExLlamaV2Cache, ExLlamaV2Tokenizer, Timer
from exllamav2.generator import ExLlamaV2DynamicGenerator, ExLlamaV2Sampler
from util import format_prompt, get_stop_conditions
model... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/conversion/optimize.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:19.309022 | from exllamav2.conversion.qparams import QParams
from exllamav2.ext import exllamav2_ext as ext_c, none_tensor
import math
import itertools
import time
from exllamav2.conversion.bot_status import print_stage
def optimize(job, save_fn, model):
cfg = model.config
km = cfg.arch.lm.keys
has_gate = cfg.arch.l... |
turboderp-org/exllamav2 | https://github.com/turboderp-org/exllamav2 | null | null | null | null | 4,512 | null | null | mit | null | null | null | null | null | null | null | exllamav2/conversion/measure.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:19.310011 | from exllamav2.model import \
(
ExLlamaV2Embedding,
ExLlamaV2PosEmbedding,
ExLlamaV2Attention,
ExLlamaV2MLP,
ExLlamaV2MoEMLP,
ExLlamaV2Linear,
ExLlamaV2RMSNorm,
ExLlamaV2LayerNorm,
ExLlamaV2ParallelDecoder
)
from safetensors import safe_open
from safetensors.torch import save_file
f... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/copy_memory/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:21.678284 | import numpy as np
import torch
from torch.autograd import Variable
def data_generator(T, mem_length, b_size):
"""
Generate data for the copying memory task
:param T: The total blank time length
:param mem_length: The length of the memory to be recalled
:param b_size: The batch size
:return: ... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/char_cnn/model.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:21.679429 | from torch import nn
import sys
sys.path.append("../../")
from TCN.tcn import TemporalConvNet
class TCN(nn.Module):
def __init__(self, input_size, output_size, num_channels, kernel_size=2, dropout=0.2, emb_dropout=0.2):
super(TCN, self).__init__()
self.encoder = nn.Embedding(output_size, input_siz... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/copy_memory/model.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:21.696891 | from torch import nn
from TCN.tcn import TemporalConvNet
class TCN(nn.Module):
def __init__(self, input_size, output_size, num_channels, kernel_size, dropout):
super(TCN, self).__init__()
self.tcn = TemporalConvNet(input_size, num_channels, kernel_size=kernel_size, dropout=dropout)
self.li... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/char_cnn/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:21.699657 | import unidecode
import torch
from torch.autograd import Variable
from collections import Counter
import observations
import os
import pickle
cuda = torch.cuda.is_available()
def data_generator(args):
file, testfile, valfile = getattr(observations, args.dataset)('data/')
file_len = len(file)
valfile_len... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/copy_memory/copymem_test.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:21.700877 | import argparse
import torch
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
import numpy as np
import sys
sys.path.append("../../")
from TCN.copy_memory.utils import data_generator
from TCN.copy_memory.model import TCN
import time
parser = argparse.ArgumentParser(description='Se... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/adding_problem/add_test.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:21.729358 | import torch
import argparse
import torch.optim as optim
import torch.nn.functional as F
import sys
sys.path.append("../../")
from TCN.adding_problem.model import TCN
from TCN.adding_problem.utils import data_generator
parser = argparse.ArgumentParser(description='Sequence Modeling - The Adding Problem')
parser.add_ar... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/adding_problem/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:21.730411 | import torch
import numpy as np
from torch.autograd import Variable
def data_generator(N, seq_length):
"""
Args:
seq_length: Length of the adding problem data
N: # of data in the set
"""
X_num = torch.rand([N, 1, seq_length])
X_mask = torch.zeros([N, 1, seq_length])
Y = torch.z... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/char_cnn/char_cnn_test.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:21.773575 | import argparse
import torch.nn as nn
import torch.optim as optim
import sys
sys.path.append("../../")
from TCN.char_cnn.utils import *
from TCN.char_cnn.model import TCN
import time
import math
import warnings
warnings.filterwarnings("ignore") # Suppress the RunTimeWarning on unicode
parser = argparse.ArgumentPa... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/adding_problem/model.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:21.774702 | from torch import nn
from TCN.tcn import TemporalConvNet
class TCN(nn.Module):
def __init__(self, input_size, output_size, num_channels, kernel_size, dropout):
super(TCN, self).__init__()
self.tcn = TemporalConvNet(input_size, num_channels, kernel_size=kernel_size, dropout=dropout)
self.li... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/lambada_language/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.320667 | import os
import torch
from torch.autograd import Variable
import re
from collections import Counter
import pickle
"""
Note: The meaning of batch_size in PTB is different from that in MNIST example. In MNIST,
batch_size is the # of sample data that is considered in each iteration; in PTB, however,
it is the number of... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/lambada_language/model.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.321874 | import torch
from torch import nn
import sys
sys.path.append("../../")
from TCN.tcn import TemporalConvNet
class TCN(nn.Module):
def __init__(self, input_size, output_size, num_channels,
kernel_size=2, dropout=0.3, emb_dropout=0.1, tied_weights=False):
super(TCN, self).__init__()
... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/mnist_pixel/pmnist_test.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.327446 | import torch
from torch.autograd import Variable
import torch.optim as optim
import torch.nn.functional as F
import sys
sys.path.append("../../")
from TCN.mnist_pixel.utils import data_generator
from TCN.mnist_pixel.model import TCN
import numpy as np
import argparse
parser = argparse.ArgumentParser(description='Seque... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/poly_music/model.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.357345 | from torch import nn
from TCN.tcn import TemporalConvNet
import torch.nn.functional as F
class TCN(nn.Module):
def __init__(self, input_size, output_size, num_channels, kernel_size, dropout):
super(TCN, self).__init__()
self.tcn = TemporalConvNet(input_size, num_channels, kernel_size, dropout=drop... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/lambada_language/lambada_test.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.357833 | import argparse
import time
import math
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.optim as optim
import sys
sys.path.append("../../")
from TCN.lambada_language.utils import *
from TCN.lambada_language.model import TCN
import pickle
parser = argparse.ArgumentParser(description... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/poly_music/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.395099 | from scipy.io import loadmat
import torch
import numpy as np
def data_generator(dataset):
if dataset == "JSB":
print('loading JSB data...')
data = loadmat('./mdata/JSB_Chorales.mat')
elif dataset == "Muse":
print('loading Muse data...')
data = loadmat('./mdata/MuseData.mat')
... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/tcn.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.395798 | import torch
import torch.nn as nn
from torch.nn.utils import weight_norm
class Chomp1d(nn.Module):
def __init__(self, chomp_size):
super(Chomp1d, self).__init__()
self.chomp_size = chomp_size
def forward(self, x):
return x[:, :, :-self.chomp_size].contiguous()
class TemporalBlock(n... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/poly_music/music_test.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.433243 | import argparse
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.optim as optim
import sys
sys.path.append("../../")
from TCN.poly_music.model import TCN
from TCN.poly_music.utils import data_generator
import numpy as np
parser = argparse.ArgumentParser(description='Sequence Modelin... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/mnist_pixel/model.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.452623 | import torch.nn.functional as F
from torch import nn
from TCN.tcn import TemporalConvNet
class TCN(nn.Module):
def __init__(self, input_size, output_size, num_channels, kernel_size, dropout):
super(TCN, self).__init__()
self.tcn = TemporalConvNet(input_size, num_channels, kernel_size=kernel_size, ... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/mnist_pixel/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.507707 | import torch
from torchvision import datasets, transforms
def data_generator(root, batch_size):
train_set = datasets.MNIST(root=root, train=True, download=True,
transform=transforms.Compose([
transforms.ToTensor(),
... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/word_cnn/model.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.936963 | import torch
from torch import nn
import sys
sys.path.append("../../")
from TCN.tcn import TemporalConvNet
class TCN(nn.Module):
def __init__(self, input_size, output_size, num_channels,
kernel_size=2, dropout=0.3, emb_dropout=0.1, tied_weights=False):
super(TCN, self).__init__()
... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/word_cnn/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:22.937519 | import os
import torch
from torch.autograd import Variable
import pickle
"""
Note: The meaning of batch_size in PTB is different from that in MNIST example. In MNIST,
batch_size is the # of sample data that is considered in each iteration; in PTB, however,
it is the number of segments to speed up computation.
The g... |
locuslab/TCN | https://github.com/locuslab/TCN | null | null | null | null | 4,510 | null | null | mit | null | null | null | null | null | null | null | TCN/word_cnn/word_cnn_test.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:23.023725 | import argparse
import time
import math
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.optim as optim
import sys
sys.path.append("../../")
from TCN.word_cnn.utils import *
from TCN.word_cnn.model import *
import pickle
from random import randint
parser = argparse.ArgumentParser(de... |
iam-veeramalla/python-for-devops | https://github.com/iam-veeramalla/python-for-devops | null | null | null | null | 4,501 | null | null | mit | null | null | null | null | null | null | null | Day-02/examples/02-float.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:27.407426 | # Float variables
num1 = 5.0
num2 = 2.5
# Basic Arithmetic
result1 = num1 + num2
print("Addition:", result1)
result2 = num1 - num2
print("Subtraction:", result2)
result3 = num1 * num2
print("Multiplication:", result3)
result4 = num1 / num2
print("Division:", result4)
# Rounding
result5 = round(3.14159265359, 2) #... |
iam-veeramalla/python-for-devops | https://github.com/iam-veeramalla/python-for-devops | null | null | null | null | 4,501 | null | null | mit | null | null | null | null | null | null | null | Day-02/examples/01-string-lowercase.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:27.408884 | text = "Python is awesome"
uppercase = text.upper()
lowercase = text.lower()
print("Uppercase:", uppercase)
print("Lowercase:", lowercase)
|
iam-veeramalla/python-for-devops | https://github.com/iam-veeramalla/python-for-devops | null | null | null | null | 4,501 | null | null | mit | null | null | null | null | null | null | null | Day-02/examples/01-string-replace.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:27.414282 | text = "Python is awesome"
new_text = text.replace("awesome", "great")
print("Modified text:", new_text)
|
iam-veeramalla/python-for-devops | https://github.com/iam-veeramalla/python-for-devops | null | null | null | null | 4,501 | null | null | mit | null | null | null | null | null | null | null | Day-02/examples/01-string-strip.py | null | null | null | null | null | null | Python | 2026-05-04T01:59:27.415882 | text = " Some spaces around "
stripped_text = text.strip()
print("Stripped text:", stripped_text)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.