Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on running "make learn-vectors-redis" #2

Open
llnlln opened this issue Feb 28, 2019 · 7 comments
Open

error on running "make learn-vectors-redis" #2

llnlln opened this issue Feb 28, 2019 · 7 comments

Comments

@llnlln
Copy link

llnlln commented Feb 28, 2019

Hi @jjhenkel,

A Segmentation fault when I run the make learn-vectors-redis . could you give me some advice?

fault

Thanks!

@jjhenkel
Copy link
Owner

Hi @llnlln ,

Try getting the latest version of the arbitrary-repos branch and running that command again. I just pushed a fix.

Thanks!

@llnlln
Copy link
Author

llnlln commented Mar 1, 2019

Hi @jjhenkel

I ran the following command and got the same error. The difference is that the array size is 16320875724 and 510027366, respectively.

git status
git pull 
make learn-vectors-redis

The output is in the output.txt file
output.txt

Thanks!

@jjhenkel
Copy link
Owner

jjhenkel commented Mar 1, 2019

Hi @llnlln ,

I'm trying to reproduce this on my machine---the patch I pushed did fix things for me but, just to be sure, I'll run it on a fresh clone of the repository and see if the issue re-appears.

In the meantime what system are you running this on (OS/number of cores/amount of RAM)? Could you try completely removing the repository and then re-cloning, checking out the arbitrary-repos branch, and running make end-to-end-redis ; make learn-vectors-redis.

At this point the tool has generated the Abstracted Symbolic Traces---this means that, as a workaround, you could always just run your favorite word vector learner on the generated traces (the make learn-vectors-redis command is just going to run GloVe on the generated traces using default settings).

Thanks!

@jjhenkel
Copy link
Owner

jjhenkel commented Mar 1, 2019

Follow up on this: I am no longer able to reproduce this. I just cloned a fresh copy of the repo, checked out the arbitrary-repos branch, ran make end-to-end-redis followed by make learn-vectors-redis and got reasonable output at the end:

2019-03-01 03:57:56,651 - glove2word2vec - INFO - Converted model with 6150 vectors and 300 dimensions
[GloVe] Complete!
[GloVe] Vectors saved in '/output/vectors'
[code-vectors] Learner finished. Output saved in /home/jjhenkel/code-vectors-artifact/artifacts/redis
[code-vectors] Running demo using Gensim and our freshly learned vectors...
docker run -it --rm \
	-v /home/jjhenkel/code-vectors-artifact/artifacts:/artifacts \
	--entrypoint python \
	jjhenkel/glove:gz \
	/app/redis-demo.py
[code-vectors] 5 closest words to "setTypeAdd"
[code-vectors]  #0. setTypeSize
[code-vectors]  #1. setTypeRemove
[code-vectors]  #2. setTypeInitIterator
[code-vectors]  #3. createIntsetObject
[code-vectors]  #4. setTypeReleaseIterator

[code-vectors] 5 closest words to "streamIteratorGetID"
[code-vectors]  #0. streamIteratorStart
[code-vectors]  #1. streamIteratorStop
[code-vectors]  #2. ?->lp
[code-vectors]  #3. addReplyStreamID
[code-vectors]  #4. streamIteratorGetID_$EQ_0

[code-vectors] 5 closest words to "clusterAddSlot"
[code-vectors]  #0. clusterDelSlot
[code-vectors]  #1. clusterAddNode
[code-vectors]  #2. countKeysInSlot_$EQ_0
[code-vectors]  #3. !->importing_slots_from[?]
[code-vectors]  #4. countKeysInSlot

[code-vectors] 5 closest words to "clusterLoadConfig"
[code-vectors]  #0. clusterLockConfig
[code-vectors]  #1. clusterLockConfig_$NEQ_-1
[code-vectors]  #2. clusterLoadConfig_$EQ_-1
[code-vectors]  #3. clusterLoadConfig_$NEQ_-1
[code-vectors]  #4. loadAppendOnlyFile

[code-vectors] 5 closest words to "!->importing_slots_from[?]"
[code-vectors]  #0. clusterBumpConfigEpochWithoutConsensus_$NEQ_0
[code-vectors]  #1. !->migrating_slots_to[?]
[code-vectors]  #2. clusterAddSlot
[code-vectors]  #3. sentinelHandleConfiguration_$EQ_0
[code-vectors]  #4. sdssplitargs

[code-vectors] 5 closest words to "$ERR"
[code-vectors]  #0. $RET_EPERM
[code-vectors]  #1. $RET_ENOENT
[code-vectors]  #2. malloc_$EQ_0
[code-vectors]  #3. rdbSaveLen_$EQ_-1
[code-vectors]  #4. redisContextWaitReady_$NEQ_0

[code-vectors] Demo complete.

@llnlln
Copy link
Author

llnlln commented Mar 1, 2019

Hi @jjhenkel ,

I just cloned a fresh copy of the repo, checked out the arbitrary-repos branch, ran make end-to-end-redis followed by make learn-vectors-redis and got the same error.
I ran this on Linux version 4.15.0-42-generic(Ubuntu 5.4.0-6ubuntu1~16.04.10)/Intel® Core™ i5-4570 CPU @ 3.20GHz × 4 /memory 3.5 GiB.
Could you give me some advice?

Thanks!

@jjhenkel
Copy link
Owner

jjhenkel commented Mar 6, 2019

Hi @llnlln ,

Sorry for the delay---I've been trying to find a machine I can reproduce this on.

For now my advice to you is to learn vectors using your method of choice without using the version of GloVe I provide as a Docker image. You should have the generated traces on disk (since the previous steps in the pipeline worked) so you can simply run any word-vector learner using those traces as your corpus.

If you need an example of how to run one of these learners you can see the commands I use for learning vectors via GloVe in this file. Other tools like word2vec and fasttext also provide good documentation and examples of their usage.

@llnlln
Copy link
Author

llnlln commented Mar 6, 2019

Hi @jjhenkel ,

Thank you very much for your reply !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants