Views
No views yet
nixietune.qgen.generate recipe.nixie-querygen-v3 on existing pairs, and then expand your document corpus with synthetic queries (which are still based on your few real ones). See nixietune.querygen recipe.### Instruction:
Write a short query which can be used to search a given document:
### Input:
{document text}
### Response:
[short|medium|long]? [question|regular]? query:[short|medium|long] and [question|regular] fragments are optional and can be skipped.1$ cat input.txt
2### Instruction:
3Write a short query which can be used to search a given document:
4
5### Input:
6Google’s greenhouse gas emissions have surged 48 percent in the past five years due to the expansion of its data centers that underpin artificial intelligence systems, leaving its commitment to get to “net zero” by 2030 in doubt. The Silicon Valley company’s pollution amounted to 14.3 million tonnes of carbon equivalent in 2023, a 48 percent increase from its 2019 baseline and a 13 percent rise since last year, Google said in its annual environmental report on Tuesday. Google said the jump highlighted “the challenge of reducing emissions” at the same time as it invests in the build-out of large language models and their associated applications and infrastructure, admitting that “the future environmental impact of AI” was “complex and difficult to predict.”
7
8### Response:
9short query:
10
11$ ./llama-cli -m ~/models/nixie-querygen-v3/nixie-querygen-v3-q4.gguf -f input.txt -s 1
12
13system_info: n_threads = 16 / 32 | AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | FMA = 1 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 0 |
14sampling:
15 repeat_last_n = 64, repeat_penalty = 1.000, frequency_penalty = 0.000, presence_penalty = 0.000
16 top_k = 40, tfs_z = 1.000, top_p = 0.950, min_p = 0.050, typical_p = 1.000, temp = 0.800
17 mirostat = 0, mirostat_lr = 0.100, mirostat_ent = 5.000
18sampling order:
19CFG -> Penalties -> top_k -> tfs_z -> typical_p -> top_p -> min_p -> temperature
20generate: n_ctx = 32768, n_batch = 2048, n_predict = 128, n_keep = 1
21
22
23### Instruction:
24Write a short query which can be used to search a given document:
25
26### Input:
27Google’s greenhouse gas emissions have surged 48 percent in the past five years due to the expansion of its data centers that underpin artificial intelligence systems, leaving its commitment to get to “net zero” by 2030 in doubt.
28The Silicon Valley company’s pollution amounted to 14.3 million tonnes of carbon equivalent in 2023, a 48 percent increase from its 2019 baseline and a 13 percent rise since last year, Google said in its annual environmental report on Tuesday.
29Google said the jump highlighted “the challenge of reducing emissions” at the same time as it invests in the build-out of large language models and their associated applications and infrastructure, admitting that “the future environmental impact of AI” was “complex and difficult to predict.”
30
31### Response:
32short query: google carbon footprint [end of text]
33
34llama_print_timings: load time = 4497.53 ms
35llama_print_timings: sample time = 0.21 ms / 5 runs ( 0.04 ms per token, 23584.91 tokens per second)
36llama_print_timings: prompt eval time = 4006.12 ms / 209 tokens ( 19.17 ms per token, 52.17 tokens per second)
37llama_print_timings: eval time = 829.37 ms / 4 runs ( 207.34 ms per token, 4.82 tokens per second)
38llama_print_timings: total time = 4839.50 ms / 213 tokens```1from transformers import pipeline
2import torch
3
4generator = pipeline(task="text-generation", model='<path>', torch_dtype=torch.bfloat16, device_map="auto")
5prompt = "### Instruction:\nWrite a short query which can be used to search a given document:\n\n### Input:\n<doc>\n\n### Response:\nshort query:"
6result = generator(prompt, return_full_text=True, max_new_tokens=32, num_return_sequences=1)0.4.11base_model: mistralai/Mistral-7B-v0.3
2model_type: MistralForCausalLM
3tokenizer_type: LlamaTokenizer
4
5load_in_8bit: false
6load_in_4bit: true
7strict: false
8val_set_size: 0.001
9datasets:
10 - path: json
11 split: train
12 type: alpaca
13 data_files:
14 - /home/shutty/data/querygen/alpaca.json
15
16dataset_prepared_path: last_run_prepared
17output_dir: ./outputs/qlora-out
18
19adapter: qlora
20lora_model_dir:
21
22sequence_len: 512
23sample_packing: false
24pad_to_sequence_len: true
25
26lora_r: 32
27lora_alpha: 16
28lora_dropout: 0.05
29lora_target_modules:
30lora_target_linear: true
31lora_fan_in_fan_out:
32
33wandb_project:
34wandb_entity:
35wandb_watch:
36wandb_name:
37wandb_log_model:
38
39gradient_accumulation_steps: 1
40micro_batch_size: 40
41num_epochs: 1
42optimizer: adamw_torch
43lr_scheduler: cosine
44learning_rate: 0.00001
45
46train_on_inputs: false
47group_by_length: false
48bf16: auto
49fp16:
50tf32: false
51
52gradient_checkpointing: true
53gradient_checkpointing_kwargs:
54 use_reentrant: true
55early_stopping_patience:
56resume_from_checkpoint:
57local_rank:
58xformers_attention:
59flash_attention: true
60
61logging_steps: 10
62warmup_steps: 10
63evals_per_epoch: 10
64eval_table_size:
65saves_per_epoch: 1
66debug:
67deepspeed:
68weight_decay: 0.0
69fsdp:
70 - full_shard
71 - auto_wrap
72fsdp_config:
73 fsdp_limit_all_gathers: true
74 fsdp_sync_module_states: true
75 fsdp_offload_params: false
76 fsdp_use_orig_params: false
77 fsdp_cpu_ram_efficient_loading: false
78 fsdp_transformer_layer_cls_to_wrap: MistralDecoderLayer
79 fsdp_state_dict_type: FULL_STATE_DICT
80 fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
81special_tokens:
82# torch_compile: true
83# chat_template: chatml| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0.0000 | 1 | 2.8685 |
| 1.3256 | 0.1000 | 5581 | 1.4044 |
| 1.3539 | 0.2000 | 11162 | 1.3793 |
| 1.3409 | 0.3000 | 16743 | 1.3659 |
| 1.3781 | 0.4000 | 22324 | 1.3552 |
| 1.3909 | 0.5000 | 27905 | 1.3470 |
| 1.4037 | 0.6000 | 33486 | 1.3423 |
| 1.3573 | 0.7000 | 39067 | 1.3383 |
| 1.3088 | 0.8000 | 44648 | 1.3366 |
| 1.3243 | 0.9000 | 50229 | 1.3357 |