New carpet smell comes from the synthetic latex binder used to hold carpet fibers and backing together. The odor is not harmful and usually fades within 72 hours.
You can speed up air circulation by opening windows and using fans during and immediately after carpet installation.