Skip to content

Commit

Permalink
[sentencepiece] Adds aarch64 support for sentencepiece (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored Jan 16, 2023
1 parent 52c51fd commit 9dcf70f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
package ai.djl.sentencepiece;

import ai.djl.testing.TestRequirements;
import ai.djl.training.util.DownloadUtils;

import org.testng.Assert;
Expand All @@ -26,10 +25,9 @@
import java.util.Collections;

public class SpTextEmbeddingTest {

@BeforeTest
public void downloadModel() throws IOException {
TestRequirements.notArm();

Path modelFile = Paths.get("build/test/models/sententpiece_test_model.model");
if (Files.notExists(modelFile)) {
DownloadUtils.download(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ public class SpTokenizerTest {

@BeforeTest
public void downloadModel() throws IOException {
TestRequirements.notArm();

Path modelFile = Paths.get("build/test/sp_model/sp_model.model");
if (Files.notExists(modelFile)) {
DownloadUtils.download(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

package ai.djl.sentencepiece;

import ai.djl.testing.TestRequirements;
import ai.djl.training.util.DownloadUtils;

import org.testng.Assert;
Expand All @@ -29,8 +28,6 @@ public class SpVocabularyTest {

@BeforeTest
public void downloadModel() throws IOException {
TestRequirements.notArm();

Path modelFile = Paths.get("build/test/models/sententpiece_test_model.model");
if (Files.notExists(modelFile)) {
DownloadUtils.download(
Expand Down

0 comments on commit 9dcf70f

Please sign in to comment.