MCPcopy Create free account

hub / github.com/AdamSobieszek/langtorch / types & classes

Types & classes72 in github.com/AdamSobieszek/langtorch

↓ 26 callersClassTextTensor
TextTensor is a specialized subclass of torch.Tensor designed for handling and manipulating textual data within the LangTorch framework. Each ent
src/langtorch/tensors/texttensor.py:43
↓ 10 callersClassText
The Text class represents structured textual data within LangTorch, allowing for complex manipulations and operations on text similar to work
src/langtorch/texts/text.py:16
↓ 6 callersClassActivation
src/langtorch/tt/modules/to_tt/activation.py:75
↓ 6 callersClassSession
A context manager for saving and loading session data: tensors, api calls, configuration and caching
src/langtorch/session.py:74
↓ 5 callersClassTextModule
A `TextModule` is an abstraction designed to facilitate operations on `TextTensor` objects using a chain of texts transformations and l
src/langtorch/tt/modules/to_tt/textmodule.py:11
↓ 4 callersClassChatTensor
src/langtorch/tensors/chattensor.py:7
↓ 2 callersClassAPIRequest
Abstract API request class.
src/langtorch/api/parallel_processor_utils.py:47
↓ 2 callersClassChat
src/langtorch/texts/chat.py:4
↓ 1 callersClassCoT2Module
Based on: Large Language Models as Optimizers (Yang et al., 2023)
src/langtorch/methods/chain_of_thought.py:14
↓ 1 callersClassCoTModule
Based on: zero-shot CoT (Kojima et al., 2022)
src/langtorch/methods/chain_of_thought.py:4
↓ 1 callersClassFormatters
src/langtorch/grammars/formatters.py:43
↓ 1 callersClassIlocIndexer
src/langtorch/tensors/texttensor.py:445
↓ 1 callersClassIlocIndexer
src/langtorch/texts/text.py:336
↓ 1 callersClassLocIndexer
src/langtorch/tensors/texttensor.py:421
↓ 1 callersClassLocIndexer
src/langtorch/texts/text.py:397
↓ 1 callersClassOpenAI
src/langtorch/tt/modules/to_tt/activation.py:153
↓ 1 callersClassParsers
src/langtorch/grammars/parsers.py:40
↓ 1 callersClassStatusTracker
Stores metadata about the script's progress. Only one instance is created.
src/langtorch/session.py:34
↓ 1 callersClassStatusTracker
Stores metadata about the script's progress. Only one instance is created.
src/langtorch/api/parallel_processor_utils.py:33
↓ 1 callersClassTextItems
src/langtorch/tensors/texttensor.py:739
↓ 1 callersClassThread
src/langtorch/texts/thread.py:4
ClassAIMessage
src/langtorch/texts/chat.py:32
ClassAPIRequestOpenAI
Represents an OpenAI API request.
src/langtorch/api/parallel_processor_utils.py:62
ClassActivationFunction
src/langtorch/tt/modules/to_tt/activation.py:16
ClassAddTextTensor
TextTensor + TextTensor
src/langtorch/tt/functional.py:68
ClassBackwardActivation
src/langtorch/autograd/backward_activation.py:17
ClassBinaryTextLoss
src/langtorch/tt/modules/to_tt/loss.py:61
ClassChatML
src/langtorch/texts/chat.py:12
ClassChatModule
src/langtorch/tt/modules/to_tt/chatmodule.py:5
ClassCoDModule
src/langtorch/methods/chain_of_density.py:4
ClassCode
src/langtorch/texts/code.py:6
ClassCodeModule
src/langtorch/tt/modules/to_tt/codemodule.py:7
ClassCodeTensor
src/langtorch/tensors/codetensor.py:12
ClassCompareAnswersLoss
src/langtorch/tt/modules/to_tt/loss.py:31
ClassConv1d
src/langtorch/tt/modules/to_tt/conv.py:141
ClassCosineSimilarity
r"""Returns cosine similarity between :math:`x_1` and :math:`x_2`, computed along `dim`. .. math :: \text{similarity} = \dfrac{x_1 \cdot
src/langtorch/tt/modules/to_t/distance.py:10
ClassDropoutTextTensor
src/langtorch/tt/functional.py:177
ClassEmbeddingModule
src/langtorch/tt/modules/to_t/embedding.py:8
ClassFormatTextTensor
TextModule.format
src/langtorch/tt/functional.py:120
ClassHumanMessage
src/langtorch/texts/chat.py:21
ClassIndexTextTensor
src/langtorch/tt/functional.py:394
ClassJoinTextTensor
src/langtorch/tt/functional.py:279
ClassLinear
r"""Applies a matmul to the incoming TextTensor: :math:`y = A @ x.T + b` Args: in_features: size of each input sample out_featur
src/langtorch/tt/modules/to_tt/linear.py:7
ClassLossTensor
src/langtorch/tensors/losstensor.py:5
ClassMarkdown
src/langtorch/texts/markdown.py:7
ClassMarkdownTensor
src/langtorch/tensors/markdowntensor.py:5
ClassMarkup
src/langtorch/texts/markup.py:5
ClassMulTextTensor
src/langtorch/tt/functional.py:92
ClassOpenAIAssistantModule
src/langtorch/tt/modules/to_tt/assistantmodule.py:11
ClassPad
src/langtorch/tt/functional.py:353
ClassPermuteTextTensor
src/langtorch/tt/functional.py:339
ClassRepeatTextTensor
TextModule.format
src/langtorch/tt/functional.py:245
ClassReshapeTextTensor
src/langtorch/tt/functional.py:324
ClassSingletonMeta
src/langtorch/session.py:16
ClassSplitTextTensor
src/langtorch/tt/functional.py:226
ClassStackTextTensor
src/langtorch/tt/functional.py:265
ClassStorage
src/langtorch/types.py:16
ClassString
src/langtorch/texts/string.py:4
ClassTODO_LLM
src/langtorch/tt/modules/to_tt/activation.py:164
ClassTODO_MultiheadAttention
r""" Args: embed_dim: Total dimension of the model. num_heads: Number of parallel attention heads. Note that ``embed_dim`` will b
src/langtorch/tt/modules/to_tt/activation.py:191
ClassTextLoss
src/langtorch/tt/modules/to_tt/loss.py:57
ClassTextOptimizer
src/langtorch/optim/optimizer.py:7
ClassTextTensorFunction
src/langtorch/tt/functional.py:146
ClassTextToTensor
Wrapper that converts a TextTensor input to a torch.Tensor output using a specified model or function. Parameters: - model (callable): T
src/langtorch/decorators.py:92
ClassTextToText
Wrapper that converts a TextTensor input to a TextTensor output using a specified model or function. Parameters: - model (callable): The
src/langtorch/decorators.py:53
ClassTextualGradientDescent
src/langtorch/optim/optimizer.py:71
ClassTokenizer
src/langtorch/tt/modules/to_t/tokenizer.py:8
ClassTransformersCausalLM
src/langtorch/tt/modules/to_tt/transformers.py:7
ClassXML
src/langtorch/texts/xml.py:6
Class_ConvNd
src/langtorch/tt/modules/to_tt/conv.py:13
Class_ParameterMeta
src/langtorch/tensors/texttensor.py:22
Class_TextLoss
src/langtorch/tt/modules/to_tt/loss.py:13