
### Introduction

These repository consist of LaMini-GPT-774M 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. 

**Update: Tokenizer added**

### 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/LaMini-GPT-774M-19000-steps-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 safetensors gpt2 text-generation pl dataset:databricks/databricks-dolly-15k dataset:s3nh/alpaca-dolly-instruction-only-polish license:openrail autotrain_compatible endpoints_compatible text-generation-inference region:us
TAGS
#transformers #pytorch #safetensors #gpt2 #text-generation #pl #dataset-databricks/databricks-dolly-15k #dataset-s3nh/alpaca-dolly-instruction-only-polish #license-openrail #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 


### Introduction

These repository consist of LaMini-GPT-774M 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. 

Update: Tokenizer added

### Evaluation part




### Introduction

These repository consist of LaMini-GPT-774M 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. 

Update: Tokenizer added ### Evaluation part
TAGS
#transformers #pytorch #safetensors #gpt2 #text-generation #pl #dataset-databricks/databricks-dolly-15k #dataset-s3nh/alpaca-dolly-instruction-only-polish #license-openrail #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 
 ### Introduction

These repository consist of LaMini-GPT-774M 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. 

Update: Tokenizer added ### Evaluation part
TAGS
#transformers #pytorch #safetensors #gpt2 #text-generation #pl #dataset-databricks/databricks-dolly-15k #dataset-s3nh/alpaca-dolly-instruction-only-polish #license-openrail #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 
### Introduction

These repository consist of LaMini-GPT-774M 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. 

Update: Tokenizer added### Evaluation part