Skip to content
Snippets Groups Projects
Commit be7f82c0 authored by Grießhaber Daniel's avatar Grießhaber Daniel :squid:
Browse files

use corrext wandb entity

parent 4fa8266f
No related branches found
No related tags found
1 merge request!9Hf usage
......@@ -498,6 +498,22 @@ class HfChat(ChatModel, LLMModel):
import torch
import transformers
class UsageGenerationPipeline(transformers.TextGenerationPipeline):
pass
# def run_single(
# self, inputs, preprocess_params, forward_params, postprocess_params
# ):
# model_inputs = self.preprocess(inputs, **preprocess_params)
# print(model_inputs["input_ids"].shape)
# model_outputs = self.forward(model_inputs, **forward_params)
# print(type(model_outputs), model_outputs)
# outputs = self.postprocess(model_outputs, **postprocess_params)
# return outputs
# transformers.pipelines.SUPPORTED_TASKS["text-generation"][
# "impl"
# ] = UsageGenerationPipeline
self._model_name = model
# we collect all arguments to make sure they are passed to the super constructor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment