Text Generation
Transformers
Safetensors
English
mistral
instruct
finetune
chatml
gpt4
synthetic data
distillation
text-generation-inference
Instructions to use NovusResearch/Novus-7b-tr_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NovusResearch/Novus-7b-tr_v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NovusResearch/Novus-7b-tr_v1", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NovusResearch/Novus-7b-tr_v1") model = AutoModelForCausalLM.from_pretrained("NovusResearch/Novus-7b-tr_v1", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NovusResearch/Novus-7b-tr_v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NovusResearch/Novus-7b-tr_v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NovusResearch/Novus-7b-tr_v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NovusResearch/Novus-7b-tr_v1
- SGLang
How to use NovusResearch/Novus-7b-tr_v1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "NovusResearch/Novus-7b-tr_v1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NovusResearch/Novus-7b-tr_v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "NovusResearch/Novus-7b-tr_v1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NovusResearch/Novus-7b-tr_v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NovusResearch/Novus-7b-tr_v1 with Docker Model Runner:
docker model run hf.co/NovusResearch/Novus-7b-tr_v1
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
-
license:
|
| 5 |
tags:
|
| 6 |
- mistral
|
| 7 |
- instruct
|
|
@@ -10,102 +10,10 @@ tags:
|
|
| 10 |
- gpt4
|
| 11 |
- synthetic data
|
| 12 |
- distillation
|
| 13 |
-
base_model:
|
| 14 |
model-index:
|
| 15 |
-
- name:
|
| 16 |
results: []
|
| 17 |
---
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-

|
| 23 |
-
|
| 24 |
-
This model is a full fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on diverse Turkish datasets.
|
| 25 |
-
|
| 26 |
-
The model is fully finetuned on translated datasets using [axolotl](https://github.com/OpenAccess-AI-Collective/axolotl). These datasets primarily consist of translated versions sourced from [teknium/OpenHermes-2.5](https://huggingface.co/datasets/teknium/OpenHermes-2.5) and the [Open-Orca/SlimOrca datasets](https://huggingface.co/datasets/Open-Orca/SlimOrca).
|
| 27 |
-
|
| 28 |
-
<details><summary>See axolotl config</summary>
|
| 29 |
-
|
| 30 |
-
axolotl version: `0.4.0`
|
| 31 |
-
```yaml
|
| 32 |
-
base_model: mistralai/Mistral-7B-v0.1
|
| 33 |
-
model_type: MistralForCausalLM
|
| 34 |
-
tokenizer_type: LlamaTokenizer
|
| 35 |
-
|
| 36 |
-
load_in_8bit: false
|
| 37 |
-
load_in_4bit: false
|
| 38 |
-
strict: false
|
| 39 |
-
|
| 40 |
-
datasets:
|
| 41 |
-
- path: NovusResearch/OpenHermes-2.5-Translated-TR-sharegpt-style
|
| 42 |
-
type: sharegpt
|
| 43 |
-
conversation: chatml
|
| 44 |
-
- path: data/merged_all.json
|
| 45 |
-
ds_type: json
|
| 46 |
-
type: sharegpt
|
| 47 |
-
conversation: chatml
|
| 48 |
-
|
| 49 |
-
dataset_prepared_path:
|
| 50 |
-
val_set_size: 0.05
|
| 51 |
-
output_dir: ./out
|
| 52 |
-
|
| 53 |
-
sequence_len: 8192
|
| 54 |
-
sample_packing: true
|
| 55 |
-
pad_to_sequence_len: true
|
| 56 |
-
eval_sample_packing: false
|
| 57 |
-
|
| 58 |
-
wandb_project:
|
| 59 |
-
wandb_entity:
|
| 60 |
-
wandb_watch:
|
| 61 |
-
wandb_name:
|
| 62 |
-
wandb_log_model:
|
| 63 |
-
|
| 64 |
-
gradient_accumulation_steps: 4
|
| 65 |
-
micro_batch_size: 2
|
| 66 |
-
num_epochs: 2
|
| 67 |
-
optimizer: adamw_bnb_8bit
|
| 68 |
-
lr_scheduler: cosine
|
| 69 |
-
learning_rate: 0.000005
|
| 70 |
-
|
| 71 |
-
train_on_inputs: false
|
| 72 |
-
group_by_length: false
|
| 73 |
-
bf16: auto
|
| 74 |
-
fp16:
|
| 75 |
-
tf32: false
|
| 76 |
-
|
| 77 |
-
gradient_checkpointing: true
|
| 78 |
-
early_stopping_patience:
|
| 79 |
-
resume_from_checkpoint:
|
| 80 |
-
local_rank:
|
| 81 |
-
logging_steps: 1
|
| 82 |
-
xformers_attention:
|
| 83 |
-
flash_attention: true
|
| 84 |
-
|
| 85 |
-
## Use
|
| 86 |
-
wandb_project: full_finetune
|
| 87 |
-
wandb_entity:
|
| 88 |
-
wandb_watch:
|
| 89 |
-
wandb_name:
|
| 90 |
-
wandb_log_model:
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
warmup_steps: 10
|
| 94 |
-
evals_per_epoch: 0
|
| 95 |
-
eval_table_size:
|
| 96 |
-
eval_max_new_tokens: 128
|
| 97 |
-
saves_per_epoch: 1
|
| 98 |
-
debug:
|
| 99 |
-
deepspeed:
|
| 100 |
-
weight_decay: 0.0
|
| 101 |
-
fsdp:
|
| 102 |
-
fsdp_config:
|
| 103 |
-
special_tokens:
|
| 104 |
-
bos_token: "<s>"
|
| 105 |
-
eos_token: "<|im_end|>"
|
| 106 |
-
unk_token: "<unk>"
|
| 107 |
-
tokens:
|
| 108 |
-
- "<|im_start|>"
|
| 109 |
-
|
| 110 |
-
```
|
| 111 |
-
</details><br>
|
|
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
+
license: cc-by-nc-4.0
|
| 5 |
tags:
|
| 6 |
- mistral
|
| 7 |
- instruct
|
|
|
|
| 10 |
- gpt4
|
| 11 |
- synthetic data
|
| 12 |
- distillation
|
| 13 |
+
base_model: mlabonne/NeuralDaredevil-7B
|
| 14 |
model-index:
|
| 15 |
+
- name: Novus-7b-tr_v1
|
| 16 |
results: []
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# Novus-7b-tr_v1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|