text
stringlengths
3
1.68M
id
stringlengths
13
169
metadata
dict
__index_level_0__
int64
0
2.21k
import logging from threading import Thread from typing import Any, Callable, Dict, List, Optional, Sequence, Union import torch from huggingface_hub import AsyncInferenceClient, InferenceClient, model_info from huggingface_hub.hf_api import ModelInfo from huggingface_hub.inference._types import ConversationalOutput f...
llama_index/llama-index-integrations/llms/llama-index-llms-huggingface/llama_index/llms/huggingface/base.py/0
{ "file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-huggingface/llama_index/llms/huggingface/base.py", "repo_id": "llama_index", "token_count": 9989 }
1,353
<jupyter_start><jupyter_text>RAGatouilleThis page covers how to use [RAGatouille](https://github.com/bclavie/RAGatouille) as a retriever in a LangChain chain. RAGatouille makes it as simple as can be to use ColBERT! [ColBERT](https://github.com/stanford-futuredata/ColBERT) is a fast and accurate retrieval model, enabli...
langchain/docs/docs/integrations/retrievers/ragatouille.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/retrievers/ragatouille.ipynb", "repo_id": "langchain", "token_count": 1237 }
166
<jupyter_start><jupyter_text>LLMRails Embeddings If you're opening this Notebook on colab, you will probably need to install LlamaIndex 🦙.<jupyter_code>%pip install llama-index-embeddings-llm-rails !pip install llama-index # imports from llama_index.embeddings.llm_rails import LLMRailsEmbedding # get credentials and ...
llama_index/docs/examples/embeddings/llm_rails.ipynb/0
{ "file_path": "llama_index/docs/examples/embeddings/llm_rails.ipynb", "repo_id": "llama_index", "token_count": 240 }
1,115
import { ChatOpenAI } from "@langchain/openai"; import { BytesOutputParser } from "@langchain/core/output_parsers"; import { RunnableSequence } from "@langchain/core/runnables"; const chain = RunnableSequence.from([ new ChatOpenAI({ temperature: 0 }), new BytesOutputParser(), ]); const stream = await chain.stream...
langchainjs/examples/src/prompts/bytes_output_parser_sequence.ts/0
{ "file_path": "langchainjs/examples/src/prompts/bytes_output_parser_sequence.ts", "repo_id": "langchainjs", "token_count": 157 }
906
from langchain_core.pydantic_v1 import BaseModel from langchain_core.runnables import RunnablePassthrough from research_assistant.search.web import chain as search_chain from research_assistant.writer import chain as writer_chain chain_notypes = ( RunnablePassthrough().assign(research_summary=search_chain) | writ...
langchain/templates/research-assistant/research_assistant/chain.py/0
{ "file_path": "langchain/templates/research-assistant/research_assistant/chain.py", "repo_id": "langchain", "token_count": 138 }
678
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
transformers/tests/models/xglm/test_modeling_flax_xglm.py/0
{ "file_path": "transformers/tests/models/xglm/test_modeling_flax_xglm.py", "repo_id": "transformers", "token_count": 7114 }
797
from typing import Any, Callable, Dict class BaseModerationCallbackHandler: def __init__(self) -> None: if ( self._is_method_unchanged( BaseModerationCallbackHandler.on_after_pii, self.on_after_pii ) and self._is_method_unchanged( BaseMod...
langchain/libs/experimental/langchain_experimental/comprehend_moderation/base_moderation_callbacks.py/0
{ "file_path": "langchain/libs/experimental/langchain_experimental/comprehend_moderation/base_moderation_callbacks.py", "repo_id": "langchain", "token_count": 1001 }
439
package dao import ( "github.com/chroma/chroma-coordinator/internal/metastore/db/dbmodel" "gorm.io/gorm" ) type tenantDb struct { db *gorm.DB } var _ dbmodel.ITenantDb = &tenantDb{} func (s *tenantDb) DeleteAll() error { return s.db.Where("1 = 1").Delete(&dbmodel.Tenant{}).Error } func (s *tenantDb) GetAllTena...
chroma/go/coordinator/internal/metastore/db/dao/tenant.go/0
{ "file_path": "chroma/go/coordinator/internal/metastore/db/dao/tenant.go", "repo_id": "chroma", "token_count": 327 }
51
# coding=utf-8 # Copyright 2022 Tsimur Hadeliya. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
transformers/tests/models/longformer/test_tokenization_longformer.py/0
{ "file_path": "transformers/tests/models/longformer/test_tokenization_longformer.py", "repo_id": "transformers", "token_count": 7082 }
793
python_tests()
llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-metal/tests/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-metal/tests/BUILD", "repo_id": "llama_index", "token_count": 5 }
1,524
from langchain_community.llms.azureml_endpoint import ( AzureMLEndpointClient, AzureMLOnlineEndpoint, ContentFormatterBase, DollyContentFormatter, GPT2ContentFormatter, HFContentFormatter, LlamaContentFormatter, OSSContentFormatter, ) __all__ = [ "AzureMLEndpointClient", "Conten...
langchain/libs/langchain/langchain/llms/azureml_endpoint.py/0
{ "file_path": "langchain/libs/langchain/langchain/llms/azureml_endpoint.py", "repo_id": "langchain", "token_count": 199 }
508
# Knowledge Graphs LlamaIndex contains some fantastic guides for building with knowledge graphs. Check out the end-to-end tutorials/workshops below. Also check out our [knowledge graph query engine guides](/module_guides/deploying/query_engine/modules.md). - LlamaIndex Workshop: Building RAG with Knowledge Graphs <h...
llama_index/docs/understanding/putting_it_all_together/graphs.md/0
{ "file_path": "llama_index/docs/understanding/putting_it_all_together/graphs.md", "repo_id": "llama_index", "token_count": 173 }
1,103
import type { BaseChatModelParams } from "@langchain/core/language_models/chat_models"; import { type OpenAIClient, type ChatOpenAICallOptions, type OpenAIChatInput, type OpenAICoreRequestOptions, ChatOpenAI, } from "@langchain/openai"; import { getEnvironmentVariable } from "@langchain/core/utils/env"; type...
langchainjs/libs/langchain-community/src/chat_models/togetherai.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/chat_models/togetherai.ts", "repo_id": "langchainjs", "token_count": 1518 }
979
<!--Copyright 2023 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
transformers/docs/source/en/model_doc/musicgen.md/0
{ "file_path": "transformers/docs/source/en/model_doc/musicgen.md", "repo_id": "transformers", "token_count": 3592 }
512
"""Tool for the Arxiv API.""" from typing import Optional, Type from langchain_core.callbacks import CallbackManagerForToolRun from langchain_core.pydantic_v1 import BaseModel, Field from langchain_core.tools import BaseTool from langchain_community.utilities.arxiv import ArxivAPIWrapper class ArxivInput(BaseModel...
langchain/libs/community/langchain_community/tools/arxiv/tool.py/0
{ "file_path": "langchain/libs/community/langchain_community/tools/arxiv/tool.py", "repo_id": "langchain", "token_count": 445 }
282
"""Guideline evaluation.""" import asyncio import logging from typing import Any, Optional, Sequence, Union, cast from llama_index.core import ServiceContext from llama_index.core.bridge.pydantic import BaseModel, Field from llama_index.core.evaluation.base import BaseEvaluator, EvaluationResult from llama_index.core....
llama_index/llama-index-core/llama_index/core/evaluation/guideline.py/0
{ "file_path": "llama_index/llama-index-core/llama_index/core/evaluation/guideline.py", "repo_id": "llama_index", "token_count": 1701 }
1,185
<jupyter_start><jupyter_text>Configure chain internals at runtimeOftentimes you may want to experiment with, or even expose to the end user, multiple different ways of doing things.In order to make this experience as easy as possible, we have defined two methods.First, a `configurable_fields` method. This lets you conf...
langchain/docs/docs/expression_language/how_to/configure.ipynb/0
{ "file_path": "langchain/docs/docs/expression_language/how_to/configure.ipynb", "repo_id": "langchain", "token_count": 2066 }
87
# flake8: noqa from langchain.chains.prompt_selector import ConditionalPromptSelector, is_chat_model from langchain_core.prompts import PromptTemplate from langchain_core.prompts.chat import ( ChatPromptTemplate, HumanMessagePromptTemplate, SystemMessagePromptTemplate, ) prompt_template = """Use the follow...
langchain/libs/langchain/langchain/chains/question_answering/stuff_prompt.py/0
{ "file_path": "langchain/libs/langchain/langchain/chains/question_answering/stuff_prompt.py", "repo_id": "langchain", "token_count": 353 }
498
# Copyright 2022 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
transformers/src/transformers/commands/pt_to_tf.py/0
{ "file_path": "transformers/src/transformers/commands/pt_to_tf.py", "repo_id": "transformers", "token_count": 8900 }
617
# coding=utf-8 # Copyright 2021 Google AI, Ross Wightman, The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
transformers/src/transformers/models/vit/modeling_tf_vit.py/0
{ "file_path": "transformers/src/transformers/models/vit/modeling_tf_vit.py", "repo_id": "transformers", "token_count": 15720 }
685
[ { "details": { "best_of_sequences": null, "finish_reason": "length", "generated_tokens": 10, "prefill": [ { "id": 50, "logprob": null, "text": "G" }, { "id": 330, "logprob": -5.96875, "text": "ir" ...
text-generation-inference/integration-tests/models/__snapshots__/test_flash_falcon/test_flash_falcon_load.json/0
{ "file_path": "text-generation-inference/integration-tests/models/__snapshots__/test_flash_falcon/test_flash_falcon_load.json", "repo_id": "text-generation-inference", "token_count": 21427 }
383
# LoadAndSearch Tool This Tool Spec is intended to wrap other tools, allowing the Agent to perform separate loading and reading of data. This is very useful for when tools return information larger than or closer to the size of the context window. ## Usage Here's an example usage of the LoadAndSearchToolSpec. ```py...
llama_index/llama-index-legacy/llama_index/legacy/tools/tool_spec/load_and_search/README.md/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/tools/tool_spec/load_and_search/README.md", "repo_id": "llama_index", "token_count": 333 }
1,720
<jupyter_start><jupyter_text>Custom EmbeddingsLlamaIndex supports embeddings from OpenAI, Azure, and Langchain. But if this isn't enough, you can also implement any embeddings model!The example below uses Instructor Embeddings ([install/setup details here](https://huggingface.co/hkunlp/instructor-large)), and implement...
llama_index/docs/examples/embeddings/custom_embeddings.ipynb/0
{ "file_path": "llama_index/docs/examples/embeddings/custom_embeddings.ipynb", "repo_id": "llama_index", "token_count": 1286 }
1,180
from langchain_community.agent_toolkits.amadeus.toolkit import AmadeusToolkit __all__ = ["AmadeusToolkit"]
langchain/libs/langchain/langchain/agents/agent_toolkits/amadeus/toolkit.py/0
{ "file_path": "langchain/libs/langchain/langchain/agents/agent_toolkits/amadeus/toolkit.py", "repo_id": "langchain", "token_count": 38 }
443
# Copyright 2023-present the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
peft/tests/test_initialization.py/0
{ "file_path": "peft/tests/test_initialization.py", "repo_id": "peft", "token_count": 5405 }
340
#!/usr/bin/env python import argparse import json from typing import List from ltp import LTP from transformers import BertTokenizer def _is_chinese_char(cp): """Checks whether CP is the codepoint of a CJK character.""" # This defines a "chinese character" as anything in the CJK Unicode block: # https...
transformers/examples/legacy/run_chinese_ref.py/0
{ "file_path": "transformers/examples/legacy/run_chinese_ref.py", "repo_id": "transformers", "token_count": 2389 }
579
# coding=utf-8 # Copyright 2021 Microsoft Research and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
transformers/src/transformers/models/beit/modeling_beit.py/0
{ "file_path": "transformers/src/transformers/models/beit/modeling_beit.py", "repo_id": "transformers", "token_count": 25639 }
567
import { FaissStore } from "@langchain/community/vectorstores/faiss"; import { OpenAIEmbeddings } from "@langchain/openai"; import { Document } from "@langchain/core/documents"; const vectorStore = new FaissStore(new OpenAIEmbeddings(), {}); const ids = ["2", "1", "4"]; const idsReturned = await vectorStore.addDocumen...
langchainjs/examples/src/indexes/vector_stores/faiss_delete.ts/0
{ "file_path": "langchainjs/examples/src/indexes/vector_stores/faiss_delete.ts", "repo_id": "langchainjs", "token_count": 437 }
784
# coding=utf-8 # Copyright 2021 Microsoft Research The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
transformers/src/transformers/models/layoutlmv2/modeling_layoutlmv2.py/0
{ "file_path": "transformers/src/transformers/models/layoutlmv2/modeling_layoutlmv2.py", "repo_id": "transformers", "token_count": 26677 }
620
package indexparamcheck import ( "strconv" "testing" "github.com/stretchr/testify/assert" "github.com/milvus-io/milvus-proto/go-api/v2/schemapb" "github.com/milvus-io/milvus/pkg/util/metric" ) func Test_ivfBaseChecker_CheckTrain(t *testing.T) { validParams := map[string]string{ DIM: strconv.Itoa(128), ...
milvus/pkg/util/indexparamcheck/ivf_base_checker_test.go/0
{ "file_path": "milvus/pkg/util/indexparamcheck/ivf_base_checker_test.go", "repo_id": "milvus", "token_count": 1447 }
1,840
""" EfficientFormer @article{li2022efficientformer, title={EfficientFormer: Vision Transformers at MobileNet Speed}, author={Li, Yanyu and Yuan, Geng and Wen, Yang and Hu, Eric and Evangelidis, Georgios and Tulyakov, Sergey and Wang, Yanzhi and Ren, Jian}, journal={arXiv preprint arXiv:2206.01191}, year={20...
pytorch-image-models/timm/models/efficientformer.py/0
{ "file_path": "pytorch-image-models/timm/models/efficientformer.py", "repo_id": "pytorch-image-models", "token_count": 9481 }
363
# `tokenizers-freebsd-x64` This is the **x86_64-unknown-freebsd** binary for `tokenizers`
tokenizers/bindings/node/npm/freebsd-x64/README.md/0
{ "file_path": "tokenizers/bindings/node/npm/freebsd-x64/README.md", "repo_id": "tokenizers", "token_count": 36 }
428
# LlamaIndex Agent Integration: Openai-Legacy
llama_index/llama-index-integrations/agent/llama-index-agent-openai-legacy/README.md/0
{ "file_path": "llama_index/llama-index-integrations/agent/llama-index-agent-openai-legacy/README.md", "repo_id": "llama_index", "token_count": 13 }
1,176
from langchain_community.vectorstores.vectara import Vectara, VectaraRetriever __all__ = ["Vectara", "VectaraRetriever"]
langchain/libs/langchain/langchain/vectorstores/vectara.py/0
{ "file_path": "langchain/libs/langchain/langchain/vectorstores/vectara.py", "repo_id": "langchain", "token_count": 43 }
587
import pytest from langchain_core.memory import BaseMemory from langchain.chains.conversation.memory import ( ConversationBufferMemory, ConversationBufferWindowMemory, ConversationSummaryMemory, ) from langchain.memory import ReadOnlySharedMemory, SimpleMemory from tests.unit_tests.llms.fake_llm import Fak...
langchain/libs/langchain/tests/unit_tests/chains/test_memory.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/chains/test_memory.py", "repo_id": "langchain", "token_count": 379 }
604
# `tokenizers-linux-x64-gnu` This is the **x86_64-unknown-linux-gnu** binary for `tokenizers`
tokenizers/bindings/node/npm/linux-x64-gnu/README.md/0
{ "file_path": "tokenizers/bindings/node/npm/linux-x64-gnu/README.md", "repo_id": "tokenizers", "token_count": 36 }
429
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
transformers/src/transformers/models/deta/image_processing_deta.py/0
{ "file_path": "transformers/src/transformers/models/deta/image_processing_deta.py", "repo_id": "transformers", "token_count": 22449 }
675
{ "details": { "best_of_sequences": null, "finish_reason": "length", "generated_tokens": 10, "prefill": [ { "id": 1, "logprob": null, "text": "<s>" }, { "id": 4321, "logprob": -9.7890625, "text": "Test" }, { "id": 20...
text-generation-inference/integration-tests/models/__snapshots__/test_flash_llama_gptq/test_flash_llama_gptq.json/0
{ "file_path": "text-generation-inference/integration-tests/models/__snapshots__/test_flash_llama_gptq/test_flash_llama_gptq.json", "repo_id": "text-generation-inference", "token_count": 1046 }
420
# coding=utf-8 # Copyright 2018 The Microsoft Research Asia LayoutLM Team Authors, The Hugging Face Team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
transformers/tests/models/layoutlm/test_modeling_tf_layoutlm.py/0
{ "file_path": "transformers/tests/models/layoutlm/test_modeling_tf_layoutlm.py", "repo_id": "transformers", "token_count": 7442 }
820
# Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
transformers/src/transformers/models/big_bird/__init__.py/0
{ "file_path": "transformers/src/transformers/models/big_bird/__init__.py", "repo_id": "transformers", "token_count": 1883 }
606
# Load audio data You can load an audio dataset using the [`Audio`] feature that automatically decodes and resamples the audio files when you access the examples. Audio decoding is based on the [`soundfile`](https://github.com/bastibe/python-soundfile) python package, which uses the [`libsndfile`](https://github.com/l...
datasets/docs/source/audio_load.mdx/0
{ "file_path": "datasets/docs/source/audio_load.mdx", "repo_id": "datasets", "token_count": 1529 }
109
import pytest from text_generation_server.pb import generate_pb2 from text_generation_server.models.causal_lm import CausalLMBatch from text_generation_server.models.santacoder import SantaCoder @pytest.fixture(scope="session") def default_santacoder(): return SantaCoder("bigcode/santacoder") @pytest.fixture d...
text-generation-inference/server/tests/models/test_santacoder.py/0
{ "file_path": "text-generation-inference/server/tests/models/test_santacoder.py", "repo_id": "text-generation-inference", "token_count": 1306 }
381
"""Test GooseAI API wrapper.""" from langchain_community.llms.gooseai import GooseAI def test_gooseai_call() -> None: """Test valid call to gooseai.""" llm = GooseAI(max_tokens=10) output = llm("Say foo:") assert isinstance(output, str) def test_gooseai_call_fairseq() -> None: """Test valid cal...
langchain/libs/community/tests/integration_tests/llms/test_gooseai.py/0
{ "file_path": "langchain/libs/community/tests/integration_tests/llms/test_gooseai.py", "repo_id": "langchain", "token_count": 332 }
356
package kafka import ( "context" "fmt" "strconv" "sync" "time" "github.com/cockroachdb/errors" "github.com/confluentinc/confluent-kafka-go/kafka" "go.uber.org/atomic" "go.uber.org/zap" "github.com/milvus-io/milvus/pkg/log" "github.com/milvus-io/milvus/pkg/metrics" "github.com/milvus-io/milvus/pkg/mq/msgs...
milvus/pkg/mq/msgstream/mqwrapper/kafka/kafka_client.go/0
{ "file_path": "milvus/pkg/mq/msgstream/mqwrapper/kafka/kafka_client.go", "repo_id": "milvus", "token_count": 3014 }
1,920
# LlamaIndex Vector_Stores Integration: Tair
llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-tair/README.md/0
{ "file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-tair/README.md", "repo_id": "llama_index", "token_count": 13 }
1,538
<script lang="ts"> import { base } from "$app/paths"; import { page } from "$app/stores"; import { createEventDispatcher } from "svelte"; import CarbonCheckmark from "~icons/carbon/checkmark"; import CarbonTrashCan from "~icons/carbon/trash-can"; import CarbonClose from "~icons/carbon/close"; import CarbonEdit ...
chat-ui/src/lib/components/NavConversationItem.svelte/0
{ "file_path": "chat-ui/src/lib/components/NavConversationItem.svelte", "repo_id": "chat-ui", "token_count": 1309 }
86
from llama_index.readers.zep.base import ZepReader __all__ = ["ZepReader"]
llama_index/llama-index-integrations/readers/llama-index-readers-zep/llama_index/readers/zep/__init__.py/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-zep/llama_index/readers/zep/__init__.py", "repo_id": "llama_index", "token_count": 29 }
1,464
"""Document loader helpers.""" import concurrent.futures from typing import List, NamedTuple, Optional, cast class FileEncoding(NamedTuple): """File encoding as the NamedTuple.""" encoding: Optional[str] """The encoding of the file.""" confidence: float """The confidence of the encoding.""" ...
langchain/libs/community/langchain_community/document_loaders/helpers.py/0
{ "file_path": "langchain/libs/community/langchain_community/document_loaders/helpers.py", "repo_id": "langchain", "token_count": 573 }
237
from langchain.prompts.loading import __all__ EXPECTED_ALL = [ "_load_examples", "_load_few_shot_prompt", "_load_output_parser", "_load_prompt", "_load_prompt_from_file", "_load_template", "load_prompt", "load_prompt_from_config", "try_load_from_hub", ] def test_all_imports() -> N...
langchain/libs/langchain/tests/unit_tests/prompts/test_loading.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/prompts/test_loading.py", "repo_id": "langchain", "token_count": 163 }
602
/* eslint-disable no-process-env */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import { expect, test } from "@jest/globals"; import { BedrockRuntimeClient } from "@aws-sdk/client-bedrock-runtime"; import { HNSWLib } from "../../vectorstores/hnswlib.js"; import { BedrockEmbeddings } from "../bedrock....
langchainjs/libs/langchain-community/src/embeddings/tests/bedrock.int.test.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/embeddings/tests/bedrock.int.test.ts", "repo_id": "langchainjs", "token_count": 957 }
987
# coding=utf-8 # Copyright 2024 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
transformers/src/transformers/pipelines/image_to_text.py/0
{ "file_path": "transformers/src/transformers/pipelines/image_to_text.py", "repo_id": "transformers", "token_count": 3389 }
707
import json import os import warnings from enum import Enum from deprecated import deprecated from typing import Any, Callable, Dict, List, Literal, Optional, Sequence from llama_index.core.base.embeddings.base import BaseEmbedding, Embedding from llama_index.core.base.llms.types import ChatMessage from llama_index.co...
llama_index/llama-index-integrations/embeddings/llama-index-embeddings-bedrock/llama_index/embeddings/bedrock/base.py/0
{ "file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-bedrock/llama_index/embeddings/bedrock/base.py", "repo_id": "llama_index", "token_count": 6572 }
1,268
import pytest from langchain_community.document_loaders.confluence import ConfluenceLoader try: from atlassian import Confluence # noqa: F401 confluence_installed = True except ImportError: confluence_installed = False @pytest.mark.skipif(not confluence_installed, reason="Atlassian package not install...
langchain/libs/community/tests/integration_tests/document_loaders/test_confluence.py/0
{ "file_path": "langchain/libs/community/tests/integration_tests/document_loaders/test_confluence.py", "repo_id": "langchain", "token_count": 662 }
322
from rag_chroma_multi_modal.chain import chain __all__ = ["chain"]
langchain/templates/rag-chroma-multi-modal/rag_chroma_multi_modal/__init__.py/0
{ "file_path": "langchain/templates/rag-chroma-multi-modal/rag_chroma_multi_modal/__init__.py", "repo_id": "langchain", "token_count": 24 }
682
# CodeParrot 🦜 <p align="center"> <img src="https://huggingface.co/datasets/lvwerra/repo-images/raw/main/code-highlighting-streamlit.png" alt="drawing" width="350"/> </p> ## What is this about? This is an open-source effort to train and evaluate code generation models. CodeParrot 🦜 is a GPT-2 model trained from ...
transformers/examples/research_projects/codeparrot/README.md/0
{ "file_path": "transformers/examples/research_projects/codeparrot/README.md", "repo_id": "transformers", "token_count": 5019 }
532
# coding=utf-8 # Copyright 2020, The T5 Authors and HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
transformers/src/transformers/models/mt5/configuration_mt5.py/0
{ "file_path": "transformers/src/transformers/models/mt5/configuration_mt5.py", "repo_id": "transformers", "token_count": 3273 }
718
import json from pathlib import Path from langchain.schema import Document from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain_community.chat_models import ChatOpenAI from langchain_community.embeddings import OpenAIEmbeddings from langchain_community.vectorstores import Chroma from langc...
langchain/templates/rag-gpt-crawler/rag_gpt_crawler/chain.py/0
{ "file_path": "langchain/templates/rag-gpt-crawler/rag_gpt_crawler/chain.py", "repo_id": "langchain", "token_count": 560 }
693
from llama_index.readers.jira.base import JiraReader __all__ = ["JiraReader"]
llama_index/llama-index-integrations/readers/llama-index-readers-jira/llama_index/readers/jira/__init__.py/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-jira/llama_index/readers/jira/__init__.py", "repo_id": "llama_index", "token_count": 29 }
1,338
const customCSS = ` ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: #27272a; } ::-webkit-scrollbar-thumb { background: #888; border-radius: 0.375rem; } ::-webkit-scrollbar-thumb:hover { background: #555; } `; const sty...
langgraph/examples/web-navigation/mark_page.js/0
{ "file_path": "langgraph/examples/web-navigation/mark_page.js", "repo_id": "langgraph", "token_count": 2048 }
991
FROM ubuntu:20.04 LABEL maintainer="Hugging Face" LABEL repository="diffusers" ENV DEBIAN_FRONTEND=noninteractive RUN apt update && \ apt install -y bash \ build-essential \ git \ git-lfs \ curl \ ca-certificates \ ...
diffusers/docker/diffusers-onnxruntime-cpu/Dockerfile/0
{ "file_path": "diffusers/docker/diffusers-onnxruntime-cpu/Dockerfile", "repo_id": "diffusers", "token_count": 630 }
172
#!/bin/bash set -eu # Initialize a variable to keep track of errors errors=0 # make sure not importing from langchain or langchain_experimental git --no-pager grep '^from langchain\.' . && errors=$((errors+1)) git --no-pager grep '^from langchain_experimental\.' . && errors=$((errors+1)) # Decide on an exit status ...
langchain/libs/community/scripts/lint_imports.sh/0
{ "file_path": "langchain/libs/community/scripts/lint_imports.sh", "repo_id": "langchain", "token_count": 134 }
344
from typing import List from langchain_core.chat_history import BaseChatMessageHistory from langchain_core.messages import BaseMessage class StreamlitChatMessageHistory(BaseChatMessageHistory): """ Chat message history that stores messages in Streamlit session state. Args: key: The key to use in...
langchain/libs/community/langchain_community/chat_message_histories/streamlit.py/0
{ "file_path": "langchain/libs/community/langchain_community/chat_message_histories/streamlit.py", "repo_id": "langchain", "token_count": 442 }
236
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and i...
diffusers/src/diffusers/pipelines/stable_diffusion_gligen/__init__.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/stable_diffusion_gligen/__init__.py", "repo_id": "diffusers", "token_count": 613 }
245
import logging from typing import Any, AsyncIterator, Dict, Iterator, List, Optional from langchain_core.callbacks import ( AsyncCallbackManagerForLLMRun, CallbackManagerForLLMRun, ) from langchain_core.language_models.llms import LLM from langchain_core.outputs import GenerationChunk from langchain_core.pydan...
langchain/libs/community/langchain_community/llms/huggingface_text_gen_inference.py/0
{ "file_path": "langchain/libs/community/langchain_community/llms/huggingface_text_gen_inference.py", "repo_id": "langchain", "token_count": 5140 }
264
import os import tempfile from functools import partial from unittest import TestCase from unittest.mock import patch import numpy as np import pytest from datasets.arrow_dataset import Dataset from datasets.search import ElasticSearchIndex, FaissIndex, MissingIndex from .utils import require_elasticsearch, require_...
datasets/tests/test_search.py/0
{ "file_path": "datasets/tests/test_search.py", "repo_id": "datasets", "token_count": 4372 }
150
# Copyright 2022 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
accelerate/src/accelerate/utils/versions.py/0
{ "file_path": "accelerate/src/accelerate/utils/versions.py", "repo_id": "accelerate", "token_count": 701 }
18
import { ObjectId, Collection, Document as MongoDBDocument, MongoClient, Db, } from "mongodb"; import type { EmbeddingsInterface } from "@langchain/core/embeddings"; import { MaxMarginalRelevanceSearchOptions, VectorStore, } from "@langchain/core/vectorstores"; import { Document } from "@langchain/core/do...
langchainjs/libs/langchain-community/src/vectorstores/azure_cosmosdb.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/vectorstores/azure_cosmosdb.ts", "repo_id": "langchainjs", "token_count": 4585 }
991
# RLHF pipeline for the creation of StackLLaMa: a Stack exchange llama-7b model. There were three main steps to the training process: 1. Supervised fine-tuning of the base llama-7b model to create llama-7b-se: - `torchrun --nnodes 1 --nproc_per_node 8 examples/research_projects/stack_llama/scripts/supervised_finet...
trl/examples/research_projects/stack_llama/scripts/README.md/0
{ "file_path": "trl/examples/research_projects/stack_llama/scripts/README.md", "repo_id": "trl", "token_count": 696 }
781
#!/usr/bin/env python # coding=utf-8 # Copyright 2023 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
transformers/src/transformers/tools/python_interpreter.py/0
{ "file_path": "transformers/src/transformers/tools/python_interpreter.py", "repo_id": "transformers", "token_count": 3737 }
713
python_tests()
llama_index/llama-index-integrations/readers/llama-index-readers-guru/tests/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-guru/tests/BUILD", "repo_id": "llama_index", "token_count": 5 }
1,309
/* eslint-disable no-promise-executor-return */ import { test, expect } from "@jest/globals"; import { createClient } from "redis"; import { HumanMessage, AIMessage } from "@langchain/core/messages"; import { RedisChatMessageHistory } from "../chat_histories.js"; afterAll(async () => { const client = createClient()...
langchainjs/libs/langchain-redis/src/tests/chat_histories.int.test.ts/0
{ "file_path": "langchainjs/libs/langchain-redis/src/tests/chat_histories.int.test.ts", "repo_id": "langchainjs", "token_count": 794 }
1,011
import jsonpointer from "jsonpointer"; import { TextLoader } from "./text.js"; /** * Class that extends the `TextLoader` class. It represents a document * loader that loads documents from JSON files. It has a constructor that * takes a `filePathOrBlob` parameter representing the path to the JSON * file or a `Blob`...
langchainjs/langchain/src/document_loaders/fs/json.ts/0
{ "file_path": "langchainjs/langchain/src/document_loaders/fs/json.ts", "repo_id": "langchainjs", "token_count": 2034 }
938
# Copyright 2023 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
transformers/tests/models/umt5/test_modeling_umt5.py/0
{ "file_path": "transformers/tests/models/umt5/test_modeling_umt5.py", "repo_id": "transformers", "token_count": 15614 }
791
import { ChatOpenAI } from "@langchain/openai"; import { PromptTemplate } from "@langchain/core/prompts"; import { RunnableSequence } from "@langchain/core/runnables"; import { StringOutputParser } from "@langchain/core/output_parsers"; const model = new ChatOpenAI({}); const promptTemplate = PromptTemplate.fromTempla...
langchainjs/examples/src/guides/expression_language/cookbook_output_parser.ts/0
{ "file_path": "langchainjs/examples/src/guides/expression_language/cookbook_output_parser.ts", "repo_id": "langchainjs", "token_count": 189 }
839
from typing import Any, Union from langchain.evaluation.schema import StringEvaluator from langchain.output_parsers.json import parse_json_markdown class JsonSchemaEvaluator(StringEvaluator): """An evaluator that validates a JSON prediction against a JSON schema reference. This evaluator checks if a given J...
langchain/libs/langchain/langchain/evaluation/parsing/json_schema.py/0
{ "file_path": "langchain/libs/langchain/langchain/evaluation/parsing/json_schema.py", "repo_id": "langchain", "token_count": 1363 }
507
package grpcutils import ( "crypto/tls" "crypto/x509" "io" "net" "os" "github.com/pingcap/log" "go.uber.org/zap" "google.golang.org/grpc" "google.golang.org/grpc/credentials" ) const ( maxGrpcFrameSize = 256 * 1024 * 1024 ReadinessProbeService = "chroma-readiness" ) type GrpcServer interface { io.Close...
chroma/go/coordinator/internal/grpccoordinator/grpcutils/service.go/0
{ "file_path": "chroma/go/coordinator/internal/grpccoordinator/grpcutils/service.go", "repo_id": "chroma", "token_count": 870 }
43
# flake8: noqa from langchain_core.prompts import PromptTemplate prompt_template = """Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer. {context} Question: {question} Helpful Answer:""" PROMPT = PromptTem...
langchain/libs/langchain/langchain/chains/retrieval_qa/prompt.py/0
{ "file_path": "langchain/libs/langchain/langchain/chains/retrieval_qa/prompt.py", "repo_id": "langchain", "token_count": 118 }
474
import { NextRequest, NextResponse } from "next/server"; import { Message as VercelChatMessage, StreamingTextResponse } from "ai"; import { AgentExecutor, createOpenAIFunctionsAgent } from "langchain/agents"; import { ChatOpenAI } from "@langchain/openai"; import { SerpAPI } from "@langchain/community/tools/serpapi"; ...
langchain-nextjs-template/app/api/chat/agents/route.ts/0
{ "file_path": "langchain-nextjs-template/app/api/chat/agents/route.ts", "repo_id": "langchain-nextjs-template", "token_count": 1923 }
68
from llama_index.finetuning.openai import OpenAIFinetuneEngine from llama_index.finetuning.types import BaseLLMFinetuneEngine def test_class(): names_of_base_classes = [b.__name__ for b in OpenAIFinetuneEngine.__mro__] assert BaseLLMFinetuneEngine.__name__ in names_of_base_classes
llama_index/llama-index-finetuning/tests/openai/test_openai_classes.py/0
{ "file_path": "llama_index/llama-index-finetuning/tests/openai/test_openai_classes.py", "repo_id": "llama_index", "token_count": 104 }
1,223
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/internal/querynodev2/delegator/delegator_data.go/0
{ "file_path": "milvus/internal/querynodev2/delegator/delegator_data.go", "repo_id": "milvus", "token_count": 11145 }
1,847
# coding=utf-8 # Copyright 2023 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
transformers/tests/peft_integration/test_peft_integration.py/0
{ "file_path": "transformers/tests/peft_integration/test_peft_integration.py", "repo_id": "transformers", "token_count": 10392 }
798
#include "compat.cuh" __forceinline__ __device__ half2 dot22_8(half2(&dq)[4], const half* a_ptr, const half2 g_result, const half qs_h) { half2 result = {}; const half2* a2_ptr = (const half2*)a_ptr; #pragma unroll for (int i = 0; i < 4; i++) result = __hfma2(dq[i], *a2_ptr++, result); return __hfm...
text-generation-inference/server/exllamav2_kernels/exllamav2_kernels/cuda/q_gemm_kernel.cuh/0
{ "file_path": "text-generation-inference/server/exllamav2_kernels/exllamav2_kernels/cuda/q_gemm_kernel.cuh", "repo_id": "text-generation-inference", "token_count": 11459 }
391
# Diffusion for Audio <CourseFloatingBanner unit={4} classNames="absolute z-10 right-0 top-0" notebooks={[ {label: "Diffusion for Audio", value: "https://colab.research.google.com/github/huggingface/diffusion-models-class/blob/main/units/en/unit4/diffusion_for_audio.ipynb"}, {label: "Diffusion for Audio", ...
diffusion-models-class/units/en/unit4/3.mdx/0
{ "file_path": "diffusion-models-class/units/en/unit4/3.mdx", "repo_id": "diffusion-models-class", "token_count": 4647 }
295
# EditorConfig helps developers define and maintain consistent # coding styles between different editors or IDEs # http://editorconfig.org root = true [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.md] trim_trailing_whitespace =...
tokenizers/bindings/node/.editorconfig/0
{ "file_path": "tokenizers/bindings/node/.editorconfig", "repo_id": "tokenizers", "token_count": 108 }
391
# coding=utf-8 # Copyright 2021 The I-BERT Authors (Sehoon Kim, Amir Gholami, Zhewei Yao, # Michael Mahoney, Kurt Keutzer - UC Berkeley) and The HuggingFace Inc. team. # Copyright (c) 20121, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use t...
transformers/src/transformers/models/ibert/configuration_ibert.py/0
{ "file_path": "transformers/src/transformers/models/ibert/configuration_ibert.py", "repo_id": "transformers", "token_count": 2900 }
675
from langchain_community.callbacks.clearml_callback import ( ClearMLCallbackHandler, ) __all__ = ["ClearMLCallbackHandler"]
langchain/libs/langchain/langchain/callbacks/clearml_callback.py/0
{ "file_path": "langchain/libs/langchain/langchain/callbacks/clearml_callback.py", "repo_id": "langchain", "token_count": 44 }
451
# coding=utf-8 # Copyright 2024 HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion_v_pred.py/0
{ "file_path": "diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion_v_pred.py", "repo_id": "diffusers", "token_count": 10152 }
285
<jupyter_start><jupyter_text>Deep Lake Vector Store Quickstart Deep Lake can be installed using pip.<jupyter_code>%pip install llama-index-vector-stores-deeplake !pip install llama-index !pip install deeplake<jupyter_output><empty_output><jupyter_text>Next, let's import the required modules and set the needed environme...
llama_index/docs/examples/vector_stores/DeepLakeIndexDemo.ipynb/0
{ "file_path": "llama_index/docs/examples/vector_stores/DeepLakeIndexDemo.ipynb", "repo_id": "llama_index", "token_count": 1157 }
1,134
python_sources() python_tests( name="tests", skip_tests=True, )
llama_index/llama-index-legacy/tests/indices/query/query_transform/BUILD/0
{ "file_path": "llama_index/llama-index-legacy/tests/indices/query/query_transform/BUILD", "repo_id": "llama_index", "token_count": 32 }
1,620
from dataclasses import dataclass, field from typing import Optional @dataclass class TrainingArguments: """ Configuration for training model. """ model_ckpt: Optional[str] = field( default="codeparrot/codeparrot", metadata={"help": "Model name or path of model to be trained."} ) save...
transformers/examples/research_projects/codeparrot/scripts/arguments.py/0
{ "file_path": "transformers/examples/research_projects/codeparrot/scripts/arguments.py", "repo_id": "transformers", "token_count": 3556 }
558
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
transformers/tests/utils/test_cli.py/0
{ "file_path": "transformers/tests/utils/test_cli.py", "repo_id": "transformers", "token_count": 1489 }
851
from __future__ import annotations import logging import time from typing import Any, Dict, Optional from langchain_core.callbacks import CallbackManagerForToolRun from langchain_core.pydantic_v1 import root_validator from langchain_core.tools import BaseTool from langchain_core.utils import get_from_dict_or_env fro...
langchain/libs/community/langchain_community/tools/azure_cognitive_services/speech2text.py/0
{ "file_path": "langchain/libs/community/langchain_community/tools/azure_cognitive_services/speech2text.py", "repo_id": "langchain", "token_count": 1790 }
293
from llama_index.legacy.llm_predictor.base import BaseLLMPredictor, LLMPredictor from llama_index.legacy.llm_predictor.mock import MockLLMPredictor from llama_index.legacy.llm_predictor.structured import StructuredLLMPredictor from llama_index.legacy.llm_predictor.vellum.predictor import VellumPredictor def load_pred...
llama_index/llama-index-legacy/llama_index/legacy/llm_predictor/loading.py/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/llm_predictor/loading.py", "repo_id": "llama_index", "token_count": 416 }
1,729
[project] name = 'tokenizers' requires-python = '>=3.7' authors = [ {name = 'Nicolas Patry', email = 'patry.nicolas@protonmail.com'}, {name = 'Anthony Moi', email = 'anthony@huggingface.co'} ] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audie...
tokenizers/bindings/python/pyproject.toml/0
{ "file_path": "tokenizers/bindings/python/pyproject.toml", "repo_id": "tokenizers", "token_count": 554 }
405
/* eslint-disable no-process-env */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import { test } from "@jest/globals"; import { AmazonKnowledgeBaseRetriever } from "../amazon_knowledge_base.js"; test.skip("AmazonKnowledgeBaseRetriever", async () => { const retriever = new AmazonKnowledgeBaseRetrieve...
langchainjs/libs/langchain-community/src/retrievers/tests/amazon_knowledge_base.int.test.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/retrievers/tests/amazon_knowledge_base.int.test.ts", "repo_id": "langchainjs", "token_count": 315 }
963
import { NextRequest, NextResponse } from "next/server"; import { RecursiveCharacterTextSplitter } from "langchain/text_splitter"; import { createClient } from "@supabase/supabase-js"; import { SupabaseVectorStore } from "langchain/vectorstores/supabase"; import { OpenAIEmbeddings } from "langchain/embeddings/openai";...
langchain-nextjs-template/app/api/retrieval/ingest/route.ts/0
{ "file_path": "langchain-nextjs-template/app/api/retrieval/ingest/route.ts", "repo_id": "langchain-nextjs-template", "token_count": 708 }
64
import uuid from typing import Any, Callable from chromadb.types import Segment from overrides import override from typing import Dict, Optional from abc import ABC, abstractmethod class SegmentCache(ABC): @abstractmethod def get(self, key: uuid.UUID) -> Optional[Segment]: pass @abstractmethod ...
chroma/chromadb/segment/impl/manager/cache/cache.py/0
{ "file_path": "chroma/chromadb/segment/impl/manager/cache/cache.py", "repo_id": "chroma", "token_count": 1332 }
16
# Structured Data # A Guide to LlamaIndex + Structured Data A lot of modern data systems depend on structured data, such as a Postgres DB or a Snowflake data warehouse. LlamaIndex provides a lot of advanced features, powered by LLM's, to both create structured data from unstructured data, as well as analyze this stru...
llama_index/docs/understanding/putting_it_all_together/structured_data.md/0
{ "file_path": "llama_index/docs/understanding/putting_it_all_together/structured_data.md", "repo_id": "llama_index", "token_count": 1749 }
1,153
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
transformers/src/transformers/models/efficientformer/convert_efficientformer_original_pytorch_checkpoint_to_pytorch.py/0
{ "file_path": "transformers/src/transformers/models/efficientformer/convert_efficientformer_original_pytorch_checkpoint_to_pytorch.py", "repo_id": "transformers", "token_count": 4066 }
611
<!--Copyright 2023 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
transformers/docs/source/en/model_doc/xlm-v.md/0
{ "file_path": "transformers/docs/source/en/model_doc/xlm-v.md", "repo_id": "transformers", "token_count": 809 }
507