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

PyTorch – expected scalar type Float but found Double

PyTorch – expected scalar type Float but found Double

Hung ManhDec 14, 20222 min read

TLDR: The default datatype of a numpy array translates to double/float64. If a Tensor is created from that array using torch.as_tensor it will adopt that datatype, which is not compatible with the default datatype of a neural network model which…

Migrating existing OCI Kubernetes to VCN-Native Cluster with Terraform

Migrating existing OCI Kubernetes to VCN-Native Cluster with Terraform

Hung ManhDec 2, 20222 min read

Your OCI Kubernetes Cluster might have a little tool tip which states “migration required”. This is because, “in earlier releases (before March 16, 2021), Container Engine for Kubernetes provisioned clusters with Kubernetes API endpoints that were not integrated into your…

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 ManhOct 22, 20222 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 ManhJul 4, 20221 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: RuntimeError the…

SentenceTransformer – float object is not subscriptable

SentenceTransformer – float object is not subscriptable

Hung ManhJun 1, 20222 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 ManhMay 28, 20225 min read

Why does changing the number of heads not change the number of parameters in the model? – That was the question i was asking myself. After drawing out the matrix multiplication and having gained the insight, i’d like to share…

How to evaluate the Transformer Trainer

How to evaluate the Transformer Trainer

Hung ManhMay 4, 20222 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 ManhMar 17, 20224 min read

I just got tossed into the cold water of the 🤗 Transformer framework and had some initial troubles with understanding the components. I’d like to write down my understanding of the Tokenizer and on how to add special_tokens to them,…

Using pushdataset in PowerBI to create near real time logging dashboard

Using pushdataset in PowerBI to create near real time logging dashboard

Hung ManhMar 1, 20224 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 ManhFeb 3, 20222 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. The query looked like so: WITH input_rows as (…

Recent Posts

1 2

No post found!

How to |  Others

Dockerized WordPress on a Raspberry Pi

How to run WordPress with Docker on a Raspberry Pi Why would you do that? The greatest advantage with this installation is that you can just play and fiddle around as you like and afterwards just clean it up by deleting the containers without leaving any residues of software. Having…

Read More
1 2
hungsblog | Nguyen Hung Manh | Dresden
Scroll to Top