|
Download README.md from silvercoder45/Mistral-7b-instruct-v0.2-summ-dpo-e2: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/silvercoder45/Mistral-7b-instruct-v0.2-summ-dpo-e2/resolve/main/README.md
- Command line
-
hf download hf://silvercoder45/Mistral-7b-instruct-v0.2-summ-dpo-e2/README.md
-
curl -L -o README.md https://huggingface.co/silvercoder45/Mistral-7b-instruct-v0.2-summ-dpo-e2/resolve/main/README.md
585 Bytes
| license: cc-by-nc-4.0 | |
| Description to load and test will be added soon. More details on training and data will be added aswell. | |
| ### **Loading the Model** | |
| Use the following Python code to load the model: | |
| ```python | |
| import torch | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| TBD | |
| ``` | |
| ### **Generating Text** | |
| To generate text, use the following Python code: | |
| ```python | |
| text = "Hi, my name is " | |
| inputs = tokenizer(text, return_tensors="pt") | |
| outputs = model.generate(**inputs, max_new_tokens=64) | |
| print(tokenizer.decode(outputs[0], skip_special_tokens=True)) | |
| ``` |