# Upgrading to v1.8

**URL:** <https://forum.rasa.com/t/upgrading-to-v1-8/25391>\
**Category:** Rasa Open Source\
**Created:** [February 28, 2020, 9:17am UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391 "2020-02-28T09:17:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcsan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dcsan/32/1048_2.png) [@dcsan](https://forum.rasa.com/u/dcsan)\
**Post date:** [February 28, 2020, 9:17am UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391/1 "2020-02-28T09:17:16Z")

</div>

I just found out v 1.8 is out with a new neat `rasa data validate stories` command

as part of the install I hit this error:

```auto
ERROR: tensorflow-cpu 1.15.0 has requirement tensorboard<1.16.0,>=1.15.0, but you'll have tensorboard 2.1.0 which is incompatible.

```

I’m wondering what that might affect? training still seems to function well. I’m just running on a laptop so no gpu.

rasa previously had a dependency on an older version of tensorflow that also only installed under python \<= 3.7 maybe that’s fixed now…

> [@Could not find a version that satisfies the requirement tensorflow~=1.15.0](http://forum.rasa.com/t/could-not-find-a-version-that-satisfies-the-requirement-tensorflow-1-15-0/21509/25):
>
> This is cos the version of TF (1.15) that the rasa installer requires is pretty old and isn’t compatible with python 3.8. The solution would be to downgrade python to 3.6 (maybe 3.7) and try again. TF on it’s own works fine with python 3.8: pip install [https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl](https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl) this is what I did on a mac: I already had python3.6 installed with brew brew link --overwrite python python3.7 --version virtualenv -p python3.7 venv source…

diff of `pip freeze`

```diff
-rasa==1.7.4
-rasa-sdk==1.7.0
-redis==3.3.11
+rasa==1.8.0
+rasa-sdk==1.8.0
+redis==3.4.1

-tensorboard==1.15.0
+tensorboard==2.1.0
+tensorflow==2.1.0
+tensorflow-addons==0.8.2
 tensorflow-cpu==1.15.0
 tensorflow-cpu-estimator==1.15.1
 tensorflow-datasets==2.0.0
+tensorflow-estimator==2.1.0

```

---

<div class="post-metadata">

**Author:** ![dcsan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dcsan/32/1048_2.png) [@dcsan](https://forum.rasa.com/u/dcsan)\
**Post date:** [February 28, 2020, 10:10am UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391/2 "2020-02-28T10:10:07Z")

</div>

can someone share a working `config` for v1.8? Following the [migration guide](https://rasa.com/docs/rasa/migration-guide/),  
it seems I’m messing up the yaml config format.

with previous config

> rasa/nlu/components.py:394:  
> FutureWarning: ‘EmbeddingIntentClassifier’ is deprecated and will be removed in version 2.0.  
> Use ‘DIETClassifier’ instead.

but edited and added as below, now I get this on `train`ing

> AttributeError: module ‘rasa.core.policies.registry’ has no attribute ‘DIETClassifier’

I’m using this pretty basic `config.yml`

```auto
language: en
pipeline: supervised_embeddings

policies:
  - name: MemoizationPolicy
  - name: TEDPolicy
    max_history: 5
    epochs: 100
  - name: MappingPolicy

  - name: DIETClassifier
    intent_classification: True
    entity_recognition: False
    use_masked_language_model: False
    BILOU_flag: False
    number_of_transformer_layers: 0

```

---

<div class="post-metadata">

**Author:** ![dcsan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dcsan/32/1048_2.png) [@dcsan](https://forum.rasa.com/u/dcsan)\
**Post date:** [February 28, 2020, 10:28am UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391/3 "2020-02-28T10:28:56Z")

</div>

additionally using a few extra featurizers as per the recommendation here

> **[Tuning Your NLU Model](https://rasa.com/docs/rasa/tuning-your-model/)**

(short answer)

this `config.yml` seems to work. I also had to `pip install tensorflow-text`

```auto
# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: en

pipeline:
  - name: ConveRTTokenizer
  - name: ConveRTFeaturizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: "char_wb"
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 1
    intent_classification: True
    entity_recognition: False
    use_masked_language_model: False
    BILOU_flag: False
    number_of_transformer_layers: 0
  - name: EntitySynonymMapper
  - name: ResponseSelector

# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
  - name: MemoizationPolicy
  - name: TEDPolicy
    max_history: 5
    epochs: 100
  - name: MappingPolicy

```

I’m not sure why

```auto
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer

```

is there twice, once without any params. Is that a typo in the docs?

---

<div class="post-metadata">

**Author:** ![ttlekich](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ttlekich/32/6334_2.png) [@ttlekich](https://forum.rasa.com/u/ttlekich)\
**Post date:** [February 28, 2020, 12:52pm UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391/4 "2020-02-28T12:52:03Z")

</div>

I went through messing with 1.8 yesterday as well. Not sure why the `CountVectorsFeaturizer` is there twice either.

I can separate out this question, but thought it was related. I found that the `DIETClassifier` is much slower than `EmbeddingIntentClassifier` and `CRFEntityExtractor`. As a rough measurement on a small training set that took about 5 minutes to train on a similar pipeline with `EmbeddingIntentClassifier` and `CRFEntityExtractor` (300 epochs), the `DIETClassifier` took about 20 minutes with 50 epochs. Will there be an alternative to `DIETClassifier` after `EmbeddingIntentClassifier` and `CRFEntityExtractor` are deprecated?

---

<div class="post-metadata">

**Author:** ![dcsan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dcsan/32/1048_2.png) [@dcsan](https://forum.rasa.com/u/dcsan)\
**Post date:** [February 28, 2020, 10:10pm UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391/5 "2020-02-28T22:10:10Z")

</div>

I’ve noticed it’s slower too. I don’t quite follow about `epochs` and there are a number of warnings on that too. Can you config a lower number yourself to speed up training, at least while in development? I had put in ` epochs: 1` myself to try to shut up some of the warnings (but I still get them)

I was talking to someone at rasa using github actions to tune and test the model with lots of different hyperparameters on a push commit. depending on how much CPU time actions give you that would be a nice way to offload some of those tasks.

---

<div class="post-metadata">

**Author:** ![thusithaC](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/thusithac/32/5280_2.png) [@thusithaC](https://forum.rasa.com/u/thusithaC)\
**Post date:** [March 2, 2020, 6:53am UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391/6 "2020-03-02T06:53:12Z")

</div>

> [@dcsan](#):
>
> - name: CountVectorsFeaturizer - name: CountVectorsFeaturizer analyzer: “char\_wb” min\_ngram: 1 max\_ngram: 4

It should be

```auto
 - name: CountVectorsFeaturizer
 - name: CountVectorsFeaturizer
   analyzer: "char_wb"
   min_ngram: 1
   max_ngram: 4

```

where word level and n-gram level features are both added.

But I do have trouble with making the new `DIETClassifier` work exactly the same as before.

---

<div class="post-metadata">

**Author:** ![thusithaC](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/thusithac/32/5280_2.png) [@thusithaC](https://forum.rasa.com/u/thusithaC)\
**Post date:** [March 2, 2020, 6:58am UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391/7 "2020-03-02T06:58:05Z")

</div>

> [@ttlekich](#):
>
> Will there be an alternative to `DIETClassifier` after `EmbeddingIntentClassifier` and `CRFEntityExtractor` are deprecated?

I guess RASA wants us to use DIETClassifier as the default ? I would love to see some parameter tuning guide to DIETClassifier, either community sourced or by the Rasa devs. I did create a separate thread [here](http://forum.rasa.com/t/using-dietclassifier-with-convert-and-transfomer-based-featurizers/25468) to see if someone can give some more details about parameter tuning. I hope, there is a configuration that would work the same as before (same accuracy, same time complexity). I tried the settings provided in the migration guide, but some of my integration tests fail, meaning that the training results is not the same as before.

Thusitha

---

<div class="post-metadata">

**Author:** ![samscudder](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/samscudder/32/4466_2.png) [@samscudder](https://forum.rasa.com/u/samscudder)\
**Post date:** [March 2, 2020, 3:10pm UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391/8 "2020-03-02T15:10:29Z")

</div>

@ttlekich, CountVectorsFeaturizer is there twice because the default analyzer is “word”, so it runs once for “word” and once for “char wb”.

---

<div class="post-metadata">

**Author:** ![dcsan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dcsan/32/1048_2.png) [@dcsan](https://forum.rasa.com/u/dcsan)\
**Post date:** [March 3, 2020, 9:51pm UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391/9 "2020-03-03T21:51:59Z")

</div>

so maybe this would be less ambiguous:

```auto
 - name: CountVectorsFeaturizer
   analyzer: "word"
 - name: CountVectorsFeaturizer
   analyzer: "char_wb"
   min_ngram: 1
   max_ngram: 4

```

---

<div class="post-metadata">

**Author:** ![valdu02100](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/valdu02100/32/6478_2.png) [@valdu02100](https://forum.rasa.com/u/valdu02100)\
**Post date:** [May 9, 2020, 12:30am UTC](https://forum.rasa.com/t/upgrading-to-v1-8/25391/10 "2020-05-09T00:30:27Z")

</div>

Hey,

I have the same error after updating Rasa to 1.10.0.

I updated my config.yml file :

```auto
language: "fr" # your two-letter language code

pipeline:
  - name: WhitespaceTokenizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: "word"
  - name: CountVectorsFeaturizer
    analyzer: "char_wb"
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 100
  - name: EntitySynonymMapper
  - name: ResponseSelector
    epochs: 100
  - name: WhitespaceTokenizer
    case_sensitive: false
  - name: CRFEntityExtractor
    BILOU_flag: true
  - name: "DucklingHTTPExtractor"
    url: "http://localhost:8000"
    dimensions: ["time", "number", "amount-of-money", "distance"]
    locale: "fr_FR"
    timezone: "Europe/Paris"
    timeout : 3
    
policies:
- name: DIETClassifier
  epochs: 100
- name: EntitySynonymMapper
- name: ResponseSelector
  epochs: 100
featurizer:
- name: MaxHistoryTrackerFeaturizer
  max_history: 5
  state_featurizer:
  - name: BinarySingleStateFeaturizer
- name: FallbackPolicy
  nlu_threshold: 0.7
  core_threshold: 0.4
  fallback_action_name: utter_oupsomethingfailed
- name: FormPolicy

```

Did you find a solution to your problem?

Thanks, Valentin
