Views
No views yet
1uv venv # create a new virtual environment
2source .venv/bin/activate # activate the virtual environment
3uv pip install -e ".[gpu]" # install the dependencies (gpu)... if you want to install the dependencies (cpu), use ".[cpu]" insteadclear & uv run Tests/TestInference.py12025-06-11 10:33:45,024 - sonar_pipeline - INFO - Initializing pipeline with config: PipelineConfig(device='cuda', dtype=torch.float32, language='eng_Latn', verbose=True, sequential=False)
22025-06-11 10:33:45,024 - sonar_pipeline - INFO - Initialized TextToEmbeddingPipeline
32025-06-11 10:33:45,024 - sonar_pipeline - INFO - Initializing pipeline with config: PipelineConfig(device='cuda', dtype=torch.float32, language='eng_Latn', verbose=True, sequential=False)
42025-06-11 10:33:45,024 - sonar_pipeline - INFO - Initialized EmbeddingToTextPipeline
52025-06-11 10:33:45,024 - sonar_pipeline - INFO - Encoding sentences: ['[[Start of Text.]]']
62025-06-11 10:33:49,761 - sonar_pipeline - INFO - Generated embeddings with shape: 1, dtype: <class 'list'>
72025-06-11 10:33:49,762 - sonar_pipeline - INFO - Encoding sentences: ["Japan's long history is divided into many distinct periods, each contributing to the country and culture in their own way."]
82025-06-11 10:33:54,516 - sonar_pipeline - INFO - Generated embeddings with shape: 1, dtype: <class 'list'>
92025-06-11 10:33:54,517 - sonar_pipeline - INFO - Encoding sentences: ['The Sengoku era was a period of great conflict in Japan.']
102025-06-11 10:33:59,197 - sonar_pipeline - INFO - Generated embeddings with shape: 1, dtype: <class 'list'>
112025-06-11 10:33:59,197 - sonar_pipeline - INFO - Encoding sentences: ['Many clans and their samurai from all over Japan fought in that time.']
122025-06-11 10:34:03,938 - sonar_pipeline - INFO - Generated embeddings with shape: 1, dtype: <class 'list'>
132025-06-11 10:34:03,938 - sonar_pipeline - INFO - Encoding sentences: ['The fighting lasted for many decades, but it was ultimately brought to an end in the unification of Japan.']
142025-06-11 10:34:08,648 - sonar_pipeline - INFO - Generated embeddings with shape: 1, dtype: <class 'list'>
152025-06-11 10:34:08,648 - sonar_pipeline - INFO - Encoding sentences: ['It was followed by a period of peace and cultural growth.']
162025-06-11 10:34:13,346 - sonar_pipeline - INFO - Generated embeddings with shape: 1, dtype: <class 'list'>
172025-06-11 10:34:13,346 - sonar_pipeline - INFO - Encoding sentences: ['This period was known as the Edo period.']
182025-06-11 10:34:18,004 - sonar_pipeline - INFO - Generated embeddings with shape: 1, dtype: <class 'list'>
192025-06-11 10:34:18,005 - sonar_pipeline - INFO - Encoding sentences: ['This period brought forward many new forms of art and culture.']
202025-06-11 10:34:22,635 - sonar_pipeline - INFO - Generated embeddings with shape: 1, dtype: <class 'list'>
212025-06-11 10:34:22,635 - sonar_pipeline - INFO - Encoding sentences: ['These include forms such as ukiyo-e woodblock paintings, kabuki theater, and haiku poetry.']
222025-06-11 10:34:27,380 - sonar_pipeline - INFO - Generated embeddings with shape: 1, dtype: <class 'list'>
232025-06-11 10:34:27,380 - sonar_pipeline - INFO - Encoding sentences: ['The impacts of the Edo period are large and still felt in the present day cultural landscape.']
242025-06-11 10:34:32,156 - sonar_pipeline - INFO - Generated embeddings with shape: 1, dtype: <class 'list'>
25→ Context shape: torch.Size([1, 10, 1024]), dtype: torch.float32
26[DEBUG - model] labels is None, likely being used for inference. Returning predictied embeddings - shape=torch.Size([1, 10, 1024]), dtype=torch.float32
272025-06-11 10:34:32,892 - sonar_pipeline - INFO - Decoding embedding with shape: torch.Size([1, 1024]), dtype: torch.float32
282025-06-11 10:34:38,902 - sonar_pipeline - INFO - Decoded text: ['He is the founder, chairman, and chief executive officer (CEO) of the company. He is also the founder and chairman of the company.']
29Step 0 model next-token guess: He is the founder, chairman, and chief executive officer (CEO) of the company. He is also the founder and chairman of the company.
302025-06-11 10:34:38,902 - sonar_pipeline - INFO - Decoding embedding with shape: torch.Size([1, 1024]), dtype: torch.float32
312025-06-11 10:34:44,496 - sonar_pipeline - INFO - Decoded text: ['It\'s called the "City of Dreams".']
32Step 1 model next-token guess: It's called the "City of Dreams".
332025-06-11 10:34:44,496 - sonar_pipeline - INFO - Decoding embedding with shape: torch.Size([1, 1024]), dtype: torch.float32
342025-06-11 10:34:50,317 - sonar_pipeline - INFO - Decoded text: ['The history of Japan, the history of China, the history of Japan, the history of Japan, the history of Japan, the history of Japan.']
35Step 2 model next-token guess: The history of Japan, the history of China, the history of Japan, the history of Japan, the history of Japan, the history of Japan.
362025-06-11 10:34:50,317 - sonar_pipeline - INFO - Decoding embedding with shape: torch.Size([1, 1024]), dtype: torch.float32
372025-06-11 10:34:56,090 - sonar_pipeline - INFO - Decoded text: ['The history of the Japanese empire can be traced back to the period of the Qing Dynasty.']
38Step 3 model next-token guess: The history of the Japanese empire can be traced back to the period of the Qing Dynasty.
392025-06-11 10:34:56,090 - sonar_pipeline - INFO - Decoding embedding with shape: torch.Size([1, 1024]), dtype: torch.float32
402025-06-11 10:35:01,780 - sonar_pipeline - INFO - Decoded text: ['The history of the state of Hokkaido dates back to the first century.']
41Step 4 model next-token guess: The history of the state of Hokkaido dates back to the first century.
422025-06-11 10:35:01,780 - sonar_pipeline - INFO - Decoding embedding with shape: torch.Size([1, 1024]), dtype: torch.float32
432025-06-11 10:35:07,581 - sonar_pipeline - INFO - Decoded text: ['The history of Japan, the history of Japan, the history of Japan, the history of Japan.']
44Step 5 model next-token guess: The history of Japan, the history of Japan, the history of Japan, the history of Japan.
452025-06-11 10:35:07,581 - sonar_pipeline - INFO - Decoding embedding with shape: torch.Size([1, 1024]), dtype: torch.float32
462025-06-11 10:35:13,248 - sonar_pipeline - INFO - Decoded text: ['It was a time of great turmoil in the history of mankind.']
47Step 6 model next-token guess: It was a time of great turmoil in the history of mankind.
482025-06-11 10:35:13,249 - sonar_pipeline - INFO - Decoding embedding with shape: torch.Size([1, 1024]), dtype: torch.float32
492025-06-11 10:35:18,926 - sonar_pipeline - INFO - Decoded text: ['The history of the state of Hokkaido dates back to the first century.']
50Step 7 model next-token guess: The history of the state of Hokkaido dates back to the first century.
512025-06-11 10:35:18,926 - sonar_pipeline - INFO - Decoding embedding with shape: torch.Size([1, 1024]), dtype: torch.float32
522025-06-11 10:35:24,766 - sonar_pipeline - INFO - Decoded text: ['The history of the state of Hokkaido dates back to the early 19th century.']
53Step 8 model next-token guess: The history of the state of Hokkaido dates back to the early 19th century.
542025-06-11 10:35:24,766 - sonar_pipeline - INFO - Decoding embedding with shape: torch.Size([1, 1024]), dtype: torch.float32
552025-06-11 10:35:30,462 - sonar_pipeline - INFO - Decoded text: ['It was a time of great change in the history of Japan.']
56Step 9 model next-token guess: It was a time of great change in the history of Japan.
57[1]+ Done clear0 - [[Start of Text.]] -> He is the founder, chairman, and chief executive officer (CEO) of the company. He is also the founder and chairman of the company.1 - Japan's long history is divided into many distinct periods, each contributing to the country and culture in their own way. -> It's called the "City of Dreams".2 - The Sengoku era was a period of great conflict in Japan. -> The history of Japan, the history of China, the history of Japan, the history of Japan, the history of Japan, the history of Japan.3 - Many clans and their samurai fought in that time. -> The history of the Japanese empire can be traced back to the period of the Qing Dynasty.4 - The fighting lasted for many decades, but it was ultimately brought to an end in the unification of Japan. -> The history of the state of Hokkaido dates back to the first century.5 - It was followed by a period of peace and cultural growth. -> The history of Japan, the history of Japan, the history of Japan, the history of Japan.6 - This period was known as the Edo period. -> It was a time of great turmoil in the history of mankind.7 - This period brought forward many new forms of art and culture. -> The history of the state of Hokkaido dates back to the first century.8 - These include forms such as ukiyo-e woodblock paintings, kabuki theater, and haiku poetry. -> The history of the state of Hokkaido dates back to the early 19th century.9 - The impacts of the Edo period are large and still felt in the present day cultural landscape. -> It was a time of great change in the history of Japan.
clear & uv run --extra gpu -m src.LexaLCM.Main --dry-run --verboseclear & uv run --extra gpu -m src.LexaLCM.Main -vclear & uv run --extra gpu pytest Tests/TestModel.pyclear & uv run --extra gpu pytest Tests/TestData.py[[Start of text.]][[End of text.]]clear & uv run --extra data src/Scripts/Data/ConvertMetaParquet.py -i src/_TEMP/DirtyDatasets/ -o src/LexaLCM/Content/Datasets/ -n wikipedia_data_50k-i is the path to the directory with the dataset-o is the path to the directory to save the converted dataset-n is the name of the datasetsrc/_TEMP/DirtyDatasets/. The converted dataset will be saved in the directory src/LexaLCM/Content/Datasets/ (the default dataset directory for the LexaLCM).uv run --extra data src/Scripts/Data/VerifyEmbeddings.py -d is the path to the parquet filesclear & uv run --extra data src/Scripts/Data/VerifyEmbeddings.py -d src/LexaLCM/Content/Datasets/Wikipedia_Jauv run --extra data src/Scripts/Data/ConvertMetaParquet.py-d is the path to the parquet filesuv run --extra data src/Scripts/Data/VisualizeDataset.py -d is the path to the parquet files-s is if the dataset is sampled or if all the files are used (sample=True samples 10% of the files)-b is the batch size for the evaluation process (default is 10)clear & uv run --extra data src/Scripts/Data/VisualizeDataset.py -b 20 -d src/LexaLCM/Content/Datasets/Wikipedia_Jaclear & uv run --extra gpu src/LexaLCM/LCM/Utils/BootstrapLCM.py