```
from transformers import LlamaForCausalLM, LlamaTokenizer

tokenizer = LlamaTokenizer.from_pretrained("Borjan/mken_wiki_test")
model = LlamaForCausalLM.from_pretrained("Borjan/mken_wiki_test")

prompt = "Вештачка невронска мрежа"
inputs = tokenizer(prompt, return_tensors="pt")

generate_ids = model.generate(
    inputs.input_ids,
    attention_mask=inputs.attention_mask,
    max_length=60,
    temperature=0.3,
    top_p = 0.8,
    repetition_penalty=1.5,
    pad_token_id=model.config.eos_token_id,
    do_sample=True,
    _from_model_config=False
)

decoded_text = tokenizer.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]

print(decoded_text)
```

```
from transformers import pipeline

generator = pipeline("text-generation", model="Borjan/mken_wiki_test", tokenizer="Borjan/mken_wiki_test")
prompt = "Скопје — главен и најголем град во"

generated_text = generator(prompt, max_length=60, temperature=0.3, top_p=0.8, do_sample=True, pad_token_id=2)[0]['generated_text']
print(generated_text)
```
{}
transformers pytorch llama text-generation autotrain_compatible endpoints_compatible text-generation-inference region:us