Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdamSobieszek/langtorch
/ types & classes
Types & classes
72 in github.com/AdamSobieszek/langtorch
⨍
Functions
413
◇
Types & classes
72
↓ 26 callers
Class
TextTensor
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 callers
Class
Text
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 callers
Class
Activation
src/langtorch/tt/modules/to_tt/activation.py:75
↓ 6 callers
Class
Session
A context manager for saving and loading session data: tensors, api calls, configuration and caching
src/langtorch/session.py:74
↓ 5 callers
Class
TextModule
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 callers
Class
ChatTensor
src/langtorch/tensors/chattensor.py:7
↓ 2 callers
Class
APIRequest
Abstract API request class.
src/langtorch/api/parallel_processor_utils.py:47
↓ 2 callers
Class
Chat
src/langtorch/texts/chat.py:4
↓ 1 callers
Class
CoT2Module
Based on: Large Language Models as Optimizers (Yang et al., 2023)
src/langtorch/methods/chain_of_thought.py:14
↓ 1 callers
Class
CoTModule
Based on: zero-shot CoT (Kojima et al., 2022)
src/langtorch/methods/chain_of_thought.py:4
↓ 1 callers
Class
Formatters
src/langtorch/grammars/formatters.py:43
↓ 1 callers
Class
IlocIndexer
src/langtorch/tensors/texttensor.py:445
↓ 1 callers
Class
IlocIndexer
src/langtorch/texts/text.py:336
↓ 1 callers
Class
LocIndexer
src/langtorch/tensors/texttensor.py:421
↓ 1 callers
Class
LocIndexer
src/langtorch/texts/text.py:397
↓ 1 callers
Class
OpenAI
src/langtorch/tt/modules/to_tt/activation.py:153
↓ 1 callers
Class
Parsers
src/langtorch/grammars/parsers.py:40
↓ 1 callers
Class
StatusTracker
Stores metadata about the script's progress. Only one instance is created.
src/langtorch/session.py:34
↓ 1 callers
Class
StatusTracker
Stores metadata about the script's progress. Only one instance is created.
src/langtorch/api/parallel_processor_utils.py:33
↓ 1 callers
Class
TextItems
src/langtorch/tensors/texttensor.py:739
↓ 1 callers
Class
Thread
src/langtorch/texts/thread.py:4
Class
AIMessage
src/langtorch/texts/chat.py:32
Class
APIRequestOpenAI
Represents an OpenAI API request.
src/langtorch/api/parallel_processor_utils.py:62
Class
ActivationFunction
src/langtorch/tt/modules/to_tt/activation.py:16
Class
AddTextTensor
TextTensor + TextTensor
src/langtorch/tt/functional.py:68
Class
BackwardActivation
src/langtorch/autograd/backward_activation.py:17
Class
BinaryTextLoss
src/langtorch/tt/modules/to_tt/loss.py:61
Class
ChatML
src/langtorch/texts/chat.py:12
Class
ChatModule
src/langtorch/tt/modules/to_tt/chatmodule.py:5
Class
CoDModule
src/langtorch/methods/chain_of_density.py:4
Class
Code
src/langtorch/texts/code.py:6
Class
CodeModule
src/langtorch/tt/modules/to_tt/codemodule.py:7
Class
CodeTensor
src/langtorch/tensors/codetensor.py:12
Class
CompareAnswersLoss
src/langtorch/tt/modules/to_tt/loss.py:31
Class
Conv1d
src/langtorch/tt/modules/to_tt/conv.py:141
Class
CosineSimilarity
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
Class
DropoutTextTensor
src/langtorch/tt/functional.py:177
Class
EmbeddingModule
src/langtorch/tt/modules/to_t/embedding.py:8
Class
FormatTextTensor
TextModule.format
src/langtorch/tt/functional.py:120
Class
HumanMessage
src/langtorch/texts/chat.py:21
Class
IndexTextTensor
src/langtorch/tt/functional.py:394
Class
JoinTextTensor
src/langtorch/tt/functional.py:279
Class
Linear
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
Class
LossTensor
src/langtorch/tensors/losstensor.py:5
Class
Markdown
src/langtorch/texts/markdown.py:7
Class
MarkdownTensor
src/langtorch/tensors/markdowntensor.py:5
Class
Markup
src/langtorch/texts/markup.py:5
Class
MulTextTensor
src/langtorch/tt/functional.py:92
Class
OpenAIAssistantModule
src/langtorch/tt/modules/to_tt/assistantmodule.py:11
Class
Pad
src/langtorch/tt/functional.py:353
Class
PermuteTextTensor
src/langtorch/tt/functional.py:339
Class
RepeatTextTensor
TextModule.format
src/langtorch/tt/functional.py:245
Class
ReshapeTextTensor
src/langtorch/tt/functional.py:324
Class
SingletonMeta
src/langtorch/session.py:16
Class
SplitTextTensor
src/langtorch/tt/functional.py:226
Class
StackTextTensor
src/langtorch/tt/functional.py:265
Class
Storage
src/langtorch/types.py:16
Class
String
src/langtorch/texts/string.py:4
Class
TODO_LLM
src/langtorch/tt/modules/to_tt/activation.py:164
Class
TODO_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
Class
TextLoss
src/langtorch/tt/modules/to_tt/loss.py:57
Class
TextOptimizer
src/langtorch/optim/optimizer.py:7
Class
TextTensorFunction
src/langtorch/tt/functional.py:146
Class
TextToTensor
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
Class
TextToText
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
Class
TextualGradientDescent
src/langtorch/optim/optimizer.py:71
Class
Tokenizer
src/langtorch/tt/modules/to_t/tokenizer.py:8
Class
TransformersCausalLM
src/langtorch/tt/modules/to_tt/transformers.py:7
Class
XML
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