Projects

Dockerized WordPress on a Raspberry Pi

This blog runs on a a Raspberry Pi since 9th April 2019 and surprisingly the Pi performs quiete well. WordPress on itself does not need too many ressources for my use case since i don’t have hundreds of visitors per day, leaving capcaity for other applications.

The current setup includes an out of the box docker-compose and a backup script which uploads files to the dropbox cloud storage. In this series i would like to give you a short introduction how my setup works and how you could set it up by yourself.

Recent Posts

WSL 2 on Windows 10 – Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS

WSL 2 on Windows 10 – Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS

Hung Manh Oct 22, 2022 2 min read

Once upon a time i installed WSL 2 on Windows 10 correctly, run it and also worked with it. However, i was messing around with BlueStack, an android emulator which uses hyper-V. After configuring all the gears to make it…

Training languagemodel – RuntimeError the expanded size of the tensor (100) must match the existing size (64) at non singleton dimension 1.

Training languagemodel – RuntimeError the expanded size of the tensor (100) must match the existing size (64) at non singleton dimension 1.

Hung Manh Jul 4, 2022 1 min read

Context I trained a new languagemodel from scratch using huggingface’ framework and a preconfiguration of Roberta Model on a custom dataset. Now i wanted to vectorize a new dataset using the pretrained model. Observation I receive an error: Resolution This…

SentenceTransformer – float object is not subscriptable

SentenceTransformer – float object is not subscriptable

Hung Manh Jun 1, 2022 2 min read

TLDR: np.nan objects are of type float Observation I was trying to apply the SentenceTransformer (v2.2.0) on a list of custom documents to create embeddings for each of them, however i would get the error “TypeError: ‘float’ object is not…

Visual Explanation of Multi Head Attention

Visual Explanation of Multi Head Attention

Hung Manh May 28, 2022 5 min read

Why does changing the number of heads not change the number of parameters in the model? – In this post i want to present a short visual example of how changing attention heads impact the model architecture.

How to evaluate the Transformer Trainer

How to evaluate the Transformer Trainer

Hung Manh May 4, 2022 2 min read

If you initialized a Trainer object, it will do the training boiler plate for you. Using the TrainingArguments, you can additionally customize your training process. One important argument is the evaluation_strategy which is set to “no” by default, thus no…

Difference between the Tokenizer and the PreTrainedTokenizer class

Difference between the Tokenizer and the PreTrainedTokenizer class

Hung Manh Mar 17, 2022 4 min read

The Tokenizer and PreTrainedTokenizer classes perform different roles. The Tokenizer is a pipeline and defines the actual tokenization, while the PreTrainedTokenizer is more of a wrapper to provide additional functionality to be utilized by other components of the 🤗 Transformer…

Using pushdataset in PowerBI to create near real time logging dashboard

Using pushdataset in PowerBI to create near real time logging dashboard

Hung Manh Mar 1, 2022 4 min read

Recently i participated in a hackerthon, in which the goal was to create a near real time monitoring dashboard using Microsoft PowerBI. The data was already generated and persisted in SQLServer and needed to be queried efficiently. Since i am…

Reminder to update statistics

Reminder to update statistics

Hung Manh Feb 3, 2022 2 min read

The other day we had a moderate complex query which involved around 270000 rows but run for over an hour. After updating the statistics the query finished in only 4 seconds.

WordPress – The editor has encountered an unexpected error

WordPress – The editor has encountered an unexpected error

Hung Manh Feb 2, 2022 2 min read

Sometimes when editing a post or a page in WordPress, the site just crashes with the error “The editor has encountered an unexpected error.” Let’s take a deeper look and try to fix this problem.

Kubernetes pod stuck in pending status. Nodes had no available volume

Kubernetes pod stuck in pending status. Nodes had no available volume

Hung Manh Jan 30, 2022 2 min read

A deployed pod is stuck in pending status. Looking deeper into the pod a warning appears: 0/3 nodes are available: 3 node(s) had no available volume zone.

Recent Posts

No post found!

No post found!

No post found!

hungsblog | Nguyen Hung Manh | Dresden
Scroll to Top