Let $R$ be a local ring containing a field isomorphic to its residue field $k$. Assume $R$ is a localization of a finitely-generated $k$-algebra.
- Can $\Omega_{R/k}$ be free of rank $r\neq\dim{R}$? If it can, are there bounds on $r$?
- Does requiring $k$ to be perfect change anything?
Yes, this may happen. For example, take $k = {\mathbb F}_p$ and $R := {\mathbb F}_p[X]/(X^p)$. Then $\Omega^1_{R/k}\cong R\cdot\text{d}x$ is free of rank $1$ over $R$. Considering the tensor powers $R\otimes_k ...\otimes_k R$ also shows that there is not even a bound on $r$.
Edit Deleted rubbish. Another try: If $R$ is reduced and $k$ is perfect, then we may realize $R$ as the local ring at a $k$-rational point of a reduced $k$-variety $X$ such that $\Omega_{X/k}$ is free of rank $r$, say. Then $X$ is geometrically reduced, hence generically smooth. Now, for smooth $k$-varieties $X$, the local rank of $\Omega^1_{X/k}$ is the dimension, so we conclude that $X$ is equidimensional of dimension $r$, and in particular $r = \text{dim}(R)$.