facebookresearch / ParlAI

A framework for training and evaluating AI models on a variety of openly available dialogue datasets.
https://parl.ai
MIT License
10.5k stars 2.09k forks source link

internet server inference error installing bart #4642

Closed daje0601 closed 2 years ago

daje0601 commented 2 years ago

Hello, An error occurs when installing the bart model while inference to Blenderbot 2.0, which can be searched on the Internet. I proceeded as follows. The Internet server downloaded the server from the link and used it.

  1. run python search_server.py serve --host 0.0.0.0:8080
  2. run curl -X POST "http://0.0.0.0:8080" -d "q=baseball&n=1" Search result -> it is working It works even if you put a different word or change the number to be searched.
    {"response": [{"title": "Robot umpires could be coming to Major League Baseball in 2024 - The Verge", "content": "Skip to main content clock menu more-arrow no yes\n\nThe Verge homepage\n\n## Follow The Verge online:\n\n  * Follow The Verge on Facebook\n  * Follow The Verge on Twitter\n  * RSS feed (all stories on The Verge)\n\nLog in or sign up\n\n  * Log In\n  * Sign Up\n\n## Site search\n\nSearch Search\n\n## The Verge main menu\n\n  * Tech \n  * Reviews \n  * Science \n  * Creators \n  * Entertainment \n  * Video \n  * Features \n  * Podcasts \n  * Newsletters \n  * Merch Store \n  * More \n\n  * Tech \n\n    * Video \n    * Amazon \n    * Apple \n    * Facebook \n    * Google \n\n    * Microsoft \n    * Samsung \n    * Tesla \n    * AI \n    * Cars \n\n    * Cybersecurity \n    * Mobile \n    * Policy \n    * Privacy \n    * Scooters \n\n    * All Tech\n  * Reviews \n\n    * Phones \n    * Laptops \n    * Headphones \n    * Cameras \n\n    * Tablets \n    * Smartwatches \n    * Speakers \n    * Drones \n\n    * Accessories \n    * Buying Guides \n    * How-tos \n    * Deals \n\n    * More from Verge Reviews\n  * Science \n\n    * Video \n    * Space \n    * NASA \n    * SpaceX \n\n    * Health \n    * Energy \n    * Environment \n\n    * All Science\n  * Creators \n\n    * YouTube \n    * Instagram \n    * Adobe \n\n    * Kickstarter \n    * Tumblr \n    * Art Club \n\n    * Cameras \n    * Photography \n    * What\u2019s in your bag? \n\n    * All Creators\n  * Entertainment \n\n    * Film \n    * TV \n    * Games \n\n    * Fortnite \n    * Game of Thrones \n    * Books \n\n    * Comics \n    * Music \n\n    * All Entertainment\n  * Video \n  * Features \n  * Podcasts \n  * Newsletters \n  * Merch Store \n\u2715\n\nFiled under:\n\n  * Tech\n\n# Robot umpires could be coming to Major League Baseball in 2024\n\nNew,  15  comments\n\nAll in an effort to make baseball move faster\n\nBy  David Pierce Jun 30, 2022, 10:35am EDT\n\n## Share this story\n\n  * Share this on Facebook\n  * Share this on Twitter\n  * Share All sharing options\n\n###  Share All sharing options for: Robot umpires could be coming to Major\nLeague Baseball in 2024\n\n  * Linkedin\n  * Reddit\n  * Pocket\n  * Flipboard\n  * Email\n\nDon\u2019t like the strike call? Take it up with the robot. Photo by Stephen\nMaturen / Getty Images\n\nTwo years from now, in baseball stadiums around the US, the umpire behind home\nplate might be little more than a mouthpiece for a robot. Major League\nBaseball plans to introduce robot umpires in the 2024 season, MLB Commissioner\nRob Manfred told ESPN this week. He framed the change as a way to speed up\ngames, but anyone who\u2019s watched baseball the last few years will tell you that\na machine would almost certainly call balls and strikes better than the humans\ndo.\n\nThere are two ways the \u201cAutomated Ball-Strike System,\u201d which is the technical\nterm for these robot umpires, might be implemented. One is the fully automated\nversion, in which the AI-powered system calls every pitch a ball or a strike\nand relays the call to the umpire. Or the MLB could decide to use the AI as a\nreview system, like VAR in soccer or the Hawk-Eye system used in professional\ntennis: each side gets a certain number of challenges, which are then\nadjudicated by the automated system.\n\nRobot umpires have been showing up at minor league baseball games for the last\ncouple of years, and the tech seems to work. (It\u2019s not that different from the\nstrike zone you see superimposed on a TV broadcast.) The existing system was\ndeveloped by a company called TrackMan, which also builds sophisticated ball-\ntracking tech for golfers. In practice, it\u2019s quite simple: the umpires slip a\ndedicated iPhone into their back pocket and an earbud into their ear, and the\nsystem signals ball or strike into their headphone after every pitch. Part of\nthe goal has been to make the on-field product look the same, with umps making\nthe calls \u2014 no hulking robot standing behind home plate \u2014 only faster and more\naccurately.\n\nThe TrackMan system uses a Doppler radar system to track every pitch. Photo by\nJohn Tlumacki / The Boston Globe via Getty Images\n\nStill, the robots have definitely changed the game. The automated system has\ntended to call more strikes than a human would, meaning players have had to\nre-calibrate their own understanding of what pitch is what. And even with\nthese automated systems in place, umpires still have plenty to do calling\ncheck swings, plays at the plate, and even occasionally overruling the robots.\n\nThe robots started in the lower rungs of baseball\u2019s minor leagues, but this\nseason, they\u2019ve also been used in Triple-A games, which is the next best thing\nto the majors. Per ESPN, the robot umpires lop nine minutes off the length of\nan average game in which they\u2019re used. (Manfred also said a pitch clock could\nbe used to speed up the game, and that could come as soon as next year.)\n\nRobot umpires have felt like a looming certainty for some time. They won\u2019t\nsolve everything, nor will they end fan arguments \u2014 just ask anyone who\u2019s been\nscrewed by a VAR call in a nail-biter soccer match. But as baseball continues\nto look for ways to appeal to a younger generation that has no interest in a\nfive-hour-long game, robots might help pick up the pace.\n\n##  Next Up In Tech\n\n##  Sign up for the newsletter  Verge Deals\n\nSubscribe to get the best Verge-approved tech deals of the week.\n\n#### Just one more thing!\n\nPlease confirm your subscription to Verge Deals via the verification email we\njust sent you.\n\nEmail (required)\n\nBy submitting your email, you agree to our Terms and Privacy Notice. You can\nopt out at any time. This site is protected by reCAPTCHA and the Google\nPrivacy Policy and Terms of Service apply.\n\nSubscribe\n\n#### Loading comments...\n\nChorus\n\n  * Terms of Use\n  * Privacy Notice\n  * Cookie Policy\n  * Do Not Sell My Personal Info\n  * Licensing FAQ\n  * Accessibility\n  * Platform Status\n\n  * Contact\n  * Tip Us\n  * Community Guidelines\n  * About\n  * Ethics Statement\n\nVox MediaVox Media Vox Media logo. Advertise with us Jobs @ Vox Media \u00a9 2022\nVox Media, LLC. All Rights Reserved\n\n## Share this story\n\n  * Twitter \n  * Facebook", "url": "https://www.theverge.com/2022/6/30/23189572/robot-umpires-major-league-baseball-2024"}]}
  3. run python -m parlai interactive --model-file zoo:blenderbot2/blenderbot2_3B/model --search_server 0.0.0.0:8080 error message only this one line : python: ../nptl/pthread_mutex_lock.c:81: __pthread_mutex_lock: Assertionmutex>data.owner == 0' failed.` I don't understand why I am getting this error. Can you give me a hint what to look for?
daje0601 commented 2 years ago

I solve this problem and close the issu page~