Skip to content

Commit

Permalink
Fix Conda Environment
Browse files Browse the repository at this point in the history
  • Loading branch information
FBerding committed Jul 10, 2023
1 parent 498ca4c commit bfe5dbd
Show file tree
Hide file tree
Showing 7 changed files with 79,061 additions and 58,824 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ jobs:
run: |
library(reticulate)
python_packages<-c("numpy",
"transformers",
python_packages<-c("transformers",
"tokenizers",
"datasets",
"torch")
Expand Down
3 changes: 1 addition & 2 deletions R/install_and_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
#'@importFrom reticulate py_install
#'@export
install_py_modules<-function(envname="aifeducation"){
relevant_modules<-c("numpy",
"transformers",
relevant_modules<-c("transformers",
"tokenizers",
"datasets",
"torch")
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-02_vocab_draft.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
testthat::skip_on_cran()

tmp_path="test_data/language_models/udpipe_models/english-ewt-ud-2.5-191206.udpipe"
print(testthat::test_path(tmp_path))
tmp_condition=file.exists(testthat::test_path(tmp_path))
testthat::skip_if_not(condition=tmp_condition,
message = "udpipe language model not available")
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_data/bert/added_tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"##mare": 29571,
"##mely": 29565,
"##mour": 29652,
"##naz": 29731,
"##nders": 29627,
"##nken": 29704,
"##nted": 29635,
Expand Down Expand Up @@ -226,6 +227,7 @@
"russi": 29719,
"sagemill": 29623,
"schna": 29542,
"schnaz": 29730,
"secre": 29630,
"seri": 29568,
"showmans": 29632,
Expand All @@ -241,6 +243,7 @@
"toge": 29604,
"underco": 29522,
"unfort": 29532,
"unra": 29729,
"unrave": 29705,
"unscat": 29617,
"unsucc": 29656,
Expand Down
5 changes: 3 additions & 2 deletions tests/testthat/test_data/bert/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"_name_or_path": "test_data/bert",
"architectures": [
"BertModel"
"BertForMaskedLM"
],
"attention_probs_dropout_prob": 0.1,
"classifier_dropout": null,
Expand All @@ -20,5 +21,5 @@
"transformers_version": "4.30.2",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 30522
"vocab_size": 29732
}
Loading

0 comments on commit bfe5dbd

Please sign in to comment.