Views
No views yet

1from vllm import LLM, SamplingParams
2
3sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
4
5llm = LLM(model="lightblue/suzume-llama-3-8B-japanese")
6
7prompts = [
8 "東京のおすすめの観光スポットを教えて下さい",
9]
10
11outputs = llm.generate(prompts, sampling_params)
12
13for output in outputs:
14 prompt = output.prompt
15 generated_text = output.outputs[0].text
16 print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
| lightblue/suzume-llama-3-8B-japanese | lightblue/suzume-llama-3-8B-multilingual | Nexusflow/Starling-LM-7B-beta | gpt-3.5-turbo | |
|---|---|---|---|---|
| Japanese 🇯🇵 | 6.24 | 6.56 | 6.22 | 7.84 |
lightblue/suzume-llama-3-8B-japanese are due to the difference in system message of the two evaluation harnesses. The former's system message is in Japanese while the latter's is in English.gpt-4-0125-preview0.4.01base_model: meta-llama/Meta-Llama-3-8B-Instruct
2model_type: LlamaForCausalLM
3tokenizer_type: AutoTokenizer # PreTrainedTokenizerFast
4
5load_in_8bit: false
6load_in_4bit: false
7strict: false
8
9datasets:
10 - path: /workspace/llm_training/axolotl/llama3-ja/openchat_megagon_lbgpt4_ja.json
11 ds_type: json # see other options below
12 type: sharegpt
13 conversation: llama-3
14dataset_prepared_path: /workspace/llm_training/axolotl/llama3-ja/prepared_openchat_megagon_lbgpt4_ja
15val_set_size: 0.01
16output_dir: /workspace/llm_training/axolotl/llama3-ja/output_openchat_megagon_lbgpt4_ja_8B_instruct
17
18sequence_len: 8192
19sample_packing: true
20pad_to_sequence_len: true
21eval_sample_packing: False
22
23use_wandb: true
24wandb_project: axolotl
25wandb_entity: peterd
26wandb_name: openchat_megagon_lbgpt4_ja_8B_instruct
27
28gradient_accumulation_steps: 2
29micro_batch_size: 2
30num_epochs: 1
31optimizer: paged_adamw_8bit
32lr_scheduler: cosine
33learning_rate: 1e-5
34
35train_on_inputs: false
36group_by_length: false
37bf16: auto
38fp16:
39tf32: false
40
41gradient_checkpointing: true
42gradient_checkpointing_kwargs:
43 use_reentrant: false
44early_stopping_patience:
45resume_from_checkpoint:
46logging_steps: 1
47xformers_attention:
48flash_attention: true
49
50warmup_steps: 10
51evals_per_epoch: 5
52eval_table_size:
53saves_per_epoch: 1
54debug:
55deepspeed: /workspace/axolotl/deepspeed_configs/zero2.json
56weight_decay: 0.0
57special_tokens:
58 pad_token: <|end_of_text|>| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.303 | 0.08 | 1 | 1.2664 |
| 1.4231 | 0.23 | 3 | 1.2409 |
| 1.1007 | 0.46 | 6 | 1.0264 |
| 1.0635 | 0.69 | 9 | 1.0154 |
| 1.0221 | 0.92 | 12 | 0.9555 |
1@article{devine2024tagengo,
2 title={Tagengo: A Multilingual Chat Dataset},
3 author={Devine, Peter},
4 journal={arXiv preprint arXiv:2405.12612},
5 year={2024}
6}