
### Introduction

These repository consist of Eleuther-AI/gpt-neo-125M finetuned to Polish language on translated alpaca-dolly dataset.
Main task is to perform accurate answers to instruction asked. 

Below you can find an instruction of how to infer with that model. 
These repository does not contain an tokenizer object, at the moment (#TODO).


### Evaluation part



```python


import pandas as pd
import torch
from torch.utils.data import AutTokenizer
from typing import List, Dict, Union
from typing import Any, TypeVar

import pandas as pd
import pickle 

MODEL_NAME: str = 'Lajonbot/gpt-neo-125m-EleutherAI-Instruct-10000steps-polish'
  
  
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
model = AutoModelForCasualLM.from_pretrained(MODEL_NAME).cuda()
#Resize model  for tokenizer size 
n_tokens: int = len(tokenizer)
model.resize_token_embeddings(n_tokens)


def _generate_prompt(instruction, input=None):
    if input:
        return f"""Poniżej znajduje się instrukcja opisująca zadanie, połączona z danymi wejściowymi, które zapewniają dalszy konktekst. Napisz odpowiedź, która odpowiednio odpowie na pytanie.
### Instruction:
{instruction}
### Input:
{input}
### Response:"""

manual_instruction: str = "Napisz mi proszę jakie są rodzaje telefonów komórkowych"
manual_input: str = "Telefony komórkowe, w przeciwieństwie do np. satelitarnych, charakteryzuje to, że działają w obrębie naziemnych fal radiowych w technologii GSM (i w różnych jej wariantach: 3G, 4G czy niebawem 5G). Zasadniczo można jednak wyróżnić wiele ich rodzajów i podzielić je na różne kryteria. I tak, ze względu na rodzaj obudowy, można mówić o telefonach jednobryłowych, rozsuwanych, obrotowych czy też z klapką. Obecnie jednak najbardziej popularne i – ze względu na posiadane parametry – najlepsze telefony komórkowe to smartfony dotykowe."

print(f"Valueation for {manual_instruction} \n\n\n  {manual_input}\n\n")
evaluate(instruction = manual_instruction, 
         input = manual_input)  

```
{"language": ["pl"], "license": "openrail", "datasets": ["databricks/databricks-dolly-15k", "s3nh/alpaca-dolly-instruction-only-polish"]}
transformers pytorch gpt_neo text-generation pl dataset:databricks/databricks-dolly-15k dataset:s3nh/alpaca-dolly-instruction-only-polish license:openrail autotrain_compatible endpoints_compatible region:us
TAGS
#transformers #pytorch #gpt_neo #text-generation #pl #dataset-databricks/databricks-dolly-15k #dataset-s3nh/alpaca-dolly-instruction-only-polish #license-openrail #autotrain_compatible #endpoints_compatible #region-us 


### Introduction

These repository consist of Eleuther-AI/gpt-neo-125M finetuned to Polish language on translated alpaca-dolly dataset.
Main task is to perform accurate answers to instruction asked. 

Below you can find an instruction of how to infer with that model. 
These repository does not contain an tokenizer object, at the moment (#TODO).


### Evaluation part




### Introduction

These repository consist of Eleuther-AI/gpt-neo-125M finetuned to Polish language on translated alpaca-dolly dataset.
Main task is to perform accurate answers to instruction asked. 

Below you can find an instruction of how to infer with that model. 
These repository does not contain an tokenizer object, at the moment (#TODO). ### Evaluation part
TAGS
#transformers #pytorch #gpt_neo #text-generation #pl #dataset-databricks/databricks-dolly-15k #dataset-s3nh/alpaca-dolly-instruction-only-polish #license-openrail #autotrain_compatible #endpoints_compatible #region-us 
 ### Introduction

These repository consist of Eleuther-AI/gpt-neo-125M finetuned to Polish language on translated alpaca-dolly dataset.
Main task is to perform accurate answers to instruction asked. 

Below you can find an instruction of how to infer with that model. 
These repository does not contain an tokenizer object, at the moment (#TODO). ### Evaluation part
TAGS
#transformers #pytorch #gpt_neo #text-generation #pl #dataset-databricks/databricks-dolly-15k #dataset-s3nh/alpaca-dolly-instruction-only-polish #license-openrail #autotrain_compatible #endpoints_compatible #region-us 
### Introduction

These repository consist of Eleuther-AI/gpt-neo-125M finetuned to Polish language on translated alpaca-dolly dataset.
Main task is to perform accurate answers to instruction asked. 

Below you can find an instruction of how to infer with that model. 
These repository does not contain an tokenizer object, at the moment (#TODO).### Evaluation part